Bruno Lowagie wrote:
>Reading a PDF is done with Adobe Reader:
>http://www.adobe.com/products/acrobat/readstep2.html
>
>A lot of information can be found with Google:
>http://www.google.com/search?q=PDF
>
>best regards,
>Bruno
I wrote:
> Hi
> I want to send the PDF file created with iText to the user.
>
> I want to know how to read from a PDF doc using iText
> Mr. Bruno please send me some links where I can find lot of information.


Hi
First please let me know how to access my account at your site, there is no login on home page nor on mailing list. Why can't I find a direct link to any thing.  I am not recieving mails in my inbox.

Thanks for those links
I found some intresting ones from lowagie.com

http://itextdocs.lowagie.com/examples/com/lowagie/examples/general/copystamp/AddWatermarkPageNumbers.java
http://itextdocs.lowagie.com/tutorial/general/copystamp/
http://itextdocs.lowagie.com/tutorial/directcontent/#templates
Well this time, I am trying to write the PDF document using PDF Stamper class. In the following code the while loop is being called twice, can you please tell me whats wrong with that


String uri = "/pdf/xhrstruts.pdf" ;
        
        PdfReader reader = new PdfReader(""+uri+"");
        log.debug("file accessed");
       
        int n = reader.getNumberOfPages();
        log.debug(String.valueOf(n));
       
        PdfStamper stamp = new PdfStamper(reader,
                   new FileOutputStream(issueDate+"1.pdf"));
            
        PdfContentByte over;        
        response.setHeader("Content-disposition", "attachment; filename=\""
                + issueDate + ".pdf\"");
        
         int i = 1;
// the following oart is being called twice
        while (i <= n){
            log.debug(String.valueOf(i));
            stamp.insertPage(i, PageSize.A4);
        over = stamp.getOverContent(i);
        over.addTemplate(stamp.getImportedPage(reader, i), 1, 0, 0, 1, 0, 0);
        i++;
        }
        
        stamp.close();



         //OutputStream out =      new  //BufferedOutputStream(response.getOutputStream());
         //PrintStream pout = new PrintStream(out);
         //PdfReader reader = new PdfReader(inFile);
         //sendFile(inFile, out); // send raw file
         //out.flush();
        


	
		
Find out what India is talking about on - Yahoo! Answers India
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to