开发者

Positioning Text in an image filled png

开发者 https://www.devze.com 2023-04-02 13:03 出处:网络
How does one position the开发者_如何学C text in a pdf usingUIGraphicsBeginPDFContextToData orUIGraphicsBeginPDFContextToFile ?

How does one position the开发者_如何学C text in a pdf using UIGraphicsBeginPDFContextToData or UIGraphicsBeginPDFContextToFile ?

I want to have an image with positioned text and stored as a pdf.

How does one do the positioning and the layout for pdfs.


Search for the drawInRect-methods in the documentation. UIImage has one and NSString has some variants of this method, that allow you to select a font, alignment etc. These draw in the created PDF graphics context. The positioning is done with the origin coordinates of the given CGRect.

0

精彩评论

暂无评论...
验证码 换一张
取 消