Can't do it with iText, Try:
Jpedal or Multivalent.

Bill Ensley
www.bearprinting.com
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Juan Carlos Araya Navarro
> Sent: Monday, January 22, 2007 9:20 AM
> To: [email protected]
> Subject: [iText-questions] Question
> 
> Hello,
> 
>       We are trying to generate a PNG image from each page of 
> a given PDF File.
> 
>       In the examples I can see how the PDF file is open, and 
> also how each page can be converted to an independient PDF 
> file, but there is not information or examples related to PDF 
> to PNG transformation.
> 
>               This is the code I have been testing:
> 
>               PdfReader reader  = new 
> PdfReader("c:\\temp\\MyPDF.pdf");
>               Document document = new 
> Document(reader.getPageSizeWithRotation(1));
>               PdfCopy copy      = new PdfCopy(document, new 
> FileOutputStream("c:\\temp\\OutputPDF.pdf"));
>               document.open();
>               PdfImportedPage page = copy.getImportedPage(reader, 1);
>               copy.addPage(page);
>               document.close();
> 
>               Here I would like to save each page as a PNG 
> image. Also I would like to transform the PdfImportedPage to 
> a BufferedImage or an Image object.
> 
> 
>       I would appreciate any help that you could bring me,
> 
> Thanks,
> 
> 
> Juan Carlos Araya Navarro
> 
> --------------------------------------------------------------
> -----------
> 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
> Buy the iText book: http://itext.ugent.be/itext-in-action/


-------------------------------------------------------------------------
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
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to