sgr-ksmt / PDFGenerator

A simple generator of PDF written in Swift.
MIT License
757 stars 110 forks source link

Adding a UILabel to a view is blurry #69

Open anthonycastelli opened 7 years ago

anthonycastelli commented 7 years ago

I've tried everything I can think of, but everything I do when I add a UILabel to the pdf, the text is extremely blurry. Is there something needed to keep it crisp, or is there a way to just add an NSAttributedString to a PDF page?

AmbroseSilveira commented 7 years ago

Try to define the size of the page(uiview) based on the dpi.. and then generate the pdf. It looks blurry may be because you are viewing it on imac/macbook. Zoom it and the text is crisp clear. Else open the created pdf on device.