从HTML创建pdf [英] Create pdf from Html
本文介绍了从HTML创建pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在不使用iPhone应用程序的目标c中获取uiwebview的屏幕截图或图像的情况下,从html创建pdf?
How can I create pdf from html without taking screenshot or image of uiwebview in objective c in iphone app?
当我创建pdf捕获UIwebView的屏幕截图时,pdf分辨率看起来不佳.放大或缩小了其文本的像素.
When I create pdf to capture screenshot of UIwebView, pdf resolution is not looking good.In zoom in or zoom-out pixel of its text distroyed.
推荐答案
您可以使用石英芯在PDF上下文中绘制UIwebview,而不是将其作为屏幕截图. 此处是代码.
Instead of taking it as a screen shot you can use quartz core to draw the UIwebview in PDF context. Here is the code.
这篇关于从HTML创建pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文