pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maruan Sahyoun (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4256) Return default value for CheckBox / RadioButton if /V entry is missing (widget /AS entries are present)
Date Mon, 09 Jul 2018 18:12:00 GMT

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

Maruan Sahyoun commented on PDFBOX-4256:
----------------------------------------

Shall we implement it for 2.x too? Although not an API change it will give a different (but
correct) return value for fields with missing /V entries. I'd go for that change in 2.x too
and document it accordingly

> Return default value for CheckBox / RadioButton if /V entry is missing (widget /AS entries
are present)
> -------------------------------------------------------------------------------------------------------
>
>                 Key: PDFBOX-4256
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4256
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: AcroForm
>    Affects Versions: 2.0.11
>            Reporter: Tilman Hausherr
>            Assignee: Maruan Sahyoun
>            Priority: Major
>             Fix For: 3.0.0 PDFBox
>
>         Attachments: SHIP_CCF_LastName_FirstName_YYYYMMDD_v1_Sample.pdf, SHIP_CCF_LastName_FirstName_YYYYMMDD_v1_Sample_data.xml
>
>
> The /V entry is missing for the radio and checkbox fields in the attached file. getValue()
returns nothing. A look at the widget shows that /AS is set. Shouldn't this be used as fallback?
The value is the one that isn't COSName.Off.
> For the attached file, I looked at the radiobutton "Marital Status" and the checkbox
"AS".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org


Mime
View raw message