At 03:10 AM 7/19/2006, selvi wrote:
>iam using the below listed code to read the fonts used in a pdf file.

         Interesting approach to the problem...It certainly works, 
though NOT very optimal for larger PDFs.


>how can i read the font property of a particular page of a pdf file.

         You need to iterate over each page, then from the Page get 
the Resources and then the Font resources.   HOWEVER, that only gets 
you the main content fonts.  You also need to consider recursion with 
Form XObjects, Patterns and Type 3 fonts.  In addition, any 
annotations/Widgets on the page can have font usage.


Leonard

---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:[EMAIL PROTECTED]>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-938-7080 (voice)
                                              215-938-0880 (fax)


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to