Creating PDF Documents

Does anyone have any suggestions on how to create PDF documents? Is core graphics the best way?

Thank you.

@jport1130 Thanks very much for your question! Here is a tutorial from Apple (albeit it’s a bit dated and in Objective-C) on how to generate pdf’s.

I hope this helps!

All the best.

@jport1130,
short answer, the apple code uses core graphics. If you have used core graphics to draw in memory images, then the only difference here is that instead of using a UIGraphicsBeginImageContext, you use a UIGraphicsBeginPDFContext and draw exactly as you would in an image and when done, finish with the UIGraphicsEndPDFContext instead of UIGraphicsEndImageContext.

cheers,

Jayant

This topic was automatically closed after 166 days. New replies are no longer allowed.