Java calls openoffice to convert office documents to PDF. openofficepdf
Leading:
During the release process, we often use java to convert office documents to PDF files. Generally, Microsoft openoffice + jodconverter is used to
Enable the ability to view PDF documents Online (This code applies to fixed and small amount of PDF browsing in the project service, such as registration terms for online browsing, etc.): //Set the response content type to PDF typeResponse.setcontenttype ("Application
Step one: (the tools involved)Visit: http://www.zhuozhengsoft.com/dowm/, download pageoffice for Java from the official website.Step Two: (Configuration Engineering)1. Unpack the Pageoffice Development Kit, open the "Integrated Files" directory, and copy the Pageoffice4.4.0.2.jar from the "web-inf\lib" directory to your project's "Web-inf\lib" directory2. Refer to the Web. xml file in the "Integrated Files" folder to configure the website. xml file in
Step one: (the tools involved)Visit: http://www.zhuozhengsoft.com/dowm/, download pageoffice for Java from the official website.Step Two: (Configuration Engineering)1. Unpack the Pageoffice Development Kit, open the "Integrated Files" directory, and copy the Pageoffice4.4.0.2.jar from the "web-inf\lib" directory to your project's "Web-inf\lib" directory2. Refer to the Web. xml file in the "Integrated Files" folder to configure the website. xml file in
stability of the converted documents.
Each Java application has a Runtime class instance, enabling the application to be connected to the running environment. Applications cannot create their own Runtime instances. You can use the getRuntime method of the Runtime class to obtain the current Runtime. After obtaining the Runtime class instance, you can call the exec method of the class to create a new process to execute the specified string command. Th
Directory
Baidu Library solution (I)-Overall Thinking
Baidu Library solution (2) -- use Jacob to call MS Office to convert the document to PDF
Baidu Library solution (3) -- use JCom to call MS Office or Acrobat API to convert the document to PDF
Similar to Baidu Library solution (4) -- use JODConverter to call OpenOffi
Directory
Baidu Library solution (I)-Overall Thinking
Baidu Library solution (2) -- use Jacob to call MS Office to convert the document to PDF
Baidu Library solution (3) -- use JCom to call MS Office or Acrobat API to convert the document to PDF
Similar to Baidu Library solution (4) -- use JODConverter to call OpenOffi
From: http://dungenessbin.diandian.com/post/2012-04-20/19373103
Last year, an OA system was developed, which requires one-click Document Upload and online preview, similar to the functions of Baidu Library.
System Environment: centos5.5Tools used: OpenOffice 3, ipv2swf tool, jodconverter, and flexpaper
I have found some information on the Internet. Someone has already implemented this function, but I wrote something in
" conversion mode.Step 2, click the "Add Files" button to add multiple Word files that need to be converted to the software, you can also drag files directly into the software for file additions.Step 3, the file is added to complete, here users need to set the location of the conversion file, you can save in the original folder, you can also customize the folder.Step 4, click the "Start Conversion" button to begin a one-click conversion of Word files added to the software.Step 5, wait a moment a
, he is able to embed PDF files quickly and easily, pdfobject use JavaScript to produce the same standards-compliant markup, and then insert the selection into your HTML elements. You can fill the entire browser window, or convert the PDF format to one or other block-level elements. Pdf.jsUnlike the closed source PDF B
folder.Converting formats via online convertersOnline PDF Conversion method is relatively simple.The first step: Select the file you want to convert format, select the converted format "PDF to Word";The second step: Click the "Select File" button, in the pop-up window upload PDF
Requirement: Open PDF in mobile browser or other browserPreparation: Front-end plugin: Find Pdf.js website address: http://mozilla.github.io/pdf.js/Download demo in official websiteNote: The PDF demo must be open in a Web project, so you must deploy the Web projectOfficial API, as followsPicture The file directory structure of the box, please do not change, directly in the download demo copy outDemo Address
conversion is successful (if the conversion is successful, can be opened directly with the PDF reading software ).
Now, my Word documents have been successfully converted to PDF documents.
If you need a PDF file, try it now. It takes up to 1 minute to convert the PDF file.
-- PDF file format conversion experienceThere is no such thing as absolute. First, I tried several software for decryption. It is best to use passware_acrobat key, followed by adult PDF password recovery v2.2.0 and PDF password remover v2.2, as for the Image Scanning text conversion, Chinese words, more trouble, the image is not compressed Tif format, with Tsingh
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.