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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > General Discussion
  New Posts New Posts RSS Feed - ExtractFilePagesEx fails - RenderPageToFile works
  FAQ FAQ  Forum Search   Register Register  Login Login

ExtractFilePagesEx fails - RenderPageToFile works

 Post Reply Post Reply
Author
Message
quickpdfdeveloper View Drop Down
Team Player
Team Player


Joined: 19 Mar 17
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote quickpdfdeveloper Quote  Post ReplyReply Direct Link To This Post Topic: ExtractFilePagesEx fails - RenderPageToFile works
    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?
Back to Top
swb1 View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert
Avatar

Joined: 05 Dec 05
Location: United States
Status: Offline
Points: 100
Post Options Post Options   Thanks (0) Thanks(0)   Quote swb1 Quote  Post ReplyReply Direct Link To This Post Posted: 16 Apr 19 at 1:12PM
Just a wild guess... Have you tried FlattenAllFormFields prior to the ExtractFilePagesEx?
Back to Top
quickpdfdeveloper View Drop Down
Team Player
Team Player


Joined: 19 Mar 17
Status: Offline
Points: 32
Post Options Post Options   Thanks (0) Thanks(0)   Quote quickpdfdeveloper Quote  Post ReplyReply Direct Link To This Post 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.)

Edited by quickpdfdeveloper - 17 Apr 19 at 9:58AM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store