Java – how to merge a single selected PDF file into one PDF when downloading?
•
Java
How do I merge a single selected PDF file into one PDF when downloading?
I want to achieve the following goals: http://annualreport2010.landsecurities.com/create-your-own-report.aspx
Do I need an ASP website, or can I use a static HTML website to do similar things?
Solution
Static HTML does not do this
You need something on the server side There are feasible options for other answers. I just want to mention pdftk, and then you can call it from the server However, be sure to escape all file names, etc., because you must use system calls
Pdftk is very simple Their first example of documentation shows how to combine several PDFs (named 1. PDF, 2. PDF and 3. PDF) into one named 123 PDF in PDF:
pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf
For PHP, if you want to investigate it, there is even pdftk PHP
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码