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!
GetFormFieldTextFlags does not work on dup fields |
Post Reply |
Author | |
waynefulcher
Senior Member Joined: 23 Jun 08 Location: United States Status: Offline Points: 99 |
Post Options
Thanks(0)
Posted: 16 May 18 at 11:00PM |
I am using Delphi 7 and QPDF version 8.16. I searched this forum for duplicate and found nothing. I am waiting to see if they will let me download the latest version 15 to see if this bug has been fixed.
Anyhow the problem is this. I have many PDFs where the majority of the content needs to be the exact same on multiple pages with some slight differences. So I have several input fields, lets use "CustomerName" as an example, which occur on multiple pages. Adobe (and Foxit) allow you to assign those fields the same name (in this case they are memo / multi-line fields). When you open the PDF with FoxIt Reader or Adobe reader it works as you would expect it to and that is if I type "xyz" in the CustomerName field on page 1 then go to page 2 the CustomerName field also has "xyz" filled in. If I then change the value on page 2 and go to page 1 the value input on page 2 has now updated the field on page 1. This is correct because you would only want 1 value for that field and this saves a user from needing to input the same values twice. The reader programs will also allow me to input multiple lines of text in the fields and the values replicate as normal. So now that we understand that having duplicate fields is a good thing and the readers handle them properly, my problem is QuickPDF's method GetFormFieldTextFlag(index, 1) returns 0 even though I know the field is marked as a multi-line field and again the reader allows me to input multiple lines of text. It seems it only fails to return a 1 for any/all multi-line fields which have duplicates. Can anyone tell me if this has been fixed in the latest version? Or if there is some sort of workaround to figure out if a field is a multi-line field? Thanks Wayne
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Wayne,
i understand your intention but for me it's more a feature and not a bug. The actual version of the library works as the former ones: For a correct processing each form field name have to be unique in a pdf-form. |
|
Cheers,
Ingo |
|
waynefulcher
Senior Member Joined: 23 Jun 08 Location: United States Status: Offline Points: 99 |
Post Options
Thanks(0)
|
I understand, but to clarify, you are saying even though the library properly reports all of the duplicate fields other attributes such as Page, Top, Left, Type, TextSize, etc their is something different about the TextFlags which can't be retrieved? (All other aspects of the duplicate fields work just fine.)
Again I would think since Adobe and Foxit both handle the duplicate fields properly, including the multi-line attribute, I would think we could provide same functionality. Lastly do you think this is something they would consider adding as a new feature? |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Wayne,
it's like it is... Try searching here with "duplicate formfield" or similar. You'll find official statements, too. |
|
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