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 > I need help - I can help
  New Posts New Posts RSS Feed - Viewing Filled Form Fields
  FAQ FAQ  Forum Search   Register Register  Login Login

Viewing Filled Form Fields

 Post Reply Post Reply
Author
Message
Luke View Drop Down
Team Player
Team Player
Avatar

Joined: 13 Aug 10
Location: USA
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote Luke Quote  Post ReplyReply Direct Link To This Post Topic: Viewing Filled Form Fields
    Posted: 28 Aug 10 at 6:16PM
I am using Delphi and QuickPDF v 7.21 and I'm having problems viewing filled forms.  Basically I am doing the following:

APDF.LoadFromFile( 'Form.pdf' );
APDF.SetFormFieldValue( 1, 'Test' );
APDF.RenderPageToFile( 72, 1, 5, 'Filled.png' );
// Code to View 'Filled.png'

That only shows the form without any fields filled in. As a test, I added:
APDF.SaveToFile( 'Filled.pdf');
and compared 'Filled.png' with 'Filled.pdf'. 'Filled.pdf' has the fields correctly filled in while 'Filled.png' does not. So I am relatively confident that I am filling the form correctly. I also inspected the results of each command and everything indicates success.

I then modified my code as follows:
APDF.LoadFromFile( 'Form.pdf' );
APDF.SetFormFieldValue( 1, 'Test' );
APDF.FlattenFormField( 1 );
APDF.RenderPageToFile( 72, 1, 5, 'Filled.png' );
// Code to View 'Filled.png'

Flattening the Field first resolves the problem. Flattening the Field, however complicates my code since after viewing I may need to go back and Set the field to a different value.

Is there a way set the field value and render the page for my viewer without Flattening? TIA.



Luke M. Miller

ResCorSoft, Inc.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 28 Aug 10 at 6:30PM
Hi Luke!

Instead of Flatten you should use SetNeedAppearances ...
Then it will work as you want it to.

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