Mac OS X 10.7.5 causes a sequential (and undocumented) change in behavior in the Quartz-PDFKit method
characterBoundsAtIndex
PDFPage class .
When you receive your text pdfPageas NSStringwith
text = [pdfPage string];
and get the unicode character in position idxusing
unichr = [text characterAtIndex: idx]; // (1)
You expect to get your borders (position and size) on the page with
bounds = [pdfPage characterBoundsAtIndex: idx]; // (2)
Using the same index value.
WRONG
After 10.7.5, there is no longer 1-1 correspondence with the index value (1) and the index value (2) , and worse, it is not provided for the transfer from the first to the last.
(, , , , ), , " 10.7. 5" assumpiont, .
PDFKit OS X 10.7 , :
OS X 10.7 PDFKit ?
?