Login  Register

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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

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

Mark S
19 posts
As soon as I added some URLs to my document I got the warning "Syntax Warning: PDFDoc::markDictionnary: Found recursive dicts". Here's an example of one of the links:

https://rogerbinns.github.io/apsw/[APSW]

The links show up correctly in the PDF and they work. But it would be nice not to have the warnings.

I'm using:
Asciidoctor PDF 1.5.0.beta.1 using Asciidoctor 2.0.10 [https://asciidoctor.org]
Runtime Environment (ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

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

mojavelinux
Administrator
2681 posts
What application are you using to read the PDF?

-Dan

On Thu, Aug 22, 2019 at 1:31 AM Mark S [via Asciidoctor :: Discussion] <[hidden email]> wrote:
As soon as I added some URLs to my document I got the warning "Syntax Warning: PDFDoc::markDictionnary: Found recursive dicts". Here's an example of one of the links:

https://rogerbinns.github.io/apsw/[APSW]

The links show up correctly in the PDF and they work. But it would be nice not to have the warnings.

I'm using:
Asciidoctor PDF 1.5.0.beta.1 using Asciidoctor 2.0.10 [https://asciidoctor.org]
Runtime Environment (ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)


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-tp7104.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
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

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

Mark S
19 posts
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
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

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

mojavelinux
Administrator
2681 posts
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