Christian Vigh - 2017-04-05 10:37:15 -
In reply to message 1 from Benjamin Moises Villalobos Abreu
Hi Benjamin,
There were two bugs in my class :
- In PDF files, text can be specified as is, or can use an octal notation (among other forms). In your case, for example, the string "5,185,514" on the first page was preceded by a space in octal notation ; this gave : "\0405,185,514", \040" being the code for the ascii space (decimal 32). Unfortunately, the digit "5" was included in the decoding of the escape sequence. This is why you saw a control character followed by the string ",185,514" (and lots of other similar things in the rest of the document). The string you searched in the example you sent to me was not found because it felt in this case : the first digit of the number you searched was mistakenly included in the octal escape sequence.
- There was a bug in the document_strxpos() functions : it returned a zero-based offset, whereas the page contents found in the Pages property are indexed by their page number (starting from 1)
Version 1.5.2 should solve these issues.
With kind regards,
Christian.