-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coordinates not recognized #46
Comments
you need to use a co-ordinate viewer to see why that value may be wrong see here
note in this example the second last row x:0 appears not to be correct especially if w:124.619 is supposedly right too The PDF file reports We can also see there is some odd scalar (1.00055) that's going to upset scaled calculations and we can also see the text is not normal. It is mapped thus <01>=R <02>=E <03>=P <04>=O <01>=R <05>=T <06>=" " thus spells out so why is the odd row in that block of text at x:0 it should be like others well defined and the answer is that it is relative to all the previous widths so has no absolute value for x: but why is the next row showing a reasonable [x:70.8 ? well that's because the string is a fresh Absolute (not relative) location e.g. x:70.8 y:690.16 is where we find
So in summary PDF is not the easiest way to define blobs of ink (glyphs) and trying to measure relative offsets in poorly defined strings of text contents is prone to errors. |
I need help, I'm going crazy with this problem.
explains how to get the coordinates from a PDF document, I ran this code:
This code returns me a series of lines with their coordinates, such as:
Now I would like to consider the line with the "TEST 5"
To do this I created the following xml file (test.xml):
What is not clear to me is how to take the value of the "right" attribute, in any case by running the script below and integrating the xml file specified above I do not get any results
I cannot understand where I am wrong. Thanks for any invaluable help. Greetings
The text was updated successfully, but these errors were encountered: