i try since some days to make an pdf overlay of an existing file with XSL-FO
here is my code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="2.0">
<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="firstPage" page-height="297mm" page-width="210mm">
<fo:region-body margin-top="25mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="firstPage">
<fo:flow flow-name="xsl-region-body">
<fo:block-container position="absolute">
<fo:block font-size="20pt" color="red">
blub </fo:block>
</fo:block-container>
<fo:block-container position="absolute">
<fo:block>
<fo:external-graphic src="file:///Users/gigo/Downloads/pdf-image/overlay.pdf"/>
</fo:block>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
I try to use an old thread from an mailing list: Link to Thread
does this relay work with the current fop version. i am using mac OSX ? might be this the problem?
Are there other solutions to integrate existing pdf files?