[dev-context] messy PDF (mkiv)

Hans Hagen pragma at wxs.nl
Tue Jul 21 23:27:25 CEST 2009


Peter Rolf wrote:
> Hi,
> 
> while debugging I found some minor problems in the produced PDF code. 
> There is a bug in one of the /Catalog entries (/PageLayout /auto). The 
> other problems are more of cosmetic nature (only one harmless bug).

example ...

> The PDF for the attached example
> 
> - contains 4 totally empty and *unreferenced* dictionaries (obj 5-8)
> 
> (only cosmetic)
> - obj 11 is questionable
>  (but I can't read the PS function code, so maybe it makes sense somehow)

indeed, as i use forward references the only way to get rid of them is 
to use multipass data which then demands an extra run (nearly always as 
object numbers get changed.

as pdf files have soms slack anyway this is a small price for saving a run

> (only cosmetic)
> - obj 20 (/JavaScript) is referring to an empty /Names dictionary;
>  should only be added if there is JS in the document

again, it's a foward reference

> And that's all for the moment (more to come with other example) :)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the dev-context mailing list