How can I create higher resolution PDFs on iOS?

I am creating a PDF file that will be used as a mail application, inside my application. Which works well, but I have no idea how to create anything other than a 72dpi PDF.

I start like this

CGRect mediaBox = CGRectMake(0, 0, 595, 842); CGContextRef context = CGPDFContextCreateWithURL([NSURL fileURLWithPath:path], &mediaBox, NULL); 

Make all my quartz drawings inside the context, everything works fine, but by increasing the mediabox, I can only resize the page.
I'm sure I'm missing something obvious, but I can't find where to specify the dpi?

+6
source share
1 answer

Xcode did not replace the image files on my device, so the old (low-frequency) files still started to be used, completely removed the application from the device and made a clean build, fixed my problems.

0
source

Source: https://habr.com/ru/post/890301/


All Articles