We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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));
$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.
The text was updated successfully, but these errors were encountered:
Fixed date and time format in the info dictionary
20121ba
Resolves mpdf#1083
I made a PR for this :)
Sorry, something went wrong.
b108f9f
Resolves #1083
Successfully merging a pull request may close this issue.
PDFs which are created by Acrobat PDFMaker have CreationDate and ModDate dates prefixed by "D:"
An example:
Dates generated by mPDF don't have this prefix.
An example:
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.
The text was updated successfully, but these errors were encountered: