I need to detect the text/glyph drawn on View through quartz 2d programming on touch event. Is it possible to get the text/glyph from touch points on View.
Thanks in Advance.
I need to detect the text/glyph drawn on View through quartz 2d programming on touch event. Is it possible to get the text/glyph from touch points on View.
Thanks in Advance.
I have researched according to your needs. What you need is a combination of idea that how to get pdf coordinates and then your character out of it.
Use CGPDFDocument
, CGPDFScanner
and CGPDFPage
to scan the contents of the pdf into NSString
. Then use NSString
functions to find the text on that page. If multiple pages are there then you will want to store page numbers also.
This link will give you idea about how to convert pdf coordinates to iOS coordinates to get your touch point. Check out first two answers in it. Converting pdf to iOS coordinates