Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dates in information dictionary are not prefixed by "D:" #1083

Closed
paulish opened this issue Sep 6, 2019 · 1 comment · Fixed by #1085
Closed

Dates in information dictionary are not prefixed by "D:" #1083

paulish opened this issue Sep 6, 2019 · 1 comment · Fixed by #1085

Comments

@paulish
Copy link

paulish commented Sep 6, 2019

PDFs which are created by Acrobat PDFMaker have CreationDate and ModDate dates prefixed by "D:"

An example:

/ModDate(D:20171222131004+03'00')

Dates generated by mPDF don't have this prefix.
An example:

/ModDate (20190906012700+00'00')

As result they don't pass PDF/A validation by veraPDF library.

I fixed this locally by changing writeInfo of MetadataWriter.php:
$this->writer->write('/CreationDate ' . $this->writer->string('D:'.date('YmdHis') . $offset)); $this->writer->write('/ModDate ' . $this->writer->string('D:'.date('YmdHis') . $offset));

The PDF reference also states in 3.8.3 that 'D:' is optional but strongly recommended.

@peterdevpl
Copy link
Contributor

I made a PR for this :)

finwe pushed a commit that referenced this issue Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants