Search code examples
pdf-generationcodenameoneapache-fopasciidoc

Is it possible to wrap text around an image using Asciidoc & Fopub?


I use asciidoc and the fopub backend to generate the docs for Codename One. The HTML generation is pretty easy but when I do the PDF generation I can't wrap image text properly.

The float attribute and hint for asciidoc is only supported for HTML output. The align attribute works great with the fop/docbook backend but doesn't let the text wrap around the image as the float argument does.

Is there a way to do the text wrapping that will work with the fop PDF output?


Solution

  • I'm not deeply familiar with asciidoc but I think the problem is in FOP based on the answers here: Block Image Right and Flow Text Around It?

    Without that asciidoc can't even begin to wrap around an image with the fop backend.