Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Hello,
I get the following error when using Java version of Asciidoctor PDF: avr. 22, 2020 9:46:12 AM org.asciidoctor.jruby.internal.JRubyAsciidoctor convertFile SEVERE: (CannotFit) Prawn::Errors::CannotFit Using the latest distribution (via Maeven Central): asciidoctorj-pdf-1.5.3.jar asciidoctorj-2.2.0.jar The problem seems to be with a table in the document that contains images. When using Linux command line with the following Gem installed: asciidoctor (2.0.10, 1.5.8, 1.5.7.1) asciidoctor-pdf (1.5.0.beta.4, 1.5.0.beta.3, 1.5.0.alpha.16) I do not get this error. Thanks in advance. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I also reproduced the issue running the latests pdf gem 'asciidoctor-pdf (1.5.3)' and the code below. I think the best thing is to open an issue in the repo https://github.com/asciidoctor/asciidoctor-pdf. If you can test the different versions and see what version broke it would be a great help.
... [show rest of quote]
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Hi,
thanks for your answer, that's very useful because I also reproduce with your simple example. I have identified the version that breaks the generation: OK with org.asciidoctor:asciidoctorj-pdf:1.5.0-rc.2 KO with org.asciidoctor:asciidoctorj-pdf:1.5.0-rc.3 |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
This is a known limitation of using inline images in table cells. You must set the width to a value that will allow the image to fit (or use a block image). Otherwise, it cannot be computed correctly and leads to this error. This limitation is mentioned in the README. See the 3rd list item here: https://github.com/asciidoctor/asciidoctor-pdf#known-limitations Best Regards, -Dan On Wed, Apr 22, 2020 at 3:30 AM phgiraud [via Asciidoctor :: Discussion] <[hidden email]> wrote: Hi, -- Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Thanks for your answer Dan,
I'm replacing inline images with image blocks. Would it be possible to have more context on the errors, i.e. adoc file and line # ? |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
Unfortunately, adding more context is not possible since this is a bug / restriction coming from deep within Prawn. Best Regards, -Dan On Wed, Apr 22, 2020 at 5:09 AM phgiraud [via Asciidoctor :: Discussion] <[hidden email]> wrote: Thanks for your answer Dan, -- Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Free forum by Nabble | Edit this page |