At 11:32 AM 2/23/2006, Richard Braman wrote:
So the psuedocode would be:
You got it!
Remember it's not the largest SINGLE bounding box, but that
ONE EDGE of an object's bounding box exceeds that edge of your
"enclosing box". Eg. if (objBox.left < enclosingBox.left )
enclosingBox.left = objBox.left. OR, of course, you could just
enclosingBox.left = min( objBox.left, enclosingBox.left).
Margin = rectangular Area of page box - rectangular area of largest
bounding box
Correct again.
Does someone have some real code, or at least the classes/methods to use for
Well, you can't do this with iText as it is today :(. It
doesn't have enough smarts in the content stream tokenizer to make
this work - at least not w/o your doing all the hard stuff...
Instead, this would be an EXCELLENT opportunity to use
either PDFBox, JPEDAL or Multivalent as ALL OF THEM have this
particular feature already implemented (object iteration and bounding
box retrieval).
Leonard
---------------------------------------------------------------------------
Leonard Rosenthol <mailto:[EMAIL PROTECTED]>
Chief Technical Officer <http://www.pdfsages.com>
PDF Sages, Inc. 215-938-7080 (voice)
215-938-0880 (fax)
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions