The requirement is a function of exporting PDF, the multi-party run finally realized, took a lot of detours, and doubt now this method is still curved.
There is a jspdf plug-in can be directly generated in the front-end PDF, very simple, but does not support ie.
Front:
First introduce html2canvas.js
Html2canvas (document.body, {//Screenshot object///Here configurable detailed parameters Onrendered:f
1. Introduction of the relevant jar package in the projectItextasian-1.5.2.jarItext-4.2.1.jarItextpdf-5.1.2.jarItextpdf-5.1.2-sources.jar 2. Add a button to a page that needs to convert the page to a PDF document3. Then introduce the relevant JS and jar packageHtml2canvas.js 4. Write the JS code that generates the PDF document /** Export PDF document*/f
online preview. Swffilepat is the path to the converted file.Note the problem:1, found that the error is generally OpenOffice service is not open.2, the Linux environment will exist in Chinese garbled problem, Linux is not like Windows support so many fonts, need to install many fonts, and the location of the font to link to the location of the flexpaper. In the use of pdf2swf plus parameter-s languagedir=/usr/local/xpdf-chinese-simplified/. Specific some of the parameters please Baidu.
Note: The original text to " java-pdf to Word "One: Java Pdf text to WordNonsense not to say that directlyVery simple to use:1. New PDFBox Object2, call the Pdftodoc () method, and then pass a parameter (file path)Latest jar: Link: https://pan.baidu.com/s/1snqjpSx Password: JUJG or add QQ Group: 464429490 (in group fil
Many people often encounter a problem when using Java for document operations, that is, how to obtain the content of documents such as Word, Excel, and PDF? I have studied and summarized several methods for extracting word and PDF.
1. Use Jacob
In fact, Jacob is a bridage, a middleware that connects Java and COM or Win
How do I convert Docx/odt to pdf/html with Java?Décembre 6, angelozerr laisser un commentaire go to comments
How do I convert Docx/odt to pdf/html with Java? This question comes to all of the the time of the forum like StackOverflow. So I decided to write a article about this topic to enumerate the
Origin
Not long ago, I made a small project to generate PDF reports through JSP, opening my eyes. Some enterprise information forms Html reports through the network. Although IE can directly print the content displayed in the reports, from the perspective of the interface, if the Html display result is printed directly, not very nice. If you convert it into a PDF file and then print it, the printing effect
Dynamically generate a PDF file from a Java application-general Linux technology-Linux programming and kernel information. The following is a detailed description. If the application needs to dynamically generate a PDF file, the iText library is required. The Open Source iText library enables the creation of PDF docume
Java Network Programming, java Network Programming pdf
I have been idle recently and have been taking the time to review some Java technical applications.
There is nothing to do today. Based on the UDP protocol, I wrote a very simple chat room program.
Socket is rarely used in current work, which is also a simple recor
Pdf| Program | Dynamic If your application needs to dynamically generate a PDF document, you need to iText the library. The Open source IText library enables the creation of PDF documents to be completed in an instant. This article describes IText and provides a use for it from Java? A technical application generates a
Java design mode, java design mode pdf
[This article is my own learning notes. You are welcome to repost it, but please note the Source: http://blog.csdn.net/jesson20121020]
Continue with the content in the previous section. As of now, the sorting of various types of arrays has been achieved, and the scalability is also good. We have defined the comparator i
Java Network Programming, java Network Programming pdf
We usually browse some news and watch videos through WEB browsers every day.
As we all know, this is the so-called B/S structure (Browser/Server, Browser/Server mode). It is a network structure mode after the rise of WEB, WEB browsers are the most important application software on the client.
Let's take a si
JAVA-network programming, java Network Programming pdf
Every time I mention the network, I feel like it's getting taller. But is network programming really mysterious? Next, let's review it.
Many people regard website programming as equivalent to network programming. Here, I want to correct it. network programming! = Website programming. What is network programmi
Java implements conversion from Html to PDF, and javahtmlpdf
The customer of the Project puts forward a requirement to export form data in the government affairs process to pdf or image format for electronic archival materials. Forms are implemented based on the company's e-government construction platform, and are saved in the database in html format. Therefore,
Java calls GSview to print PDF, java calls gsviewpdfPreface
In a previous article, I introduced the Java PrintService API. Although it supports printing, it does not have the ability to interpret documents such as PDF and MS Word.
In addition, the support for Post Script s
The customer on the project presents a requirement to export form data from the government process to PDF or image format for use as an electronic archival material. The form is based on the company's e-government building platform, and the database is saved in HTML format, so you plan to convert the form HTML directly into a PDF or a picture. Since the form has already written the HTML page, all I have to
Java design mode, java design mode pdf
This article is my learning notes, welcome to reprint, but please note the Source: http://blog.csdn.net/jesson20121020
Before looking at the basic principles of the design model, let's look at some basic object-oriented knowledge.1. The establishment of Object-oriented thinking:
The three principles of object-oriented obj
Java design mode, java design mode pdf
[This article is my own learning notes. You are welcome to repost it, but please note the Source: http://blog.csdn.net/jesson20121020]
The above three sections enable sorting of all types from the initial sorting of integer arrays to the final sorting of all types by defining their own comparator as needed, different
Document directory
Flying saucer and itext:
Generate a simple PDF
Use fly to generate content
Create a PDF file on the server
PDF is one of the most popular document formats so far. Generally, to create a PDF file, you need to use Adobe's API to generate it, but this is very troublesome. In order to easily gene
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.