mixiff wrote:
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...

What is a 'real' merge? Do you mean you want to superimpose
one PDF with another?

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();

The result is a flat one page PDF?
Now you want to superimpose this page on another existing document?
That's possible. Read the page into a PdfImportedPage (which is a
subclass of PdfTemplate) and add this template to the pages of the
other PDF with PdfReader/PdfStamper.
br,
Bruno

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-------------------------------------------------------------------------
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