hi,
    I am using PdfCopy to copy a PDF file but i want to add some content in
any of the pages.How can i do this through PdfCopy or is there any other
class which can do this ?????????????

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

Reply via email to