You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Till Kolditz (JIRA)" <ji...@apache.org> on 2018/04/18 08:58:00 UTC
[jira] [Updated] (PDFBOX-4195) gh
[ https://issues.apache.org/jira/browse/PDFBOX-4195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Till Kolditz updated PDFBOX-4195:
---------------------------------
Description:
I came across this issue when I compiled a PDF file with miktex LaTeX processor, using the pdfx package with options [a-1b,pdf17] and then validating the generated PDF file using the preflight stand-alone jar files "apache-preflight-app-2.0.8.jar" and "apache-preflight-app-2.0.9.jar". The error message is:
{{7.1 : Error on MetaData, Failed to instanciate DateType property with value 2018-04-17T22:24:06+02:00 in xmp:ModifyDate}}
However, according to the XMP specification Section 8.2.1.2 at
[https://wwwimages2.adobe.com/content/dam/acom/en/devnet/xmp/pdfs/XMP%20SDK%20Release%20cc-2016-08/XMPSpecificationPart1.pdf]
this date format should be valid. A given example date is:
{{2004-10-23T12:00:00-06:00}}
The problematic class should be DateConverter, which seems to not handle time zone information properly:
[https://javalibs.com/artifact/org.apache.pdfbox/xmpbox?className=org.apache.xmpbox.DateConverter&source]
in function
{{public static Calendar toCalendar(String date) throws IOException}}
was:
I came across this issue when I compiled a PDF file with miktex LaTeX processor, using the pdfx package with options [a-1b,pdf17] and then validating the generated PDF file using the pdfbox stand-alone jar files "pdfbox-app-2.0.8.jar" and "pdfbox-app-2.0.9.jar". The error message is:
{{7.1 : Error on MetaData, Failed to instanciate DateType property with value 2018-04-17T22:24:06+02:00 in xmp:ModifyDate}}
However, according to the XMP specification Section 8.2.1.2 at
[https://wwwimages2.adobe.com/content/dam/acom/en/devnet/xmp/pdfs/XMP%20SDK%20Release%20cc-2016-08/XMPSpecificationPart1.pdf]
this date format should be valid. A given example date is:
{{2004-10-23T12:00:00-06:00}}
The problematic class should be DateConverter, which seems to not handle time zone information properly:
[https://javalibs.com/artifact/org.apache.pdfbox/xmpbox?className=org.apache.xmpbox.DateConverter&source]
in function
{{public static Calendar toCalendar(String date) throws IOException}}
Component/s: Preflight
Summary: gh (was: Valid XMP Metadata TimeZone not accepted)
> gh
> --
>
> Key: PDFBOX-4195
> URL: https://issues.apache.org/jira/browse/PDFBOX-4195
> Project: PDFBox
> Issue Type: Bug
> Components: Preflight, XmpBox
> Affects Versions: 2.0.8, 2.0.9
> Environment: Windows, MikTeX 2.9, pdflatex processor
> Reporter: Till Kolditz
> Priority: Minor
> Labels: patch
>
> I came across this issue when I compiled a PDF file with miktex LaTeX processor, using the pdfx package with options [a-1b,pdf17] and then validating the generated PDF file using the preflight stand-alone jar files "apache-preflight-app-2.0.8.jar" and "apache-preflight-app-2.0.9.jar". The error message is:
> {{7.1 : Error on MetaData, Failed to instanciate DateType property with value 2018-04-17T22:24:06+02:00 in xmp:ModifyDate}}
> However, according to the XMP specification Section 8.2.1.2 at
> [https://wwwimages2.adobe.com/content/dam/acom/en/devnet/xmp/pdfs/XMP%20SDK%20Release%20cc-2016-08/XMPSpecificationPart1.pdf]
> this date format should be valid. A given example date is:
> {{2004-10-23T12:00:00-06:00}}
> The problematic class should be DateConverter, which seems to not handle time zone information properly:
> [https://javalibs.com/artifact/org.apache.pdfbox/xmpbox?className=org.apache.xmpbox.DateConverter&source]
> in function
> {{public static Calendar toCalendar(String date) throws IOException}}
--
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