Login  Register

Re: Prawn::Errors::CannotFit in Java but not with command line

Posted by mojavelinux on Apr 22, 2020; 10:16am
URL: https://discuss.asciidoctor.org/Prawn-Errors-CannotFit-in-Java-but-not-with-command-line-tp7938p7941.html

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,
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


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/Prawn-Errors-CannotFit-in-Java-but-not-with-command-line-tp7938p7940.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