用于在网络服务器上签署 PDF 并对其进行分类的应用程序

发布于 2024-11-17 21:13:13 字数 637 浏览 5 评论 0原文

我一直在研究为我兄弟的业务实施应用程序的最佳方法,并且对于如何构建我的应用程序感到非常困惑。该应用程序将在现场部署的 iPad 2 上运行,有时没有现成的网络访问(由于该地区的小区覆盖不稳定)。

以下是它需要执行的操作的摘要:

1) 加载一个 PDF 模板文件(它是签署基本有线电视服务的合同),其中包含可编辑字段,例如:

a) 姓名 b) 街道地址 c) 日期

2)能够收集绘制的签名(与任何信用卡应用程序非常相似,例如 Square 等),然后将其叠加到 PDF 上。

3) 将包含绘制的签名和其他编辑字段的 PDF 保存为新文件。然后,将其上传到后端服务器,使用个人姓名和日期/时间作为元数据来分类到特定文件夹中。

如果没有第三个方面,员工将不得不每天花费 30 分钟到 2 小时对所有应用程序提交进行分类,因此第 3 步对于开发来说是非常重要的方面,尽管大部分工作都超出了目标范围C. 尽管如此,我仍然需要发送 PDF 文件并附上尽可能多的信息.​​..

我将不胜感激任何与开发此文件的最佳行动方案相关的指导。你们知道有什么开源应用程序可供我参考吗?我搜索了苹果的开发者会员中心和谷歌都没有结果。

我如何在这里正确实现 iText ?这还是最好的选择吗?它进行数字签名,而不是使用 UI Kit 绘制的签名......

I've been researching the best way to implement an application for my brother's business, and have been pretty stumped in terms of how to structure my application. The application will be run on iPad 2's deployed in the field, sometimes without readily available network access (due to spotty cell coverage in the area).

Here is the abstract on what it needs to do:

1) Load a template PDF file (its a contract to sign up for what is basically cable service) that has editable fields, such as:

a) Name b) Street address c) Dates

2) be able to collect a drawn signature (very similar to any credit card app, such as Square, etc), which is then overlaid onto the PDF.

3) Save the PDF, containing drawn signature and other edited fields, as a new file. Then, upload it to a backend server, using the name of the individual and date/time as meta data for sorting into specific folders.

Without this third aspect, an employee would have to spend 30 minutes to 2 hours a day categorizing all of the app submissions, so step number 3 is a pretty important aspect to the development, even though most of the work is outside the realm of objective C. Still, i need to send the PDF file off with as much information attached to it as I can...

I'd appreciate any guidance related to the best course of action in developing this. Are there any open source applications that you guys know of that I can reference to? I have searched Apple's Developer member center and Google to no avail.

How could i implement iText properly here? Is that even the best option?? It does digital signatures as opposed to those drawn with UI Kit...

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

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

牵你的手,一向走下去 2024-11-24 21:13:13

听起来您应该有一个带有数据库的 Web 服务,用于存储元信息以及生成的带有签名和其他条目的 PDF 的路径。

您的应用程序本质上会生成 PDF,进行 Web 服务调用并插入信息,例如客户姓名、日期/时间、您想要的任何其他信息,然后是 PDF 文件的名称或路径。 PDF 文件随后将上传到具有唯一文件名的指定位置,以防止覆盖另一个 PDF。您可以根据数据库中记录的相应键/Id 来制定文件名,也可以使用 GUID 作为文件名,并在生成文件时连接 EPOCH 时间戳。两种方法都应保证文件名的唯一性。另一种可能的文件命名方案设备UUID+纪元时间戳,有许多选项可用。

Sounds like you should have a web service with a database for storing the meta information and the path to the generated PDF with the signature and other entries.

Your app would essentially generate the PDF, make a web service call and insert information such as the client's name, date/time, whatever else you want, and then the name or path of the PDF file. The PDF file would subsequently be uploaded to a designated location with a unique file name to prevent overwriting another PDF. You could formulate the name of the file off of the corresponding Key/Id of the record in the database or you could use a GUID as the filename and for good measure concatenate the EPOCH timestamp when the file was generated. Both approaches should guarantee filename uniqueness. Another possible file name scheme Device UUID+epoch timestamp, many options available.

爱冒险 2024-11-24 21:13:13

如果您必须实际编辑 PDF,这听起来是一个相当困难的要求。另一种方法是向用户展示他们需要查看的内容(即他们必须签名的内容),然后生成带有签名和填充字段的 PDF。既然你无论如何都想上传它,如果你从 iPad 上卸载它并使用远程服务器(正如 Chris 建议的那样)根据需要生成 PDF,那么你可能会省去很多麻烦。我曾参与帮助 iPad 应用程序开发进行财产检查 - 它使用 Docmosis 进行文档生成预览然后以提交的形式进行。希望这会有所帮助,即使已经过去了几个月。

If you have to actually edit the PDFs, it sounds like a pretty hard requirement. Another approach would be to show the user what they need to see (ie what they have to sign) and then generate the PDF with the signature and fields populated. Since you want to upload it anyway you would probably save yourself headaches if you offload this from the iPad and do it using a remote server (as Chris suggested) generating the PDF as you need it. I've been involved in helping out an iPad app development doing property inspections - it used Docmosis to do the document generation in preview and then in submitted forms. Hope that helps even though it's a few months down the track.

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