Get the image XObjects from the resouce dictionary. Look at page 310 of the
pdf reference 1.6 and get the keys. Width and height are imediate, for bw
you'll need bitspercomponent==1 and a suitable colorspace like DeviceGray or
CalGray. Other colorspaces will fit the bill but those two are direct.
----- Original Message ----- 
From: "Youssef Eldakar" <[EMAIL PROTECTED]>
To: "Paulo Soares" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, February 07, 2005 10:19 AM
Subject: RE: [iText-questions] Reading PDF Image Objects


> How do I get the dimensions and color/bw?
>
> -----Original Message----- 
> From: Paulo Soares [mailto:[EMAIL PROTECTED]
> Sent: Mon 2/7/2005 11:50 AM
> To: Youssef Eldakar; [EMAIL PROTECTED]
> Cc:
> Subject: Re: [iText-questions] Reading PDF Image Objects
>
>
>
> Getting the image dimensions and color/bw is easy but for the resolution
> you'd need to parse the content stream and keep a watch on the graphic
> state.
>
> ----- Original Message -----
> From: "Youssef Eldakar" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, February 06, 2005 11:06 AM
> Subject: [iText-questions] Reading PDF Image Objects
>
>
> > I am interested in reading image objects from PDF files and determining
> their resolution and whether they are color or black-and-white. Is there a
> direct way to do this using PdfReader?
> >
> > Youssef Eldakar
> > Bibliotheca Alexandrina
> >
> > NHuryjj
> > jzyä 8IzrjÃ{Mâym +-.ÊÇ+-ëb ~ mç*'
>
>
>
>



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to