如何在pdf文件中添加页面卷曲效果? [英] how can i add page curl effect in pdf file?

查看:290
本文介绍了如何在pdf文件中添加页面卷曲效果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要从远程服务器获取数据并从网络服务中接收几个pdf文件

i m getting data from remote server and recieving the couple of pdf file from webservice

我正在我的UIWebView中打开pdf文件,但我希望pdf文件上的页面卷曲效果

i was opening pdf file in my UIWebView, but i want the page curl effect on my pdf file

像通常一样,我们在pageBasedApplication中起作用.

like normally we have the effect in pageBasedApplication.

我搜索了很多教程并用Google搜索,但找不到最简单的解决方案

i search many tutorials and google it but can't find the simplest solution that how

我可以在页面卷曲效果中显示我的pdf文件,并且可以放大和缩小pdf

can i show my pdf file in page curl effect and i can zoom in and out the pdf

请指导我如何在页面卷曲效果中显示pdf文件.

Please guide me how can i show my pdf file in page curl effect .

如果有人有代码,请提供给我或告诉我一些简单的教程

if anyone have the code so please provide me or tell me some simple tutorial that i can

跟随,期待您的答案.

预先感谢

推荐答案

您应该可以通过 UIPageViewController-PDF (不过,请遵循github页面上的完整说明):

You should be able to do that through UIPageViewController-PDF (follow full instructions from the github page, though):

NSString *path = [[NSBundle mainBundle] pathForResource:@"myFile" ofType:@"pdf"];
PageViewController *page = [[PageViewController alloc] initWithPDFAtPath:path];
[self presentViewController:page animated:YES completion:NULL];

另一方面,Leaves也应该开箱即用.如果您获得了示例应用程序,并替换了应该全部为PDF的文件名.

On the other hand, Leaves should also work out of the box; if you get the sample app and replace the PDF file name that should be all.

如果无法解决,请粘贴代码并详细说明什么不适合您.

If you cannot work it out, please, paste your code and explain in detail what does not work for you.

这篇关于如何在pdf文件中添加页面卷曲效果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆