Hello,

I need to merge a static PDF document and an Acroform document together, and
send the result on the screen. I would like a ‘real’ merge, not PDF
concatenated. However, I don't find the solution...

In the Acroform, I’m using something like this :

    PdfReader readerForm = new PdfReader("pdf/acroform.pdf");
    PdfStamper stamp = new PdfStamper(readerForm,
_response.getOutputStream());
    AcroFields readerForm = stamp.getAcroFields();
    readerForm.setField("city", "PARIS");
    readerForm.setField("country", "FRANCE");
    stamp.setFormFlattening(true);
    stamp.close();

Now, I wish to modify this code in order to reuse the stream generated by
the stamper and apply it over the pages 2, 4 and 6 of another static PDF.

Do you think that it's possible with iText ?

I know, it would be easier if the static PDF would be an Acroform because
merging will not be necessary. However, it's not very profesional in my case
: I have to reuse the same Acroform on 3 pages so it's more intelligent to
have an external Acroform, fill it and merge the result over the 3 pages of
my static document.

Thanks for your help.
-- 
View this message in context: 
http://www.nabble.com/Using-iText-for-merging-documents-tp14433512p14433512.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to