rkusa / pdfjs

A Portable Document Format (PDF) generation library targeting both the server- and client-side.
MIT License
774 stars 142 forks source link

Info section should be an indirect object #301

Closed cesquerr closed 1 year ago

cesquerr commented 1 year ago

The PDFs generated by pdfjs are considered as invalid by some tools (like iText) because the document information dictionary should be an indirect object based on 1.6 PDFs specifications.

I am referring to the following part:

    /Info <<
        /Producer (pdfjs v2.4.7 \(github.com/rkusa/pdfjs\))
        /CreationDate (D:20221122143913Z00'00')
    >>
rkusa commented 1 year ago

You are right, thanks for the report!

Screenshot 2023-04-21 at 13 19 55