ios - Creating a 300 dpi PDF context -


I am trying to create a multipage PDF document that is intended to be printed with an OSX app.

The hard part is searching for a decent tutorial to understand the whole process

This is a point.

Every time a PDF reference is created, I see this line

  UIGraphicsBeginPDFPageWithInfo (CGRectMake (0, 0, 612, 792), zero);   

If I correctly understood, a PostScript point is 1/7 inches then

  612 x 792 points = 8.5 x 11 inches = 215.9 mm x 279.4 = US letter letter size.   

But I see a problem here, this page will be printed on 72 dpi, right? Very low resolution How can I create something like 300 dpi ?, just increase the number of proportional points, or in that case create a context of 2550x3300 points?

Is this the right way to do this?

Another issue is: I am making a reference to the whole page, how do I know if I can really print? All fields printable in a PDF document

Page 72 is not printed on dpi, is that only? coordinate system. PDF files (usually) are vector-based, and even if there are no images of arbitrary resolution, then 'P' in PDF is portable, so you usually do not need to worry about the resolution.

There is a printable area of ​​PDF which is contained in MediaBox, or BleedBox as limited by CropBox, again in general you do not have to worry about these.

Comments

Popular posts from this blog

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -

jasper reports - How to center align barcode using jasperreports and barcode4j -

django - CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False -