Kausik Porel wrote
> TextRenderInfo objects give me the font details and position. Is it
> possible to find the margin details also? I'm able to find the height and
> width of the document but I could not get any information about margin.

There is nothing like a margin in a PDF, at least not as an explicit
information, merely implicitly given by the multitude of text segments given
as text render info objects. Thus, you have to deduce that number by testing
at which x position the left-most segments started and at which the
right-most ones ended, and furthermore at which y coordinate the top-most
started and at which the bottom-most ended.

Regards,  Michael



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/How-to-get-style-of-the-text-of-a-PDF-document-tp4657878p4657911.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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