pdf-raku / PDF-Class-raku

PDF Document Object Model (under construction)
Artistic License 2.0
7 stars 3 forks source link

Handle 'must be indirect reference' constraints in spec #2

Closed dwarring closed 9 years ago

dwarring commented 9 years ago

A generic mechanism may be necessary to handle the 'must be an indirect reference; constraint on certain entries. For example the threads entry in the Catalog object see [PDF 1.7 TABLE 3.25 Entries in the catalog dictionary].

Most likely the entry trait (Dictionaries) and index trait Arrays needs an additional :ind-ref argument that is somehow interpreted during Dict/Array ast constructuions and/or passed-through to the serializer. so that it 'knows' to construct an indirect object.

dwarring commented 9 years ago

Issue really belongs in PDF-Tools - have opened there https://github.com/p6-pdf/perl6-PDF-Tools/issues/9