Hi Michael,

For margin can I use TextMarginFinder class?

Regards,
Kausik Porel

On Tue, Mar 26, 2013 at 1:52 AM, mkl <m...@wir-sind-cool.org> wrote:

> 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
>
------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
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