Fix #421 #465 #505 #665 #672 #705 #805: show annotations in PDF

This commit is contained in:
Paddy Xu
2021-01-10 12:13:48 +01:00
parent 6af2a5ec0d
commit 9c384be49c
3 changed files with 13 additions and 14 deletions

View File

@@ -61,9 +61,9 @@ namespace QuickLook.Plugin.PDFViewer
var realWidth = (int) Math.Round(size.Width * scale.Horizontal * factor);
var realHeight = (int) Math.Round(size.Height * scale.Vertical * factor);
bitmap = doc.PdfDocument.Render(page, realWidth, realHeight, dpiX, dpiY,
bitmap = doc.PdfDocument.Render(page, realWidth, realHeight, dpiX, dpiY, PdfRotation.Rotate0,
PdfRenderFlags.LimitImageCacheSize | PdfRenderFlags.LcdText | PdfRenderFlags.Annotations |
PdfRenderFlags.ForPrinting) as Bitmap;
PdfRenderFlags.ForPrinting, true) as Bitmap;
}
var bs = bitmap?.ToBitmapSource();