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 - GetFormFieldTextFlags does not work on dup fields
  FAQ FAQ  Forum Search   Register Register  Login Login

GetFormFieldTextFlags does not work on dup fields

 Post Reply Post Reply
Author
Message
waynefulcher View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 Jun 08
Location: United States
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote waynefulcher Quote  Post ReplyReply Direct Link To This Post Topic: GetFormFieldTextFlags does not work on dup fields
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 2734
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 18 at 11:09PM
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

Back to Top
waynefulcher View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 Jun 08
Location: United States
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote waynefulcher Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 18 at 2:48PM
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?

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 2734
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 18 at 10:42PM
Wayne,

it's like it is...
Try searching here with "duplicate formfield" or similar.
You'll find official statements, too.

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