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 - GetFormFieldTitle appends a period
  FAQ FAQ  Forum Search   Register Register  Login Login

GetFormFieldTitle appends a period

 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: 99
Post Options Post Options   Thanks (0) Thanks(0)   Quote waynefulcher Quote  Post ReplyReply Direct Link To This Post Topic: GetFormFieldTitle appends a period
    Posted: 23 Apr 19 at 7:34PM
I am using Delphi 7 and QuickPDF 16.x
I was curious if anyone knows why some field names returned from GetFormFieldTitle() method sometimes contains a period (.) at the end of the field name? And along the same lines it will return the actual field name I input when designing the PDF (without the period) but for that field there seems to be no valid Page data.
Like my other questions, I am using PhantomPDF 9.x to edit pdfs.
Below is an example of the code I am using to list out fields in the pdf.

    for FieldIX := 1 to qpdf.FormFieldCount do begin
      sLine := ' Pg: '+IntToStr(qpdf.GetFormFieldPage(FieldIX))+
               ' Ht: '+FloatToStr(qpdf.GetFormFieldBound(FieldIX, PDF_Bound_Height))+
               ' Wd: '+FloatToStr(qpdf.GetFormFieldBound(FieldIX, PDF_Bound_Width));
      
      sortedFields.Add(PadR(qpdf.GetFormFieldTitle(FieldIX), maxFldWidth) + sLine) ;
    end ;

A snippet of the output from the above code is:

IntRateChgeffective                 Pg: 0 Ht: 0 Wd: 0
IntRateChgeffective.                Pg: 1 Ht: 12 Wd: 84.375
LateChargeAmount                    Pg: 1 Ht: 12 Wd: 45.75
LateChargeDays                      Pg: 0 Ht: 0 Wd: 0
LateChargeDays.                     Pg: 1 Ht: 12 Wd: 21.375
LateChargeGreaterLess               Pg: 0 Ht: 0 Wd: 0
LateChargeGreaterLess.              Pg: 1 Ht: 12 Wd: 57.75
LateChargeMinimum                   Pg: 0 Ht: 0 Wd: 0
LateChargeMinimum.                  Pg: 1 Ht: 12 Wd: 70.91
LateChargePercentage                Pg: 0 Ht: 0 Wd: 0
LateChargePercentage.               Pg: 1 Ht: 12 Wd: 48


For each of the fields listed above, there is only 1 instance of a field with those names actually in the pdf.
So for example I have only 1 field called LateChargeDays there is only one field.
Oddly enough some fields, such as LateChargeAmount, it seems to return the correct data, meaning there is not one with a period at the end and the page data is correct for the field without the period.

Thanks for any help understanding how this is all supposed to work and why.




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

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 23 Apr 19 at 10:17PM
It would be really better to post longer code snippets and sample pdfs (there are many file hoster out there).

What you're written regarding the points has to do while using radio buttons or checkboxes.
Here's one of my samples a partly extraction from a form.
Have a look and then you know while there are more than one form field INSIDE for one field ;-)

Radiobutton;No List-/Combobox;;Input;Not printable;Visible;;0;1. SubName for Sex: MALE
Radiobutton;No List-/Combobox;;Input;Not printable;Visible;;0;RadiobuttonGroup: Sex;MALE
Radiobutton;No List-/Combobox;;Input;Not printable;Visible;;0;2. SubName for Sex: FEMALE

The radio button "Sex" offers two options "MALE" and "FEMALE".
The options are subnames grouped under "Sex".
As a default in my sample the radio button group is set to "MALE".



Edited by Ingo - 23 Apr 19 at 10:20PM
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