PrintDocument does not print form field data

In my application, I have a PDF with form fields. I fill out the fields and flatten them in the document. I then save the document and display it in the SfPdfViewer. Everything appears correct in the viewer, and the print preview displays correctly, too. When I print the document, it prints out, but all the form fields are empty. Is there another step required for the form fields to be printed out? 


3 Replies

DR Deepika Ravi Syncfusion Team March 22, 2024 04:47 PM UTC

Hi Robert Sampson,


We have tried to replicate the reported issue with the provided details, but the text form field value is correctly retrieved in the printed document. For your reference, we have attached the tested sample (along with the output screen recording of the same) which can be downloaded from the attachment. If you are still experiencing the issue on your end, kindly share the modified issue-reproducing sample or output screen recording. This will help us provide a prompt solution as soon as possible.


Regards,

Deepika R


Attachment: Print_33f44d4c.zip


RS Robert Sampson March 25, 2024 08:21 AM UTC

I am at a loss here. Your example works fine for me. I can use the form I have and fill it out, and it displays and prints fine in your sample.  However, in my application the form shows up correctly in the viewer. It then shows up correctly in the print preview when I call PdfViewer.PrintDocument(). When I click print in the preview window, the file prints without any form field data.  I will try to create a sample to demonstrate the issue, but I have not been able to accomplish that yet.  I am guessing that once it is in the print preview dialog, that is beyond Syncfusion's control. It is difficult testing as I can only confirm the issue when printing to paper, as everything appears correctly on the screen.  



DR Deepika Ravi Syncfusion Team March 26, 2024 12:27 PM UTC

Hi Robert ,

Thank you for your update. We understand that reproducing the issue can be challenging, and we will await your sample demonstrating the issue.

Regards,

Deepika R


Loader.
Up arrow icon