[ 
https://issues.apache.org/jira/browse/PDFBOX-5439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17540032#comment-17540032
 ] 

Shubham Gupta commented on PDFBOX-5439:
---------------------------------------

[~msahyoun] Thanks for your input, two things I want to mention here:
 # PDAnnotationWidget just has details about visual representation but nothing 
about general appearance so if two form fields are present and we want to check 
which one doesn't have a tooltip we can't check that even after using 
PDAnnotationWidget. It would have been better no if there was a class that 
could store all the form field details irrespective of duplication of form 
field names.
 # Since you mentioned 
{*}[getFullyQualifiedName|https://pdfbox.apache.org/docs/2.0.0/javadocs/org/apache/pdfbox/pdmodel/interactive/form/PDField.html#getFullyQualifiedName()]{*}()
 method in PDField, I faced one limitation in using that which I have raised in 
another ticket. Kindly review that as well and give your input on that. The 
ticket id is PDFBOX-5440, https://issues.apache.org/jira/browse/PDFBOX-5440

> Details of form fields with same form field name not getting stored using 
> PDAcroform
> ------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-5439
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5439
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: AcroForm
>            Reporter: Shubham Gupta
>            Priority: Minor
>         Attachments: Expected And Actual Result.docx, sample code.txt
>
>
> Steps to reproduce:
>  # Develop a program that will take the PDF in PDDocument and then get the 
> Acroform details in PDAcroform now in a list of PDField try to get all the 
> fields. (I have attached a sample code for a better understanding of the 
> team).
>  # Now use a PDF which is having forms and keep two form fields with the same 
> name (let's say you are using Adobe Acrobat when you will go to tools and 
> then to Forms and then to Edit Form option and when you will click any form 
> field TEXT FIELD PROPERTIES will open. Just Go Click on the General tab and 
> Keep the two form fields names the same.)
>  # Now if the PDF contains in total of 10 form fields, the list the we got 
> from pdfbox that we have will be of size 9, This is because PDAcroform is not 
> taking those form fields that have the same form field name, they are storing 
> only those form fields whose name are unique. 
>  # This needs to be improved so that a developer using PDFBOX library, which 
> is by the way superb,  wants to validate those Form Fields which have no 
> tooltip and the duplicate form fields are the ones that don't have a tooltip 
> but since only one is getting stored he will get the wrong result every time, 
> I have given a simple example to make the team understand but this needs to 
> be improved.
> Please find the attachment for your reference.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to