我在 iPad 上“导出”为 PDF 时遇到问题。
我的目标是,获取用户已传递到应用程序中的表单的所有用户数据。该表格本身仅提供印刷版,但我也有 PDF 版本。问题是,在用户提供所有数据后,我想要创建用于打印的输出 PDF 必须看起来完全像打印版本。
我不知道如何有效地实现这一目标有任何“最佳实践”。
所以我的问题是:
- 我是否必须自己完全绘制表格并测量打印表格上的所有表格字段组件才能使用quartz2d 绘制它们?
- 我可以解析我已经获得的 PDF 并读出所有信息来编写一种脚本将 PDF 转换为可用的代码吗?
- 填写纸质版本中给出的表格以尽可能重现原始外观的最佳做法是什么?对于应用程序的用户来说,外观绝对是必不可少的。
我不必读出 pdf 中的表单字段。唯一的目标是:
- 用户根据应用程序提供的用户数据点击应用程序中的打印按钮,
- 创建的 pdf 格式应与打印版本尽可能接近。
的任何帮助
感谢您对塞巴斯蒂安
I have an issue with "exporting" to PDF on an iPad.
My goal is, to take all the user data, a user has passed into the app for a form. The form itself is only available as a printed form, but I have the PDF as well. The thing is, after all the data has been given by the user, the output PDF I want to create for printing has to look completely like the printed version.
I have no idea of any "best practices" around how to accomplish this efficiently.
So my questions are:
- Do I have to draw the form completely by myself and measure out all form field components on the printed form to draw them maybe with quartz2d?
- Can I kind of parse the PDF I got already and read out all information to write a kind of script to transform the PDF into usable code?
- What are best practices for filling out a form given in a paper version only to recreate the look of the original as close as possible? the look would be absolutely essential for the users of the app.
I do not have to read out form fields from the pdf. The only goal would be:
- User taps on a print button in the app
- from the user data provided by the app form a pdf should be created looking as close as possible compared to the printed version.
Thanks for any help on this
Sebastian
发布评论
评论(1)
如果您在 iOS5 上执行此操作,请查看 Ray 的文章
http://www.raywenderlich.com/6581/how-to-create-a-pdf-with-quartz-2d-in-ios-5-tutorial-part-1< br>
http://www.raywenderlich.com/6818/how-to-create-a-pdf-with-quartz-2d-in-ios-5-tutorial-part-2
if you are doing this for iOS5 they check Ray's article
http://www.raywenderlich.com/6581/how-to-create-a-pdf-with-quartz-2d-in-ios-5-tutorial-part-1
http://www.raywenderlich.com/6818/how-to-create-a-pdf-with-quartz-2d-in-ios-5-tutorial-part-2