Skip to content
This repository has been archived by the owner on Aug 2, 2019. It is now read-only.

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

Open
it-linnan opened this issue Sep 12, 2018 · 2 comments

Comments

@it-linnan
Copy link

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

it-linnan added a commit to it-linnan/PdfiumViewer that referenced this issue Sep 12, 2018
it-linnan added a commit to it-linnan/PdfiumViewer that referenced this issue Sep 12, 2018
carlosbet added a commit to carlosbet/PdfiumViewer that referenced this issue Jan 13, 2019
It seems that the method RenderPDFPageToDC of the PdfFile class does
not process annotations, while RenderPDFPageToBitmap does well. So we
use this method to print instead.

Resolves: pvginkel#175
@carlosbet
Copy link

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
Copy link
Author

it-linnan commented Jan 14, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants