Outlook desktop renders blank Form Fields PDFs generated via Syncfusion version 15.43

Hi, 

We got a problem with PDF files preview in Outlook. 

PDF files  with form fields were generated via Syncfusion version 15.43 and appear to be BLANK (custom input not displaying) (Adobe reader is previewer)
However, the same files open nice in Adobe Reader directly.  


Please let us know what can we do to fix it? 


best regards,

alex


3 Replies

SV Surya Venkatesan Syncfusion Team January 18, 2022 10:34 AM UTC

Hi Alex,


As you can see from this article, Outlook doesn't have a built-in PDF previewer and if you want to open PDF files, you may need Adobe Reader and then open the PDF file in preview mode. So, In preview mode, we can’t able to edit the form fields. It’s not an issue, it’s the behavior.


Refer to the following article for more details about outlook PdfViewer, https://answers.microsoft.com/en-us/outlook_com/forum/all/when-i-open-pdf-files-in-outlook-they-open-into/cf8cd53c-2365-488e-b078-8eba87607ff1


Please let us know if you have any concerns about this.


Regards,

Surya V



AG Alex Gres replied to Surya Venkatesan January 18, 2022 11:51 AM UTC

Hi Surya, 

thanks for your reply. 

Our problem is that we do not see values in the inputs for PDFs files generate via syncfusion  in the Outlook previewer.

1) No, we don't want to edit PDFs from the outlook, but only view inputs values that were added to the PDF using 

syncfusion

2) Already have Adobe Reader installed as a previewer for Outlook. 

Please check that image 


Should we change smth in the code or update the version?

 Please confirm editable forms PDF files can be viewed properly in outlook?




SV Surya Venkatesan Syncfusion Team replied to Alex Gres January 19, 2022 12:32 PM UTC

Hi Alex,


Thanks for the details. We recommend you disable the PdfForm set appearance to overcome the reported issue. Because, After filling the form fields in the PDF document, it may appear empty due to the absence of the appearance dictionary. By setting false to the SetDefaultAppearance() method in PdfForm class, you can create the appearance dictionary. By this, the text will be visible in all PDF Viewers.


Kindly refer the following code snippet to overcome the reported issue,

//Load the PDF document

PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName);

 

//Get the loaded form

PdfLoadedForm loadedForm = loadedDocument.Form;

 

//Set the default appearance

loadedForm.SetDefaultAppearance(false);

 

//Get the loaded form field

PdfLoadedTextBoxField loadedTextBoxField = loadedForm.Fields[0] as PdfLoadedTextBoxField;

 

loadedTextBoxField.Text = "Text";

 

//Save the document

loadedDocument.Save("Form.pdf");

//Close the document

loadedDocument.Close(true);


Refer to the below links to get more details on this,

https://help.syncfusion.com/cr/file-formats/Syncfusion.Pdf.Interactive.PdfForm.html#Syncfusion_Pdf_Interactive_PdfForm_SetDefaultAppearance_System_Boolean_

https://help.syncfusion.com/file-formats/pdf/working-with-forms#set-appearance-to-the-pdf-form-fields


Regards,

Surya V


Loader.
Up arrow icon