You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2015/02/16 07:19:12 UTC
[jira] [Comment Edited] (PDFBOX-2619) XMP dates contain time zone,
while document info dates do not, and this isn't detected by preflight
[ https://issues.apache.org/jira/browse/PDFBOX-2619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14322416#comment-14322416 ]
Tilman Hausherr edited comment on PDFBOX-2619 at 2/16/15 6:18 AM:
------------------------------------------------------------------
Bavaria tests fail:
{code}
Tests run: 289, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 181.361 sec <<< FAILURE! - in org.apache.pdfbox.preflight.TestIsartor
validate[target/pdfs/Bavaria testsuite/conforming/Real world/ABNTNBR5298_1973.pdf](org.apache.pdfbox.preflight.TestIsartor) Time elapsed: 0.298 sec <<< FAILURE!
java.lang.AssertionError: ABNTNBR5298_1973.pdf : Isartor file should be valid, but has error: 7.2
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.apache.pdfbox.preflight.TestIsartor.validate(TestIsartor.java:222)
validate[target/pdfs/Bavaria testsuite/conforming/Real world/outcppxmp.pdf](org.apache.pdfbox.preflight.TestIsartor) Time elapsed: 0.058 sec <<< FAILURE!
java.lang.AssertionError: outcppxmp.pdf : Isartor file should be valid, but has error: 7.2
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.apache.pdfbox.preflight.TestIsartor.validate(TestIsartor.java:222)
validate[target/pdfs/Bavaria testsuite/conforming/Real world/dms_signed.pdf](org.apache.pdfbox.preflight.TestIsartor) Time elapsed: 0.137 sec <<< FAILURE!
java.lang.AssertionError: dms_signed.pdf : Isartor file should be valid, but has error: 7.2
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.apache.pdfbox.preflight.TestIsartor.validate(TestIsartor.java:222)
{code}
The first file has this:
{code}
xap:ModifyDate='2008-06-18T11:29:40Z00:00'
xap:CreateDate='2008-06-18T11:29:40Z00:00'
{code}
was (Author: tilman):
isartor tests fail:
{code}
Tests run: 289, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 181.361 sec <<< FAILURE! - in org.apache.pdfbox.preflight.TestIsartor
validate[target/pdfs/Bavaria testsuite/conforming/Real world/ABNTNBR5298_1973.pdf](org.apache.pdfbox.preflight.TestIsartor) Time elapsed: 0.298 sec <<< FAILURE!
java.lang.AssertionError: ABNTNBR5298_1973.pdf : Isartor file should be valid, but has error: 7.2
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.apache.pdfbox.preflight.TestIsartor.validate(TestIsartor.java:222)
validate[target/pdfs/Bavaria testsuite/conforming/Real world/outcppxmp.pdf](org.apache.pdfbox.preflight.TestIsartor) Time elapsed: 0.058 sec <<< FAILURE!
java.lang.AssertionError: outcppxmp.pdf : Isartor file should be valid, but has error: 7.2
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.apache.pdfbox.preflight.TestIsartor.validate(TestIsartor.java:222)
validate[target/pdfs/Bavaria testsuite/conforming/Real world/dms_signed.pdf](org.apache.pdfbox.preflight.TestIsartor) Time elapsed: 0.137 sec <<< FAILURE!
java.lang.AssertionError: dms_signed.pdf : Isartor file should be valid, but has error: 7.2
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.apache.pdfbox.preflight.TestIsartor.validate(TestIsartor.java:222)
{code}
The first file has this:
{code}
xap:ModifyDate='2008-06-18T11:29:40Z00:00'
xap:CreateDate='2008-06-18T11:29:40Z00:00'
{code}
> XMP dates contain time zone, while document info dates do not, and this isn't detected by preflight
> ---------------------------------------------------------------------------------------------------
>
> Key: PDFBOX-2619
> URL: https://issues.apache.org/jira/browse/PDFBOX-2619
> Project: PDFBox
> Issue Type: Sub-task
> Components: Preflight
> Affects Versions: 1.8.8, 2.0.0
> Reporter: Tilman Hausherr
> Assignee: Maruan Sahyoun
> Fix For: 1.8.9, 2.0.0
>
> Attachments: empty_word.pdf
>
>
> Another one from the Bavaria test suite:
> {code}
> /CreationDate(D:20090317081112)
> /ModDate(D:20090317081112)
> <xmp:CreateDate>2009-03-17T08:11:12Z</xmp:CreateDate>
> <xmp:ModifyDate>2009-03-17T08:11:12Z</xmp:ModifyDate>
> {code}
> The info dates do not have a timezone, but the xmp dates do (Z = "Zulu"). This information (whether there was a timezone information in the string) is "lost" in our conversion methods :-(
> Amusingly, PDF Tools says the file is valid.
--
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