Revert "improve:pdf插入"

This reverts commit bad05f77b5.
This commit is contained in:
2026-04-05 19:07:31 +08:00
parent ebbe018bae
commit d80a59556e
6 changed files with 3 additions and 337 deletions
@@ -1007,7 +1007,7 @@ namespace Ink_Canvas
string newFilePath = Path.Combine(savePath, timestamp + ".pdf");
await Task.Run(() => File.Copy(filePath, newFilePath, true));
uint pageCount = await PdfDocumentRenderHelper.GetPageCountAsync(newFilePath);
uint pageCount = await PdfWinRtHelper.GetPageCountAsync(newFilePath);
if (pageCount == 0)
{
ShowNotification("无法打开 PDF(可能已加密、损坏或不支持)。");
@@ -1037,7 +1037,7 @@ namespace Ink_Canvas
try
{
uint pageCount = await PdfDocumentRenderHelper.GetPageCountAsync(info.SourcePath);
uint pageCount = await PdfWinRtHelper.GetPageCountAsync(info.SourcePath);
if (pageCount == 0) return;
bool compress = isLoaded && Settings.Canvas.IsCompressPicturesUploaded;