PdfiumViewer
PdfiumViewer copied to clipboard
When printing a pdf with sign,the output document does not display the sign area
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
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. ;-)
Yes,it's my mistake. Thanks for your suggestion.