Can anyone help with the following. I am parsing an XML document using a
tagmap using

XmlParser.parse(document, "file:c:\\xml\\Letter2A.xml", tagmap);

but I would like this parsed XML to overlay an existing A4 PDF template.
I have tried adding / opening the document after the parse and using the
following code:

PdfContentByte cb = writer.getDirectContent();
PdfImportedPage page1 = writer.getImportedPage(templateReader, 1);
cb.addTemplate(page1, .5f, 0, 0, .5f, 200, height/2);

but I only get the parsed document, not the parsed document and not the
background from the template.
If I try it the other way around, ie I create a new PDF from a template and
attempt to overlay a parsed XML
file, I get the same result. Is there an easy way to merge the template
material with a data-merged PDF?

Thanks




For the latest data on the economy and society 
consult National Statistics at http://www.statistics.gov.uk

**********************************************************************
Please Note:  Incoming and outgoing email messages
are routinely monitored for compliance with our policy
on the use of electronic communications
**********************************************************************
Legal Disclaimer  :  Any views expressed by
the sender of this message are not necessarily
those of the Office for National Statistics
**********************************************************************

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to