ggrossetie / asciidoctor-web-pdf

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

incorrect formatting for long table with images #702

Open giuliano52 opened 3 months ago

giuliano52 commented 3 months ago

First thank you for this great tool, that I am it using a lot.

I found strange behaviour (using Asciidoctor Web PDF 1.0.0-alpha.16) :

When I create a long table with images, the first page is fine but the following are displaying fewer lines than would fit on the page. The situation is worse when using the parameter: width=100%.

below the asciidoctor test file and this is the output:

output.pdf

thank you in advance if you can give me some advice.

= Sample

[cols="4,1"] |=== | 1 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 2 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 3 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 4 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 5 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 6 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 7 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 8 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 9 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 10 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 11 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 12 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 13 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 14 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 15 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 16 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 17 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 18 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 19 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] | 20 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[width=100%] |===

<<<

[cols="4,1"] |=== | 1 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 2 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 3 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 4 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 5 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 6 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 7 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 8 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 9 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 10 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 11 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 12 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 13 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 14 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 15 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 16 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 17 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 18 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 19 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] | 20 | image:https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png[] |===