Gunawan Candra wrote: > How can I get raw ByteStream for image in PDF ?
So you have an existing PDF and you want to grab the bytes of an Image? OK, then you could find some inspiration in the iText toolbox: http://itexttoolbox.sourceforge.net/ There's a plug-in called ImageXRefViewer and if you look at its execute() method, you'll discover one way to get the PDF object that has the stream with the image bytes: http://itexttoolbox.svn.sourceforge.net/viewvc/itexttoolbox/main/src/com/lowagie/tools/plugins/ImageXRefViewer.java?revision=110&view=markup > How can I get the type of raw bytestream (JPEG/ TIFF/ PNG/) for image in PDF ? Hmm... it's not because you add an image of a certain type to a PDF that this image will keep that same type. Maybe you should read the PDF reference (available as a free download on adobe.com) to have a better understanding about images in PDF. > Can i-text convert / grab image from PDF file ? Grab: yes; convert: it depends. See my first answer, find out how ImageXRefViewer works. > Can i-text resize image (I mean, resize the physically file) from PDF ? No; iText doesn't reduce the quality/filesize of images; you'll need something like JAI to do this. br, Bruno ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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/
