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!
![]() |
Viewing Filled Form Fields |
Post Reply
|
| Author | |
Luke
Team Player
Joined: 13 Aug 10 Location: USA Status: Offline Points: 26 |
Post Options
Thanks(0)
Quote Reply
Topic: Viewing Filled Form FieldsPosted: 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. |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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