Absolute positioning using XSL to convert and render to PDF

How to perform absolute positioning using XSL? I am working on converting XSL to FO to PDF for sending emails and trying to figure out how to absolutely position fo: blocks containing the return address and recipient address so that they appear in the windows on the envelope.

Anyone have any suggestions on magic syntax to make this happen?

+4
source share
1 answer

I'm not an expert on this, and I don't (at the moment) have an XSL-FO processor here to test this, but shouldn't something like this work? (don't take it literally, please)

<fo:block> <fo:block> BLABLABLABLABLABLABLABLABLABLABLABLABLABLABLABLABLABLABLABLA </fo:block> <fo:block-container position="absolute" top="30pt" left="30pt" height="16pt" width="100%"> <fo:block font="48pt Arial" color="red">absolute</fo:block> </fo:block-container> </fo:block> 
+9
source

Source: https://habr.com/ru/post/1277710/


All Articles