-- Matt
On Nov 5, 2009, at Nov 5;11:05 AM, Matt Freedman wrote:
> Per my recent message about html to pdf conversion, I am looking
> into just creating the pdf files manually, by drawing in the text
> and images myself, and skipping the html.
>
> To write text into a pdf, you create a pdf context with
> CGPDFContextCreateWithURL, and then use CGContextShowTextAtPoint to
> write C strings into that context. For paragraphs of text this is
> obviously going to get old really fast without word wrapping support.
>
> The higher level cocoa UI components obviously support word wrapping
> on NSStrings. But what is the best approach to writing word wrapped
> C strings into a quartz CGContext?
>
> -- Matt
>