Login  Register

Re: asciidoctor-pdf: Syntax Warning: PDFDoc::markDictionnary: Found recursive dicts

Posted by mojavelinux on Aug 23, 2019; 8:09am
URL: https://discuss.asciidoctor.org/asciidoctor-pdf-Syntax-Warning-PDFDoc-markDictionnary-Found-recursive-dicts-tp7104p7109.html

That makes sense because once you start ripping the PDF apart and putting it back together you can end up with dangling or duplicate references / dictionaries.

I strongly recommend using hexapdf instead. It's much more accurate. See https://hexapdf.gettalong.org/

Cheers,

-Dan

On Fri, Aug 23, 2019 at 1:06 AM Mark S [via Asciidoctor :: Discussion] <[hidden email]> wrote:
My mistake, sorry!

I use okular (and evince when I have to) and both work fine. And asciidoctor-pdf is fine too.

The problem arises when I use pdfseparate and pdfunite to extract just the TOC pages:

Both these produce the errors I mentioned (but I don't care because they work anyway and asciidoctor-pdf also works fine).

pdfseparate -f 1 -l 5 mybook.pdf /tmp/wx%d.pdf
pdfunite /tmp/wx1.pdf /tmp/wx2.pdf /tmp/wx3.pdf /tmp/wx4.pdf /tmp/wx5.pdf mybook-TOC.pdf



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/asciidoctor-pdf-Syntax-Warning-PDFDoc-markDictionnary-Found-recursive-dicts-tp7104p7106.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux