Apple’s App Store contains quite a significant number of quality iPad apps for PDF viewing, editing, annotation and organization. Hence, it is logical to save webpages as PDF for reference purposes. Without using any third-party app, webpages can be easily and quickly saved as PDF from within Safari.
Follow the steps below to create a bookmarklet (a bookmark having Javascript code) that can then be used to save any webpage as PDF.
1. Bookmark the current page (or, in fact, any other page; it doesn’t matter as the bookmarked address will be edited later in step 4). Simply tap the toolbar button shown in the image below and then select Bookmark.
2. In the title field, change the title to Convert to PDF (or Save as PDF etc.). Make sure that the bookmark is being saved to Bookmarks Bar as shown in the image below.
3. Press Save
4. Next edit this saved bookmark. Tap the bookmarks button and then Select Bookmarks Bar. Tap the Edit button and select Convert to PDF bookmark.
5. In the address field of the bookmark, copy and paste the following code:
javascript:pdf_url=location.href;location.href='http://pdfmyurl.com?url='+escape(pdf_url)
Done and ready to use!
To save a webpage as pdf, simply tap Convert to PDF from Safari toobar. The webpage will be converted to PDF and Safari will then display the rendered PDF. To save the PDF, simply tap the opened PDF document once for the regular Open In menu to appear. The PDF document can now be opened/saved in your favourite PDF app.
This bookmarklet utilizes the online pdf conversion service from pdfmyurl.com. If you would like to make use of any other online services for pdf conversion, just change the javascript code in step 5.
相关推荐
iOS开发中将视频文件转换为gif图并设置gif压缩尺寸
iOS应用逆向与安全.pdf
iOS设备清单和各个iOS设备特性,从里面可以看出哪些设备支持蓝牙4.2,哪些支持蓝牙5.0,以及其他特性
iOS5开发基础教程.pdfiOS5开发基础教程.pdfiOS5开发基础教程.pdfiOS5开发基础教程.pdfiOS5开发基础教程.pdfiOS5开发基础教程.pdfiOS5开发基础教程.pdfiOS5开发基础教程.pdf
IOS中生成PDF文档代码 使用Quartz2D绘图
iOS(OC)实现通过多张图片生成一个完成的PDF文件,pdf单页宽高克自己调整
ios开发从入门到精通pdf
IOS应用源码——PDF生成类(将文本,html网页生成pdf的类).zip
IOS账号申请.pdfIOS账号申请.pdfIOS账号申请.pdfIOS账号申请.pdfIOS账号申请.pdfIOS账号申请.pdfIOS账号申请.pdfIOS账号申请.pdf
iOS设备常见传感器.pdf
IOS应用源码——PDF生成类(将文本,html网页生成pdf的类).rar
IOS应用源码——schwa-iOS-PDF-Reader(PDF阅读器).zip
iOS开发学习之iOS多线程和RunLoop.pdf
IOS开发指南(第5版)pdf下载地址,需要的朋友速度下载了
iOS测试指南PDF,iOS测试指南PDF,iOS测试指南PDF,iOS测试指南PDF,iOS测试指南PDF,iOS测试指南PDF,iOS测试指南PDF,iOS测试指南PDF,iOS测试指南PDF
神策数据:iOS全埋点技术白皮书
iOS中将CMYK的颜色格式转换成RGB的方法封装
iosapp入门到精通.pdf
12-IOS游戏开发Cocos2d.pdf
iOS-面试宝典3.0.pdf