pvginkel / PdfiumViewer

PDF viewer based on Google's PDFium.
Apache License 2.0
967 stars 418 forks source link

When printing a pdf with sign,the output document does not display the sign area #175

Open it-linnan opened 6 years ago

it-linnan commented 6 years ago

When I used PdfDocument.CreatePrintDocument method to create a PrintDocument to print pdf file, the output document does not display the sign area. However,it can display on the PdfViewer.

I guess the PdfPrintDocument.RenderPage method has some issue

carlosbet commented 5 years ago

Great... thanks to your change it-linnan, now can i prints signatures. It seems that the method RenderPDFPageToDC of the PdfFile class does not process annotations, while RenderPDFPageToBitmap does well. But... only one thing. I think you should have kept the variables used in the method instead of directly use "EventArgs". In this way things like PdfPrintMode.ShrinkToMargin still working as expected. ;-)

it-linnan commented 5 years ago

Yes,it's my mistake. Thanks for your suggestion.