Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone SDK Zoom and refresh PDF with Quartz

Looking at the QuartzDemo sample application, I love the speed of the PDF rending using quartz alone (that is, without using uiwebview). However, when I'm zooming in the PDF it doesn't seem to become more clear like it does in PDF view.

Is there something that I can change to have the same effect when zooming in and out using multitouch? like manipulate the PDF transformation matrix or something?

Thanks a bunch.

--Ben

like image 710
Ben Avatar asked Nov 15 '22 15:11

Ben


1 Answers

To make it zoom, and more clear, You can use CATiledLayer. You can see the following example.

http://www.olivetoast.com/blog/hamish/simple_uiscrollview_catiledlayer_example.ot

like image 197
Kevin Avatar answered Dec 15 '22 01:12

Kevin