Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Create static PDF from dynamic XFA |
Post Reply |
Author | |
MarianAldenhoevel
Beginner Joined: 15 Jun 10 Location: Sol III Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 16 Jun 10 at 8:43AM |
Hi,
I have an application that uses (very) dynamic XFA-Forms as front end. The data entered is sent to my program via EMail in XML Format. The system validates and processes the data and responds with a PDF that is a read-only version of the form. The way this is currently implemented is this: We design a read-only version of the form with all the dynamic elements in place. We replace drop-down elements with text fields and set it all to read-only, such things. We save this as template. The system then injects the modified XFA data into this template. We use iText for this step. So the resulting PDF is still a fully dynamic XFA form, javascript and all, only one with no user-editable elements. What we would prefer is a more simple static result to be returned and are currently investigating options to do that. I have downloaded the QuickPDF trial version for Delphi and modified one of the examples to load my form and examine it. FormFieldCount returns 0. OK, it is not an AcroForm. GetXFAFormFieldCount returns 1. But GetXFAFormFieldName returns an empty string. What is the explanation for that? Short of creating the resulting read-only incarnation of the form from scratch in code using the primitives available, what options do I have? I currently don't have a public sample for such a form but I could design a (somewhat simpler) one if it would help. Ciao, MM |
|
MarianAldenhoevel
Beginner Joined: 15 Jun 10 Location: Sol III Status: Offline Points: 2 |
Post Options
Thanks(0)
|
The example PDF is here:
http://www.marian-aldenhoevel.de/tmp/P7.blank.pdf |
|
Dloz76
Beginner Joined: 10 Feb 11 Status: Offline Points: 1 |
Post Options
Thanks(0)
|
Hi,
I was wondering if you were able to get this working? I have dynamic XFA forms that users fill out and save to a database and I need to "flatten" them so they can be merger together. Thanks, |
|
Rowan
Moderator Group Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
|
Are you talking about a static PDF form or a static PDF with no form fields?
If you open your PDF in any PDF viewer you will notice a little problem. If you don't want to use this PDF in Adobe only products you will actually need to go back to the start and re-create the PDF form, this time without using the Reader Extension feature and other features related specifically to Adobe products. You can see a blog post I wrote on this topic a while ago: But as for your question, it might be possible to convert a dynamic PDF form to a static PDF form using Acrobat -- though I have a feeling that it isn't possible -- but you can't do this using any 3rd party tools. I would highly recommend that you create PDF forms that use AcroForms form field and not XFA form fields because AcroForms are part of the PDF specification while XFA form fields are a proprietary format with a normative reference in the PDF spec. AcroForms are widely supported by most PDF vendors while XFA is not as widely suported. I hope this helps.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store