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

Maruan Sahyoun commented on PDFBOX-3636:
----------------------------------------

Please provide a sample PDF and mention the name of the field in question. BTW 
there is no date field type in PDF but it will behave like one because of 
JavaScript code attached to it which might be why extracting the field value 
will give you the pure value where in Adobe Reader it's formatted to your 
expectation.

> Wrong value read from date field
> --------------------------------
>
>                 Key: PDFBOX-3636
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3636
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>    Affects Versions: 2.0.4
>         Environment: windows 10
>            Reporter: Aleksandar Veljovic
>
> I have defined a date field in my PDF with the format "dd.mm.yyyy". Reading 
> the value (field.getValueAsString()) works as expected if the input is a 
> whole date string.
> Now when I set the field to e.g. "10.10" the value is accepted and displayed 
> as "10.10.2016" (probably always the current year). But when I try to read 
> the field it always delivers the last valid entry of the field and not what 
> is displayed in the PDF.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to