Horizontal lines and PDF drawing on iPhone/iPad Quartz 2D

Posted by aron on Stack Overflow See other posts from Stack Overflow or by aron
Published on 2010-04-06T00:34:59Z Indexed on 2010/04/06 0:43 UTC
Read the original article Hit count: 783

Filed under:
|
|
|
|

I'm trying to display a PDF of music using the Quartz 2D calls:

CGPDFDocumentGetPage and CGPDFPageGetDrawingTransform

The problem is that some horizontal lines in the PDF get drawn thicker than others. The biggest problem is that I notice this in Preview on the Mac and on iPhone/iPad. Even when viewing this PDF in the iPhone/iPad mail, I get the same problem.

Here is the example: http://aronnelson.com/problem/pdfproblem.jpg

Note that the PDF on the left is preview, the PDF on the right is the same file but in Google Docs. See how clean the Google Docs version is?

Is there any way to fix this problem? Would it help to draw the PDF larger and zoom down using a UIScrollView?

Any help appreciated. I can't find much info re: this problem.

Aron

© Stack Overflow or respective owner

Related posts about iphone

Related posts about quartz