iclems / iOS-htmltopdf

MIT License
305 stars 79 forks source link

NSAttributedString to PDF? #22

Closed Sun3 closed 10 years ago

Sun3 commented 10 years ago

Is there a way to use an NSAttributedString to DPF instead of HTML string?

Thank you

iclems commented 10 years ago

I don't think there's a simple way to do that. Other libraries may be a better fit as the goal here is really to take care of HTML to PDF. Yet, I've personally already created multi-page PDF rendering, but it was almost a custom rendering code for each page. Alternatively, the principles at play here may very well apply to a UISrollView but you'd have to check that