> Image jpeg = Jpeg.getInstance(pdfStamper.getImportedPage(pdfReader, 1));

There is no Jpeg.getInstance.  While it compiles, it's really just calling 
Image.getInstance().  Kinda misleading.  Further, an Image isn't necessarily a 
bunch of pixels.  If you call jpeg.isJpeg(), it'll return false, while 
jpeg.isImgTemplate() == true.  Even if getOriginalData() returned something, 
the "original data" in this case is the drawing commands from the PdfTemplate, 
not JPEG data.

For this to work, iText would have to know how to render a PDF.  It does not:

http://www.lowagie.com/iText/faq.html#pdfviewer

--Mark Storer
  Senior Software Engineer
  Cardiff Software

#include <disclaimer>
typedef std::Disclaimer<Cardiff> DisCard;



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> Segev, Eli
> Sent: Friday, September 08, 2006 8:00 AM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Convert PDF to an Image
> 
> 
> I am trying the following code:
> 
> PdfReader pdfReader = new PdfReader(fileName);
> FileOutputStream output = new FileOutputStream(outputFile);
> PdfStamper pdfStamper = new PdfStamper(pdfReader, output);

> 
> Is it possible to get the contents of the image into a byte array?  I
> have noticed that jpeg.getOriginalData() returns null.
> 
> ------------
> Eli Segev
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Paulo Soares
> Sent: Monday, July 10, 2006 11:33 AM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Convert PDF to an Image
> 
> Image.getInstance(PdfWriter.getImportedPage(PdfReader reader, int
> pageNumber))
> 
> Paulo
> 
> 
> 
> 
> --------------------------------------------------------------
> -----------
> Using Tomcat but need to do more? Need to support web 
> services, security?
> Get stuff done quickly with pre-integrated technology to make 
> your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on 
> Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&;
dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to