asciidoctor-pdf text flow to the side of an image

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

asciidoctor-pdf text flow to the side of an image

1marc1
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.
Reply | Threaded
Open this post in threaded view
|

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

mojavelinux
Administrator
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
Reply | Threaded
Open this post in threaded view
|

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

1marc1
Dan,

Thanks for your quick response. Does that mean that future development of asciidoctor-pdf in its current form will not continue?

Will the new approach leverage Prawn or another PDF writer? If it is another writer, is it known which one? Will it be implemented in Ruby or something else?

Apologies for all the questions all of a sudden. Looking forward to hearing more details.

Thank you for all your hard work on this project. Please know that it is very much appreciated.

Marc.
Reply | Threaded
Open this post in threaded view
|

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

mojavelinux
Administrator
> Does that mean that future development of asciidoctor-pdf in its current form will not continue?

That's what the news will cover. In the meantime, a new release of Asciidoctor PDF is on the way to make the features in master available.

> Will the new approach leverage Prawn or another PDF writer?

As I said, it will be the browser. That's the PDF writer.

> Will it be implemented in Ruby or something else?

We'll have wrappers for all the platforms the Asciidoctor runs on, I'm sure.

I'll lay out in the upcoming post why we need to make this shift. But understand that it's so we can get where we want to go.

Cheers,

-Dan

On Mon, Jan 7, 2019 at 3:06 AM 1marc1 [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Dan,

Thanks for your quick response. Does that mean that future development of asciidoctor-pdf in its current form will not continue?

Will the new approach leverage Prawn or another PDF writer? If it is another writer, is it known which one? Will it be implemented in Ruby or something else?

Apologies for all the questions all of a sudden. Looking forward to hearing more details.

Thank you for all your hard work on this project. Please know that it is very much appreciated.

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-tp6667p6669.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
Reply | Threaded
Open this post in threaded view
|

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

1marc1
Dan,

Thank you for your clarifications. I hope this move can address some of the shortcomings in asciidoctor-pdf.

I will follow the developments closely and will try to assist where I can.

Marc.