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
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
Http://feifei.im/archives/93——————————————————————————————————————————————The project to use the function of doc to PDF, some Google summed up three ways (free program), so one after another to try to do a summary record, the next time to use direct check, save the forgotten ...Method 1.poi Read Doc + itext generate PDF (most convenient, worst-performing, cross-platform)Method 2.jodconverter + OpenOffice (g
http://blog.csdn.net/qq_28533563/article/details/72676425
The blogger offers 2 different ideas,
The main implementation is (Openoffice+swftools+flexpaper) and (Aspose+pdfjs preview).
The first is the implementation of the previous article, the second is the main realization of the blogger
Back up the original:
Java Implementation Online preview attachment office conver
the data into a Word template and convert it to PDF is as follows: Filemakerctrl Fmctrl = new Filemakerctrl (request); Fmctrl.setserverpage (Request.getcontextpath () + "/poserver.zz"); Worddocument doc = new worddocument (); Doc.opendataregion ("Po_company"). SetValue ("A Beijing Company Limited");//Assign data to the data area, that is, fill in the corresponding position in the template fm
the data into a Word template and convert it to PDF is as follows: New Filemakerctrl (request); Fmctrl.setserverpage (Request.getcontextpath ()+ "/poserver.zz"); New worddocument (); Doc.opendataregion ("Po_company"). SetValue ("A Beijing Company Limited"); Assigns a value to the data region, that is, the data is populated to the corresponding position in the template fmctrl.setsavefilepag
it's easier to understand.The explanations later found on the Internet are:The Java Print Service API natively supports printing, but it does not have the ability to interpret PDF files, which means that PDF files can be printed with the standard Java Print API, but the printers used must support the
Java implements the Online Preview sample code (openOffice implementation) and the sample code openoffice
Introduction
I have written an article about online preview of poi, which also says that openOffice can also be used. Here I will introduce it in detail.
There are two implementation Logics:
Use jodconverter(based on the openofficeservice documentation to
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
The previous stage has been busy graduation design, which is required to online browsing technology to achieve the document online browsing, but because of tight time, but also did not contact, so then directly jumped past. But the heart has always seemed to have a lump, always want to solve it, can not resist the desire of the heart, now idle down to spend time to study, of course, just simple to achieve t
Java simulation Implementation of Baidu document online browsingThis idea is my reference to the Internet, code is my implementation.Use the OpenOffice below Apache to convert the resource file into a PDF file, then convert the PDF
Java uses wkhtmltox to generate PDF documents or images using HTML code. wkhtmltoxpdf
Convert HTML code to PDF or image for saving as required by the project. At first, Flying Saucer was used to generate HTML code into PDF documents. The function has been developed and the c
The main function of Baidu Library is to upload the Word document, transcoding into PDF format and then show it. There are four ways to do this:method One: Use Apache Pio to read the doc file, and then convert the HTML file into a jsoup format HTML file, and finally use Itext to convert the HTML file into PDF. Method 2
Icepdf is a lightweight, open source Java language PDF class library. Icepdf can be used to browse, extract, and convert PDF documents without the support of some local PDF libraries.What can be used to do?1. Extract all the text or information from the
The mainstream WORD to PDF tool in the market is two: OpenOffice and Microsoft Office goPlug-ins, you can implement WORD to PDF functionality by deploying these two tools.1:Microsoft provides a conversion plug-in that implements the Office to PDF feature, whichSaveaspdfandxps. This plug-in is a COM component, and for languages such as C + +, C #, you can directly
Java Simulation Implementation of Baidu document online browsingThis idea is my reference to the Internet, code is my implementation.Use the OpenOffice below Apache to convert the resource file into a PDF file, then convert the PDF
Contribute 10 Classic Java tutorials, all of which are PDF full version
Subscription
Description: Found a "Sina micro-disk", large space, easy to download, there is no advertising. My technical information is free to share with you. Even if you don't have Sina Weibo, you can download it directly or browse it online, and it's fast.
"1" massive Android tutorials,
Java PDF file implementation method [attached PDFRenderer. jar download], export PDFRenderer. jar
This example describes how to implement PDF files in java. We will share this with you for your reference. The details are as follows:
In a recent website, you need to upload a pdf
(Xhr.responsetext); if (back.success = = True) {Alertbox ({content: ' PDF exported successfully!)
', lock:true,drag:false,ok:true}); }else{Alertbox ({content: ' PDF export failed!)
', lock:true,drag:false,ok:true});
}
}
}
};
}
});
Converts a picture URL data with base64 to a BLOB function Convertbase64urltoblob (urldata) {Remove the header of the
1, first to write a PDF tool class, and related tools 2. PDF of the required jar package Itext is a Java component that generates PDF reportsFreemarker is based on a template to generate text output 3. You need to use Adobe Acrobat Pro software to convert the template you
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.