-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to fully generate PDF file, getting reference errors generating PDF outline #674
Comments
This is a know issue with Paged.js. When the Paged.js engine cannot layout an element it will skip it (i.e. truncate the document). That's the reason why some pages are missing and as a result some sections (section are missing from the table of content (more specifically section title references). At some point, we might try to use another engine called https://github.com/vivliostyle/vivliostyle.js. Maybe it will give us better result. If you can create a small reproduction case, I encourage you to report this issue at https://gitlab.coko.foundation/pagedjs/pagedjs/ |
I'm looking into Vivliostyle because I ran into some limitations with Paged.js as well. For what it's worth I quickly ran the document through
Are there any serious plans or a vision on how Vivliostyle would fit into |
Do I understand it correctly, that anchors in general do not work? Is there a workaround other than using vivliostyle? EDIT: |
It's not really anchors but rather missing contents. Paged.js will skip elements (i,e., contents) when it cannot figure out how to make them fit into a page.
Tables are notoriously difficult to gracefully chunk into multiple pages because they have a rigid/strict layout. It gets worse when the table contains images or colspans/rowspans. |
I am trying to generate a PDF using the attached adoc file (inside the ZIP). The file generates both HTML and PDF output normally (I have attached those copies for reference), but when using the web-pdf generator instead I get a number of errors output (see the log file, this is just the screen output).
The PDF and HTML files names with webpdftest are the output from the same source. The PDF file is about 75 pages instead of the 140 or so it should be (and the TOC has everything as page 0 with no links), and the HTML is also very short compared to what it should be.
The errors generated all seem to be about inforrece anchor links, but I don't see any problems when I generate the files using the more traditional asciidoctor programs.
Any help would be appreciated.
web-pdf-test.zip
This is being run from the released version for Windows (being run through Powershell).
The text was updated successfully, but these errors were encountered: