简体   繁体   English

在实时服务器上从 html 表单保存 pdf 文件

[英]Save pdf file from html form on live server

I have a simple html file that contain input and send button.我有一个包含输入和发送按钮的简单 html 文件。 is there a way to that, when the user submits, puts the data into a PDF file and sends/saves it on live server ?有没有办法,当用户提交时,将数据放入 PDF 文件并将其发送/保存在实时服务器上? i use jsPDF library but it save pdf on client side.我使用jsPDF库,但它在客户端保存 pdf。

Common approach is rather to send to the server request from html form than to form pdf on the client side.常见的方法是从 html 表单向服务器发送请求,而不是在客户端形成 pdf。 If the server is java I would recommend iText library to create pdf.如果服务器是 java 我会推荐 iText 库来创建 pdf。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM