简体   繁体   English

如何在UIWebView CGPDFDocumentRef中更改pdf文档的字体属性(大小,颜色,样式)

[英]how to change the font properties(size, color,style) of the pdf document in UIWebView CGPDFDocumentRef

我在目标c中为iPhone设计了一个电子书阅读器应用程序,我尝试了两种使用UIWebView和CGPDFDocumentRef加载pdf文档的方法,但是我没有在两种方法中更改pdf文档的字体属性(大小,颜色,样式)的方法(UIWebView和CGPDFDocumentRef)中的任何一种都可以帮助我,如何提前更改UIWebView以及CGPDFDocumentRef中的字体属性

You can't. 你不能 This function only give you a way to open it and others aspects. 此功能仅给您一种打开它和其他方面的方法。 But, PDF is unable to edit in any operate system. 但是,PDF无法在任何操作系统中进行编辑。 So I don't think you can do this things. 因此,我认为您无法做到这一点。

What you can do is create a new PDF. 您可以做的是创建一个新的PDF。 And it isn't very easy... You can start with this: Writing text to a PDF via from an NSString 这不是一件容易的事...您可以从以下内容开始: 通过NSString将文本写入PDF

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM