See the example stamped.java in www.geocities.com/itextpdf
Best Regards,
Paulo Soares
----- Original Message -----
From: "SriHarsha_Parigi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 25, 2003 11:03
Subject: [iText-questions] adding content to pdf using PdfStamper
> hi,
> I am using PdfCopy to copy a PDF file but i want to add some
> content
> in any of the pages.After copying the file using PdfCopy,i am using
> PdfStamper to add content to this.I don't know how to use PdfStamper. Is
> there any example available.
>
> PdfReader reader = new PdfReader("SIUG-EN.pdf");
> int n = reader.getNumberOfPages();
>
> Rectangle psize = reader.getPageSize(1);
>
> Document document = new Document(psize);
>
> PdfCopy writer = new PdfCopy(document, new
> FileOutputStream("SIUG-EN1.pdf"));
>
> document.open();
>
> PdfImportedPage page;
>
> for(int i = 0; i < n; )
> {
> ++i;
> page = writer.getImportedPage(reader,i);
> writer.addPage(page);
> }
> document.close();
>
> PdfReader pdfReader = new PdfReader("SIUG-EN1.pdf");
> PdfStamper stamper = new PdfStamper(pdfReader,new
> FileOutputStream("SIUG-EN2.pdf"));
>
> after this say i want to add some string in 2
> page.
> How can i do this using PdfStamper.???????????????
>
>
> ************************************************************************
> **
> This email (including any attachments) is intended for the sole use of
> the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
> or
> distribution or forwarding of any or all of the contents in this message
> is
> STRICTLY PROHIBITED. If you are not the intended recipient, please
> contact
> the sender by email and delete all copies; your cooperation in this
> regard
> is appreciated.
> ************************************************************************
> **
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01
> /01
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions