简体   繁体   中英

How to find the exact co-ordinates of a string in a PDF file?

I am using iTextSharp to read some strings from a PDF file which are present in a table. For this i need to provide the co-ordinates of the positions from where i need to read the strings. I need these co-ordinates in the form which can be passed into the System.util.RectangleJ object to create a rectangle around the string. Can you tell me how do i find these coordinates?

IText has a companion application called "iText RUPS" that will show you the format of a PDF document. It's a little crude and difficult to understand at first, but you will see coordinates, Embedded JavaScripts etc in the document. It is a stand-application application so it is valid for iTextsharp too because it's using IText terminology to show you a document.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM