You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, i'm working on a project and I need to be able to highlight parts of the text by location and not by match, so I took your project and slightly modified it so that [scanner selections] returns every single character frame instead of wherever it matches the keyword
the change was fairly simple and it works like a charm, however i did found a "bug", and it's that some CGPDFStringRef's are wrongly converted (this happens on the pdf downloaded from here)
When the scanner starts, it reads the first "A" (from "A cat in his...") and gets an error when converting it
Hi, i'm working on a project and I need to be able to highlight parts of the text by location and not by match, so I took your project and slightly modified it so that
[scanner selections]
returns every single character frame instead of wherever it matches the keywordthe change was fairly simple and it works like a charm, however i did found a "bug", and it's that some CGPDFStringRef's are wrongly converted (this happens on the pdf downloaded from here)
When the scanner starts, it reads the first "A" (from "A cat in his...") and gets an error when converting it
unicodeValue
is 0, so when it creates the return value, it's an incorrect valuethis happens with about 40% of the characters found in that PDF
i tried using
CGPDFStringCopyTextString
like this:and all the characters are converted correctly
is there a reason I should be using your method? or should I (and possibly you too) use the
CGPDFStringCopyTextString
function?if i can get in contact with you i could provide you with further detail / screenshots
anyways, thanks for the great work you've done :)
The text was updated successfully, but these errors were encountered: