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!
Duplicate form fields |
Post Reply |
Author | |
Rowan
Moderator Group Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
Posted: 28 Apr 11 at 10:14AM |
Quick PDF Library allows you to add duplicate form fields to PDF files. This means that two or more form fields share the same name and if one of the form fields is updated then the other form fields are also updated. QP.NewFormField('Name', 1); QP.SetFormFieldBounds(1, 100, 500, 200, 100); QP.SetFormFieldBorderColor(1, 1, 0, 0); QP.NewFormField('Name', 1); QP.SetFormFieldBounds(2, 100, 400, 200, 100); QP.SetFormFieldBorderColor(2, 0, 1, 0); QP.SaveToFile('dupfields.pdf'); If you use the GetFormFieldValueByTitle or SetFormFieldValueByTitle functions then these functions will only work with the first occurrence of the field that has that title, it will not work with the duplicate field. So it is better to use the index with the GetFormFieldValue and SetFormFieldValue functions, instead of the title.
|
|
nirnir
Beginner Joined: 12 May 11 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
Hi, I couldn't create two fields with same name .
calling NewFormField with existing field name returns
The same field index .
Do you have a Delphi working example of how adding duplicate fields ?
|
|
iGapper
Beginner Joined: 09 May 10 Location: Switzerland Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Hi Nirnir,
Maybe you could try the release 25 of QuickPDF Library. This version will allow you to add fields with same name.
For me, now, it works. Nice job !!
|
|
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