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!
![]() |
Save value to field form |
Post Reply
|
| Author | |
mariovermeulen
Beginner
Joined: 23 Dec 09 Status: Offline Points: 6 |
Post Options
Thanks(0)
Quote Reply
Topic: Save value to field formPosted: 13 May 10 at 10:08AM |
|
Hi
I am trying to load a pdf and then save a form fields value, i am setting the form fields name case sensitive but still no luck i can send the sample pdf i am using to anyone willing to help
regards
Mario
here is the code
// Load PDF
QP.LoadFromFile('D:\3D Office\Invoices\test.pdf');
// Read field value and display
ShowMessage(QP.GetFormFieldValueByTitle('InvoiceNumber')); // Set form Field InvoiceNumber QP.SetFormFieldValueByTitle('InvoiceNumber','1223324');
// Save PDF to test output PDF file QP.SaveToFile(AnsiString('D:\3D Office\Invoices\testoutput.pdf')); Edited by mariovermeulen - 13 May 10 at 10:10AM |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 May 10 at 3:53PM |
|
Hi Mario!
Before calling the Save you need the following... QP.SetNeedAppearances(1); QP.SetFormFieldValueByTitle( FieldName, FieldValue ); nresult := QP.FindFormFieldByTitle(FieldName); QP.UpdateAppearanceStream(nresult); with this syntax the value was set, you can see the value with any pdf-reader and you can change the value again. 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