iOS CGPdf highlight text using CGrect

2019-09-14 20:08发布

问题:

I am trying to highlight text using rect but the code below:

CGRect originalSize = CGPDFPageGetBoxRect(pagePDFRef, kCGPDFMediaBox);

return me rect less then I expected or maybe less then I see.

Is there any already made method that highlight text using scanner and CGRect