Print Page | Close Window

ExtractFilePagesEx fails - RenderPageToFile works

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3693
Printed Date: 22 Nov 24 at 7:53PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: ExtractFilePagesEx fails - RenderPageToFile works
Posted By: quickpdfdeveloper
Subject: ExtractFilePagesEx fails - RenderPageToFile works
Date Posted: 16 Apr 19 at 9:00AM
I am using DPL 16.12. I have a PDF that uses XFA forms.

When I save a page using DARenderPageToFile it saves a PNG image perfectly, both form and the data that's been filled in.

But when I save a page as a PDF using ExtractFilePagesEx, only the form is saved, with _none_ of the data that's been filled in.

Is it possible to make ExtractFilePagesEx save both the form _and_ the data? Or is there an equivalent function that will do this?



Replies:
Posted By: swb1
Date Posted: 16 Apr 19 at 1:12PM
Just a wild guess... Have you tried FlattenAllFormFields prior to the ExtractFilePagesEx?


Posted By: quickpdfdeveloper
Date Posted: 16 Apr 19 at 2:26PM
Thank you!
That sounds like just what I need.
I'll give it a try.

I tried it and after some false starts I got it working. Thank you!

(I found the QPL tool that has editable examples of JavaScript very helpful for testing.)


Posted By: Ingo
Date Posted: 16 Apr 19 at 6:17PM
Hi,

if you read in the form functions section you'll see that xfa-forms are not completely supported.
Here's a kb-note from Debenu regarding xfa and non-xfa.
This will make it a bit clearer:
https://www.debenu.com/kb/can-debenu-quick-pdf-library-print-pdf-forms-use-xfa-form-fields/



-------------
Cheers,
Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk