ggrossetie / asciidoctor-web-pdf

Convert AsciiDoc documents to PDF using web technologies
https://asciidoctor.org
MIT License
443 stars 90 forks source link

Content outside of pagebox #673

Open CypherRazzor opened 1 year ago

CypherRazzor commented 1 year ago

Hi,

i have built a template for my company with asciidoctor-web-pdf. I have one problem, which i cannot fix myself. When i compile my document with the terminal i receive warnings like this:

Unable to find destination name of section or subsection while generating PDF outline! This likely happened because an anchor link contained an umlaut (https://bugs.chromium.org/p/chromium/issues/detail?id=985254).

I found out that the link to the anchor is outside of the pagebox, when I was using the preview mode. Does anyone else know this problem?

Best regards,

Cypher

CypherRazzor commented 1 year ago

I found a workaround. To prevent this from happening you can set a pagebreak near the problematic link with <<< .

ggrossetie commented 1 year ago

Hello, yes this is a known issue with Paged.js. Sometimes you need to help the layout engine otherwise it will truncate your document (because it cannot figure out how to layout/break an element).

If you can create a small reproduction case, I encourage you to report this issue at gitlab.coko.foundation/pagedjs/pagedjs