On 24/07/2013 18:37, Brian Fox wrote:
> We'd like to generate a report.pdf document using iText.  No problems 
> so far.  We'd like to have the vector contents of logo.pdf repeated in 
> the background,

That would be achieved using page events: 
http://itextpdf.com/examples/iia.php?id=114
The vector contents stored in logo.pdf is stored as a PdfImportedPage 
(the page variable) and added to each page in the onEndPage() method: 
writer.getDirectContentUnder().addTemplate(page, 0, 0);

> say, in a hex pattern.

What do you mean by hex pattern? I mean: I know what a hex pattern is, 
but I assume you have the complete background stored in logo.pdf. It 
demands much less processing power if the hex pattern has already been 
done. If not, you have to invoke getDirectContentUnder multiple times 
using different coordinates.

Or you'd have to define a pattern color using the imported page and 
paint a rectangle corresponding with the page size using the pattern as 
paint.

> Can iText do something like this?  And if so, any tips on getting started?

I'd start by looking at page events. I have no clue why Batik is 
mentioned. I don't see any reference to SVG in your question.

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to