How to create marked up PDF file?


#1

Hello, please help me to solve the problem.
The problem is to create marked up text in PDF with info from plist. So I have methods which Apple recommends in Drawing and Printing Guide for iOS https://developer.apple.com/library/ios/documentation/2ddrawing/conceptual/drawingprintingios/GeneratingPDF/GeneratingPDF.html, but I’m confused how to draw my text from plist. Should I use many CTFrameRef for drawing rectangles and put text into them? Or should I use “big” NSMutableAttributedString and then put it into

CFAttributedStringRef currentText = CFAttributedStringCreate(NULL, (__bridge CFStringRef)myAttributedString, NULL); and then draw PDF with it? This is how I want my PDF text look like: https://www.dropbox.com/s/kgi7fc4uy6lbhen/Screen%20Shot%202013-11-23%20at%2012.35.39%20AM.png