You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Sh...@cognizant.com on 2009/03/23 14:04:12 UTC
Finding the x-coordinate and width of a sub-string
Hi,
I wish to find accurately the width of a sub-string using the
PDFTextStripper. For e.g. part of the output of PDF Text extraction
example is as follows:
String[75.0,278.8 fs=10.0 xscale=1.0 height=7.0000005 space=5.830001
width=108.87001]Primary Diagnosis: elder
Here the width calculated for the entire string "Primary Diagnosis:
elder" is 108.87001. I wish to find the starting x-coordinate for just
the word 'Diagnosis' and the width of the same word. How can I find the
exact x-coordinate and the width of such substrings.
Thanks and Regards,
Shishir Mane
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.