Thomas Leitner
Thomas Leitner
So have a look at https://github.com/prawnpdf/prawn-templates/blob/master/lib/pdf/core/page.rb#L29-L41 This is where two additional content streams (a page can have zero, one or more content streams representing the contenst) are added to the...
Looks good to me.
Maybe some specs, @pointlessone will know and decide when there is time.
> I think the difference here is between something that is _lexically/syntactically_ valid (all of @lrosenthol examples and my degenerate "empty object" example) and those which are _semantically_ valid (e.g....
> so in the general case and subject to other requirements, yes, chains of indirect references are allowed. Thanks - time to fix my library 😅
> @faceless2 Thanks Mike! You raise an interesting point. > > I was focused on the statement under 7.3.9 Null object "An indirect object reference (see 7.3.10, "Indirect objects") to...
> So if we conclude that a **syntactically valid** PDF object requires `obj` `endobj` then how should the following token sequences be considered: > > * `obj` %comment `endobj`? >...
> What do we do if length doesn't match the parsed length? At what point we terminate parsing if there's trailing noise? Sure it's invalid, but standardising (or at least...
Okay, that file seems to be corrupt since HexaPDF needs to do a cross-reference reconstruction which means it parses the file from top to bottom and tries to find all...
@Jorge-Signwell Thanks for the file! I found the problem and will implement a fix.