cjwl / cocotron

The Cocotron
http://cocotron.org
MIT License
412 stars 103 forks source link

PDF Pages must be indirect objects #14

Open THausherr opened 6 years ago

THausherr commented 6 years ago

The PDF found in this issue of PDF.js

https://github.com/mozilla/pdf.js/issues/9540

has a page object as direct object. This must be an indirect object, see "Kids" in "Page Tree" in the PDF specification: "An array of indirect references to the immediate children of this node. The children shall only be page objects or other page tree nodes."