tags:

views:

104

answers:

1

On the iPad, I need to render a large pdf (more than 1gb). For this I use Quartz.

Now everything works fine except the quality of included pdf in my pdf.

An image will explain everything.

This is the pdf document: http://dl.dropbox.com/u/5809971/PDFRender/book.pdf

This is the ipad rendering (simulator and device are identical): http://dl.dropbox.com/u/5809971/PDFRender/ipad.png

And this is the preview rendering (what I want): http://dl.dropbox.com/u/5809971/PDFRender/preview.png

I'm using CGContextDrawPDFPage to render the pdf into the UIView context (in drawRect).

A: 

Found it.

CGContextSetInterpolationQuality(ctx, kCGInterpolationHigh);

Before drawing the pdf page and everything is fine.

Nicolas Goy