You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Aleksandar Veljovic (JIRA)" <ji...@apache.org> on 2016/12/19 13:48:58 UTC
[jira] [Updated] (PDFBOX-3636) Wrong value read from date field
[ https://issues.apache.org/jira/browse/PDFBOX-3636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksandar Veljovic updated PDFBOX-3636:
----------------------------------------
Description:
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.
was:
I have defined a date field in my PDF with the format "dd.mm.yyyy". Reading the value 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.
> 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