Login  Register

Re: asciidoctor-pdf text flow to the side of an image

Posted by mojavelinux on Jan 07, 2019; 6:43am
URL: https://discuss.asciidoctor.org/asciidoctor-pdf-text-flow-to-the-side-of-an-image-tp6667p6668.html

Marc,

It's very unlikely this will ever happen in Asciidoctor PDF. It's simply not the right technology stack for implementing this kind of layout (though never say never). I experimented with the idea once for a client {1}. But it isn't pretty. Prawn is not a general purpose layout engine, so it's necessary to drop down to low-level operations to place the text manually around the image.

There will be some news soon about a new strategy we're going to pursue for generating PDFs that leverages the browser layout engine, which opens the door to far more advanced layouts. You can find an early preview here: https://github.com/mogztter/asciidoctor-pdf.js

Cheers,

-Dan

:1: You can find a link to this code in this issue: https://github.com/asciidoctor/asciidoctor-pdf/issues/353

On Sun, Jan 6, 2019 at 4:27 PM 1marc1 [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hi team,

Is it possible to have text flow to the side of an image in asciidoctor-pdf, as shown in the asciidoctor manual?



Thank you.

Marc.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/asciidoctor-pdf-text-flow-to-the-side-of-an-image-tp6667.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