Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu May 31, 2018 3:54 pm

Is there a way to convert XFA forms to PDF?

jorgevarona
 
Posts: 2
Joined: Tue Feb 13, 2018 3:44 pm

Fri Jun 01, 2018 6:28 am

Hello,

Thank you for your post.
What do you mean by "converting XFA forms to PDF"?
If you want to flatten the XFA forms, please refer to the below code.
Code: Select all
PdfDocument doc = new PdfDocument();
doc.LoadFromFile("sample.pdf");
PdfFormWidget form = doc.Form as PdfFormWidget;
form.IsFlatten = true;
doc.SaveToFile("output.pdf");

If it is not what you want, please specify your requirements in detail.
Thank you in advance!

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Thu Sep 26, 2019 4:41 pm

This does not work. My requirement is to be able to convert an XFA PDF document to a regular PDF document that can be opened by any browser without the use of the Adobe viewer.

jorgeluisvarona
 
Posts: 1
Joined: Tue Apr 19, 2016 6:10 pm

Fri Sep 27, 2019 10:15 am

Hi,

Thanks for your inquiry.
I have posted your requirement to our Dev team. Please share us little more time, once there is any progress, we will inform you ASAP.
Sorry for the inconvenience caused.

Best wishes,
Amber
E-iceblue support team
User avatar

Amber.Gu
 
Posts: 525
Joined: Tue Jun 04, 2019 3:16 am

Tue Jan 14, 2020 8:32 pm

Has there been any progress on this? Looking for this functionality as well

ah_dev_2020
 
Posts: 2
Joined: Tue Jan 14, 2020 8:29 pm

Wed Jan 15, 2020 1:21 am

Hi,

Thanks for your inquiry.
I am sorry to tell you that there is no significant progress so far. I got the news from our Dev team that there is a big difference on internal data structure between normal forms PDF and XFA forms PDF. Actually, flattening the XFA form field is a new feature for our Spire.PDF, I am afraid the new feature cannot be finished in a short time due to its complexity. Anyway, we will keep you informed about any progress of this issue.
Sorry for the inconvenience caused.

Best wishes,
Amber
E-iceblue support team
User avatar

Amber.Gu
 
Posts: 525
Joined: Tue Jun 04, 2019 3:16 am

Tue Jun 02, 2020 7:01 pm

So this feature
Amber.Gu wrote:flattening the XFA form field is a new feature for our Spire.PDF
, is there trial access for testing Spire.PDF?

ah_dev_2020
 
Posts: 2
Joined: Tue Jan 14, 2020 8:29 pm

Wed Jun 03, 2020 4:11 am

Hello,

Thanks for your post.
Sorry this new feature is still not available at present. The internal data structure of the PDF containing the XFA form is more complicated, please spare us more time. Anyway, we will let you know as soon as this feature is implemented. Thanks for you patience and understanding.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Wed Jun 21, 2023 7:44 am

Hello,
Any news about this?
We have the same problem, doc.Form.IsFlatten = true does not work

Regards

djimeneztech
 
Posts: 1
Joined: Wed Jun 21, 2023 7:40 am

Wed Jun 21, 2023 9:22 am

djimeneztech wrote:Hello,
Any news about this?
We have the same problem, doc.Form.IsFlatten = true does not work

Regards

Hi,

Sorry this new feature is still not available at present due to its complexity. Once the feature is achieved, we will inform you immediately.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.PDF