Hi Leonard, hi all,

thnx, i was able to retrieve most of the stuff from pdf after reading PDF
Reference...
but have problem retriving color componets and its values..
i understood that color values  for text object are set using SC,
rg,rb...etc. operators which is defined in ContentsStream object.
So i m trying to iterate through Contens object to extract values of Text
color set using above color operator.. but contents object doenst show any
text information ..

is it possible to retrive values of colors used for colored text? is der any
other way i can do it?

deepali

On Fri, Mar 13, 2009 at 4:18 PM, Leonard Rosenthol <[email protected]>wrote:

>  Getting information about what is contained in a PDF (such as colors,
> fonts, etc.) requires that you understand the 5 places in a PDF where
> content can be described and then recursively walking/iterating that content
> to catalog the data.  Once you are done with your read of the PDF Reference,
> you will understand this better.
>
>
>
>  In addition, you will found out that #7 and #8 are impossible because
> these concepts don’t exist in  PDF…
>
>
>
> Leonard
>
>
>
> *From:* Deepali Tatkar [mailto:[email protected]]
> *Sent:* Friday, March 13, 2009 1:41 AM
> *To:* Post all your questions about iText here
> *Subject:* Re: [iText-questions] How to Check if existing Pdf is of CMYK,
> RGB or GRAY scale type
>
>
>
> hi Leonard,
> thanx for your guidence, as you suggested i will read the Pdf Reference.My
> basic problem was that i dont have any idea about how objects are placed in
> Pdf.Till now i was reading the iTextSharp tutorials and documentation for
> understanding how to read or extract data from existing pdf files.
> Mean time i will give you the brief overview of my project i m doing using
> iTextSharp dll so that you can guide me exactly how to go about,my project
> is to develope a module for reading a existing Pdf files using iTextSharp
> dll.
> Main objective of this module are (input is any existing Pdf file)
> 1. To extract total no. of pages of given Pdf.( i could get this using
> PdfReader class).
> 2.To get size of pdf pages.( i could get this using PdfReader class)
> 3.To extract what colorspace (as u cleared my doubt that there is no single
> colorspace for pdf)
> 4. To extract what all fonts present in the entire pdf file.( i could get
> font names by recursively
>     seaeching FONT objectss).
> 5.To extract total no. of Images present in the pdf file ( i could get this
> from Xobjects count per
>    page,but here problem is dat for some pdf Xobject count gives count of
> total images of entire
>    pdf and for some pdfs  it it gives count of images per page., so me
> confused :( )
> 6.To get the position of images .
> 7. To check if Pdf has Header/Footer (i dnt how can check it).
> 8.To check if Pdf has margines and get the margines if present.( no idea)
> I am rading the iTextSharp documentation, but dint find much on how extacly
> i can retrieve data from Pdf files.So i need your help for how can extract
> all information i needed using iTextSharp dll.
>
> I will be very thankfull if you can advice me for above project.
> thanx
> deepali
>
>
>  On Thu, Mar 12, 2009 at 7:05 PM, Leonard Rosenthol <[email protected]>
> wrote:
>
> A PDF whose contents consist of a single page, and that single page
> contains only a single object (be it image, text or vector) is still just
> that – a single object with a colorspace.  The PDF doesn’t have a
> colorspace.
>
> And all the information is in the PDF – no need to decode the image data...
>
> Leonard
>
>
>
>
> On 3/12/09 8:18 AM, "Axel Rose" <[email protected]> wrote:
>
> One exception:
>
> An image PDF saved with Photoshop has a distinct colorspace.
> You'd have to extract the metadata and decode e.g.
> PhotometricInterpretation.
>
>
> Perhaps the use case is this simplified case.
>
>
> Regards
>   Axel
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
>
>
> --
> Leonard Rosenthol
> PDF Standards Architect
> Adobe Systems Incorporated
>
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
>
>
>
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
>
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to