read the size of the image in the pdf file
- From: "Mark Storer" <MStorer (at) cardiff.com>
- Date: Wed, 25 Oct 2006 13:23:36 -0700
Err.. which size?
Bytes in the PDF? Yes.
Image size in pixels X & Y? Yes.
Image size as it appears on the page: Not out of the box, no. You'd have to code something Non-Trivial to do it... iText won't do it for you.
The first two require that you hunt down the Image XObject PdfDictionary for the image in question (and finding out which is which if there's more than one is going to be Very Difficult), and querying the PdfDictionary directly. This will require that you crack open the PDF Specification and do some coding. iText won't just hand you any of these values.
If you just want to collect all these values, not caring which is which, that isn't terribly difficult. Check out the PDF Specification, look for Image XObjects.
--Mark Storer
Senior Software Engineer
Cardiff.com
#include <disclaimer>
typedef std::Disclaimer<Cardiff> DisCard;
> -----Original Message-----
> From: itext-questions-bounces (at) lists.sourceforge.net
> [mailto:itext-questions-bounces (at) lists.sourceforge.net]On
> Behalf Of jerry
> Sent: Wednesday, October 25, 2006 5:43 AM
> To: itext-questions (at) lists.sourceforge.net
> Subject: [iText-questions] read the size of the image in the pdf file
>
>
> Hi,
>
>
> can anyone please help me to read the size of the
> images in a pdf file.
>
> regards
> jerry
>
>
>
> --------------------------------------------------------------
> -----------
> 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
iText-questions (at) lists.sourceforge.net
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
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions