Edit pdf with forms problem

Hi,

I need find and replace text in PDF forms.

I've done following this tutorial


But, when I save the pdf, I lose the forms in saved  PDF

I attach an example

Attachment: PruebasPDFFormulario_ec0376f7.zip

5 Replies 1 reply marked as answer

AA Akshaya Arivoli Syncfusion Team November 26, 2020 05:58 PM UTC

Hi Manolo, 

Thank you for contacting Syncfusion support. 

We were currently checking on the reported query, we will update you with more details on November 27, 2020 

Regards,  
Akshaya   



GK Gowthamraj Kumar Syncfusion Team November 27, 2020 02:03 PM UTC

Hi Manolo, 

Thank you for your patience. 

We were able to reproduce the reported form field missing issue with provided sample in our end. Currently, we are validating on this and we will update the further details on December 1st 2020. 

Regards, 
Gowthamraj K 



AA Akshaya Arivoli Syncfusion Team December 1, 2020 04:36 PM UTC

Hi Manolo, 
 
On further analysis, we found that the input document has extended features enabled and its security is restricted to modify the PDF document. We also ensured the same behavior is Acrobat too and we do not remove any fields from this document, the form fields are unable to click/not accessible in viewer due to Extended features security restriction. However, we can able to allow to edit and fill the form fields by setting the necessary permission in the document. 
 
Please refer to the code below to overcome this behavior, 
 
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(pdfStream); 
 
            if(loadedDocument.IsExtendedFeatureEnabled) 
            loadedDocument.Security.Permissions =  Syncfusion.Pdf.Security.PdfPermissionsFlags.FillFields| Syncfusion.Pdf.Security.PdfPermissionsFlags.EditAnnotations 
                    | Syncfusion.Pdf.Security.PdfPermissionsFlags.EditContent; 
 
 
 
 
Please lets us know, you have any concerns about this. 
 
 
Regards, 
Akshaya 


Marked as answer

MC Manolo Capdevila December 3, 2020 08:54 AM UTC

Thanks!

The problem was in PDF


AA Akshaya Arivoli Syncfusion Team December 4, 2020 10:30 AM UTC

Hi Manolo, 

Thank you for your update. Please revert if you need further assistance in feature. 

Regards, 
Akshaya 


Loader.
Up arrow icon