Hi Peter,
Thanks for the reply. It works for what is 1 page concerned. If I extend
your example with a few more blocks to force a page break, the last block(s)
are cut (see attached example) :
<fo:block-container>
<fo:block-container position="absolute">
<fo:block font-size="20pt">
Apache FOP (Formatting Objects Processor) is a print formatter driven
by
XSL formatting objects (XSL-FO) and an output independent formatter.
It is a Java application that reads a formatting object (FO) tree and
renders the resulting pages to a specified output.
Output formats currently supported include
PDF, PS, PCL, AFP, XML (area tree representation), Print,
AWT and PNG, and to a lesser extent, RTF and TXT.
The primary output target is PDF </fo:block>
<fo:block font-size="20pt" space-before='2in'>
Apache FOP (Formatting Objects Processor) is a print formatter
driven by
XSL formatting objects (XSL-FO) and an output independent
formatter.
It is a Java application that reads a formatting object (FO)
tree and renders the resulting pages to a specified output.
Output formats currently supported include
PDF, PS, PCL, AFP, XML (area tree representation), Print,
AWT and PNG, and to a lesser extent, RTF and TXT.
The primary output target is PDF </fo:block>
<fo:block font-size="20pt" space-before='2in'>
Apache FOP (Formatting Objects Processor) is a print formatter
driven by
XSL formatting objects (XSL-FO) and an output independent
formatter.
It is a Java application that reads a formatting object (FO)
tree and renders the resulting pages to a specified output.
Output formats currently supported include
PDF, PS, PCL, AFP, XML (area tree representation), Print,
AWT and PNG, and to a lesser extent, RTF and TXT.
The primary output target is PDF </fo:block>
</fo:block-container>
<fo:block-container position="absolute">
<fo:block>
<fo:external-graphic src="file:/fop/pdf-image/overlay.pdf"/>
</fo:block>
</fo:block-container>
</fo:block-container>
Peter Hancock-2 wrote:
>
> Hi Erik,
>
> I am not sure if my solution is the most elegant but for ideas have a
> look at the files in the attached zip.
> in.fo is for the final document- you will have to change the path to
> the generated overlay.pdf.
> overlay.fo was used to create overlay.pdf.
> out.pdf is the final result.
>
> For busy readers who do not have time to look at the attacmnet the
> relavent fo snippet is
>
> <fo:block-container>
> <fo:block-container position="absolute">
> <fo:block font-size="20pt">
> Apache FOP (Formatting Objects Processor) is a print formatter
> driven by
> XSL formatting objects (XSL-FO) and an output independent formatter.
> It is a Java application that reads a formatting object (FO) tree
> and rend
> Output formats currently supported include
> PDF, PS, PCL, AFP, XML (area tree representation), Print,
> AWT and PNG, and to a lesser extent, RTF and TXT.
> The primary output target is PDF </fo:block>
> </fo:block-container>
>
> <fo:block-container position="absolute">
> <fo:block>
> <fo:external-graphic src="file:///tmp/pdf-image/overlay.pdf"/>
> </fo:block>
> </fo:block-container>
> </fo:block-container>
>
> I hope this helps.
>
> pete
> On Tue, Nov 2, 2010 at 1:25 AM, erik pepermans <[email protected]> wrote:
>> Hi,
>>
>>
>>
>> I tried to combine fop-pdf-images-2.0.0 with fop-1.0
>>
>> So far so good. How can I use the pdf document from the
>> fo:external-graphic
>> command as an overlay for subsequent blocks ?
>>
>>
>>
>> Thanks
>>
>>
>>
>> Brgds
>>
>> Erik
>>
>> --
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
http://old.nabble.com/file/p30119103/out.pdf out.pdf
http://old.nabble.com/file/p30119103/tt.pdf tt.pdf
--
View this message in context:
http://old.nabble.com/using-an-existing-pdf-as-overlay-tp30110093p30119103.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]