将 iPad 上的表单数据导出为可打印的 PDF

发布于 2024-12-28 14:21:36 字数 514 浏览 2 评论 0 原文

我在 iPad 上“导出”为 PDF 时遇到问题。 我的目标是,获取用户已传递到应用程序中的表单的所有用户数据。该表格本身仅​​提供印刷版,但我也有 PDF 版本。问题是,在用户提供所有数据后,我想要创建用于打印的输出 PDF 必须看起来完全像打印版本。

我不知道如何有效地实现这一目标有任何“最佳实践”。 所以我的问题是:

  1. 我是否必须自己完全绘制表格并测量打印表格上的所有表格字段组件才能使用quartz2d 绘制它们?
  2. 我可以解析我已经获得的 PDF 并读出所有信息来编写一种脚本将 PDF 转换为可用的代码吗?
  3. 填写纸质版本中给出的表格以尽可能重现原始外观的最佳做法是什么?对于应用程序的用户来说,外观绝对是必不可少的。

我不必读出 pdf 中的表单字段。唯一的目标是:

  1. 用户根据应用程序提供的用户数据点击应用程序中的打印按钮,
  2. 创建的 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:

  1. 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?
  2. 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?
  3. 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:

  1. User taps on a print button in the app
  2. 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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文