Using PdfViewer control in my Winform application, I can successfully display a pdf contetnt with background image in the pdfviewer control.
But, when I print using the pdfviewer control's toolbar's print button (or with the print() method call of the control in code), the output does not contain the background image!!
How to solve it, or what do I miss?
Add more info: the pdf is converted from a html string that has <body> tag with datauri image (that is, "<body
style='background:url(data:image/jpeg;base64,b64stringhere) top left repeat; opacity: 50;' ....>").
And the generated pdf (along with the background image) can be correctly display with the pdfviewer control.
Problem occurs in printing the pdf either to paper or to file, that the background image is not appeared in the printed output.
The code to print simply is :
PdfViewerControl pdfviewer;
pdfviewer=new PdfViewerControl();
pdfviewer.Load(...);
pdfviewer.Print(true);
Hi, Divya,
Thank you for the reply.
And I will provide the related document that we are faced with.
regards,
grchen168