Hi Andrew,

Andrew Humphries (MEL) wrote:
> Hi - 
> 
> Am investigating FOP as an alternative to our current PDF solution,
> Itext.
> 
> I have done some research but cannot see from the FAQ etc and googling
> 
> Can I absolutely position (to pixel positions) text on a pdf with FOP?
> 
> I need to absolutely position text on the pdf ontop of a background
> image with any library I can consider as a replacement for Itext.  I am
> using the PDFContentByte in Itext to do this absolute positioning.

You want to use an absolutely-positioned block-container element:
    <fo:block-container absolute-position="absolute" top="10pt"
      left="10pt">
      <fo:block>Text in an absolutely-positioned block-container...</fo:block>
    </fo:block-container>

Note that positions in pixels don’t have much meaning in PDF. You
usually set the size of the document in cm, mm or pt, and position
objects in the PDF likewise.


HTH,
Vincent

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to