如何创建一个桌面应用程序来模仿我已经用 PHP 编写的内容?
只是寻找正确方向的一点..
所以我在我们网站的后端开发了一个小应用程序,允许我们办公室的女孩通过电子邮件向我们的潜在客户发送带有信头的 PDF 报价。
我使用简单的 HTML 表单
、FPDF 类
和 php 函数 mail()
完成了此操作
,它很有效,但我我想更进一步,创建一个桌面应用程序,这样女孩们就不必通过网站的登录部分来访问此功能。
我在想Java?
对于只有 Web 开发经验的人来说,这会是一项艰巨的任务吗?
这只是最小/最简单的应用程序。
感谢您的任何意见:)
just looking for a point in the correct direction..
So I've developed a little application on the back end of our websites that allows the girls in our office to send out letter-headed PDF quotations to our potential clients via email.
I've done this using a simple HTML form
, the FPDF class
, and the php function mail()
It works a treat, but I'd like to take it a step further and create a desktop application so that the girls don't have to go through the login section of the website to access this functionality.
I'm thinking Java?
Would this be a difficult mission someone who has only had web-developing experience?
It would only be the smallest/simplest of applications.
Thanks for any input :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这只是一个建议。
既然您已经开发了可以在网络上运行的东西,请重用它。
token_id
,稍后可用于下载转换后的文件。(a) 从计算机浏览文件,
(b) 使用网络服务上传 URL 上传文件并接收适当的响应,例如
upload_token_id 和状态上传/转换/失败,
(c) Java 应用程序应该能够使用此令牌下载转换后的文件。
您可能需要查看 此获取与上传文件相关的帮助
This is just an advice.
Since you have already developed something that works over web, reuse it.
token_id
that can be used later to download the converted files.(a) browse file from computer,
(b) Use web-service upload URL to upload the file and rec/eive appropriate response like
upload_token_id
and status uploaded/converted/failed,(c) the Java app, should be able to use this token to download the converted file.
You may need to look into this for help related to uploading the file
不,将您的应用程序模仿为 Java 桌面应用程序(可以是
Java Swing APP
)并不困难。你只需要一些挥杆
练习。正如您在php
中所做的那样,创建 PDF 并邮寄它
。通过使用Java Mail API
发送电子邮件和使用IText
生成 pdf,可以在 java swing 中轻松完成此任务。作为参考,您可以阅读以下链接:
希望这有帮助。
No it wouldn't be difficult job to mimic your app to java desktop app that can be
Java Swing APP
. you just need some practice onswing
. As you are doing inphp
that iscreating PDF and mailing it
. This task can easily be done in java swing by usingJava Mail API
for emailing andIText
for pdf generation.For reference you can read following links:
Hope this helps.