简体   繁体   English

iPhone SDK是否支持PDF中的链接,并且可以在内部进行路由吗?

[英]Does iPhone SDK support links in PDF and can they be routed internally?

I am producing a magazine for a client for the iPad and they would to include PDF pages with internal links to videos/other pages etc. 我正在为iPad的客户制作杂志,他们将包括PDF页面以及内部链接到视频/其他页面等。

Can this be done with the standard PDF controls etc? 可以使用标准PDF控件等完成此操作吗?

You would probably need to do such a thing with a UIWebview. 您可能需要使用UIWebview做这样的事情。

Yep, sure enough. 是的,果然如此。 After searching around on Google I found this - PDF Viewer Tutorial 在Google上搜索后,我发现了-PDF查看器教程

And, note, if you are including a PDF file as a resource file you could this: 而且,请注意,如果您将PDF文件作为资源文件包括在内,则可以这样做:

NSString *pdfPath = [[NSBundle mainBundle] pathForResource:@"pdfFileName" ofType:@".pdf"];
NSURL *pdfURL = [NSURL URLWithString:pdfPath];

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

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