You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (JIRA)" <ji...@apache.org> on 2016/12/19 13:55:58 UTC
[jira] [Commented] (PDFBOX-3636) Wrong value read from date field
[ 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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org