perfect thanks. Using GetFont and it giving me the font names, albeit pretty 
cryptic. Now just need to figure how to get font size (which seems pretty 
hidden to me).

Thanks

-----Original Message----- 
From: 1T3XT BVBA
Sent: Wednesday, June 29, 2011 10:36 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] How to extract title / heading from document 
contents

On 28/06/2011 18:27, Michael O'Donovan wrote:
> I have the book and looked through chapter 15. However in the section
> (15.3.2) about using  PdfContentSteamProcessor the code samples only 
> extract
> raw text
For instance in listing 15.24 using the getText() method of the
RenderInfo class.
This class also has a getFont() method, a getBaseline() method, etc...

Those are the methods you'll need, but it isn't going to be easy unless
your PDFs are very straight-forward.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a 
reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php 


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to