convert word document to pdf

convert word document to pdf

Hi,

Could you please help me write a java code that converts the word docuemnt into PDF? I have to save the generated PDFs also.

I got a code like the below, and i am unable to download the office tools. Can i write a code without downloading the office tools software?

import officetools.OfficeFile; fis = new FileInputStream(new File("test.doc")); FileOutputStream fos = new FileOutputStream(new File("test.pdf")); OfficeFile f = new OfficeFile(fis,"localhost","8100", false); f.replaceAll("aaa","bbb"); f.convert(fos,"pdf");

I would also want to know, what does "OfficeFile" in the code mean? Does it an inbuilt class file or should i create such a class file?

I am a java beginner. Please help out in this.

Thanks in advance.

Regards, Sindhu

View Answers

Ads









Related Tutorials/Questions & Answers:
convert word document to pdf
convert word document to pdf  Hi, Could you please help me write a java code that converts the word docuemnt into PDF? I have to save the generated..."); f.convert(fos,"pdf"); I would also want to know, what does "OfficeFile" in the code
Java code to convert pdf file to word file
Java code to convert pdf file to word file  How to convert pdf file to word file using Java
Advertisements
PDF document
PDF document  hello, How to Open a PDF document on iPhone??   You can use these There's a whole toolkit built in which lets you render PDF pages to a UIView. Check out: CGPDFDocumentCreateWithURL
open word document
open word document  how to open a word document ??   Please go through the following link: Java Read word document file The above link.... It will be helpful for you to read data from word document
open word document
open word document  how to open a word document ??   Please go through the following link: Java Read word document file The above link.... It will be helpful for you to read data from word document
open word document
open word document  how to open a word document ??   Please go through the following link: Java Read word document file The above link.... It will be helpful for you to read data from word document
Write String in Word document
Write String in Word document  How to read and write strings in word document
Scanning a word in a TEXT document......
Scanning a word in a TEXT document......  Hi Genius persons... I'm having many resumes in my FOLDER called HARISH in D:(colon) i want to scan... by searching the JAVA and .net words present in the files..if JAVA word is present means
Scanning a word in a TEXT document......
Scanning a word in a TEXT document......  Hi Genius persons... I'm having many resumes in my FOLDER called HARISH in D:(colon) i want to scan... by searching the JAVA and .net words present in the files..if JAVA word is present means
convert excel into pdf
convert excel into pdf  How to convert excel into pdf files
store form data into word document
store form data into word document  i want form page data, ex username phone number.. to store it in a word document file
Convert Text File to PDF file
Convert Text File to PDF file  Here is the way how to covert your Text file to PDF File, public class TextFileToPDF { private static void...); } Document document = new Document(); PdfWriter.getInstance
POI Word document (Letter Template)
POI Word document (Letter Template)  Dear Team, i need code for generating word document(letter format). i am unable to get the code for formats, font settings, letter type settings. please help me for the same. Thanks
ModuleNotFoundError: No module named 'translate-pdf-word'
ModuleNotFoundError: No module named 'translate-pdf-word'  Hi, My... named 'translate-pdf-word' How to remove the ModuleNotFoundError: No module named 'translate-pdf-word' error? Thanks   Hi, In your
How to merge two word document using java
How to merge two word document using java   how to merge two word document using java
How to merge two word document using java
How to merge two word document using java   how to merge two word document using java
Convert Text File to PDF file
Convert Text File to PDF file  import java.io.BufferedReader; import...()) != null) { sb.append(inLine); } Document document = new Document(); PdfWriter.getInstance(document, new
java code to open and display MS-word document
java code to open and display MS-word document  java code to open and display MS-word document
CONVERT JTable DATA TO PDF FILE
CONVERT JTable DATA TO PDF FILE  HOW TO CONVERT JTable DATA TO .PDF... the jtable data from the jframe and stored the data into the pdf file in the form...); button=new JButton("Save to pdf"); button.addActionListener(new ActionListener
convert an pdf file to html in Java
convert an pdf file to html in Java  Hi all, How to convert an pdf file to html in Java? Currently all my data is generated into a report in pdf and i want to be able to generate it to html page as well. How to go about
Version of com.clusterra>pmbok-document-pdf dependency
List of Version of com.clusterra>pmbok-document-pdf dependency
Convert BLOB to PDF and save it to a location
Convert BLOB to PDF and save it to a location  I have a requirement to convert blob(stored in a DB table) back to .pdf in the UI(for the users... it has to convert each blob to a pdf and zip it, which the user should be able
Convert Text To Word
Convert Text To Word       In this example, You will learn how to convert text to word file. Here, we are going to discuss about the conversion of text to word file.  Core
How to convert a swing form to PDF
How to convert a swing form to PDF  Sir, I want to know about how convert a swing form containing textbox,JTable,JPanel,JLabel, Seperator etc swing menus to a PDF file using java code
Version of com.clusterra>clusterra-pmbok-document-pdf dependency
List of Version of com.clusterra>clusterra-pmbok-document-pdf dependency
convert date month and year into word using java
convert date month and year into word using java  convert the date...;continue.... public void pass(int number) { int word, q...; if (word == 0) { q = number / 10
convert date month and year into word using java
convert date month and year into word using java  convert the date...;continue.... public void pass(int number) { int word, q...; if (word == 0) { q = number / 10
convert date month and year into word using java
convert date month and year into word using java  convert the date, month,year into word like 12-3-2012 into twelve march two thousands twelve pls send the code write in java.   Visit Here
convert date month and year into word using java
convert date month and year into word using java  convert the date, month,year into word like 12-3-2012 into twelve march two thousands twelve pls send the code write in java.   Visit Here
convert date month and year into word using java
convert date month and year into word using java  convert the date, month,year into word like 12-3-2012 into twelve march two thousands twelve pls send the code write in java.   Visit Here
Convert Text To PDF
Convert Text To PDF      ... into the add() method of the document class to generate a pdf file. Download iText API... to generate a pdf file. 1.Create an instance of the Document class
convert date month and year into word using java
convert date month and year  convert the date, month,year into word like 12-3-2012 into twelve march two thousands twelve pls send the code write in java.   Visit Here
convert date month and year into word using java
Convert Date Month format  convert the date, month,year into word like 12-3-2012 into twelve march two thousands twelve pls send the code write in java.   Visit Here
convert date month and year into word using java
Convert Date Format  convert the date, month,year into word like 12-3-2012 into twelve march two thousands twelve pls send the code write in java.   Visit Here
convert date month and year into word using java
convert date month and year Java  convert the date, month,year into word like 12-3-2012 into twelve march two thousands twelve pls send the code write in java.   Visit Here
convert date month and year into word using java
Match Date format  convert the date, month,year into word like 12-3-2012 into twelve march two thousands twelve pls send the code write in java.   Visit Here
convert date month and year into word using java
Date Format in Jave  convert the date, month,year into word like 12-3-2012 into twelve march two thousands twelve pls send the code write in java.   Visit Here
convert date month and year into word using java
Basic format for Date and Month  convert the date, month,year into word like 12-3-2012 into twelve march two thousands twelve pls send the code write in java.   Visit Here
convert date month and year into word using java
Java Date Month Format  convert the date, month,year into word like 12-3-2012 into twelve march two thousands twelve pls send the code write in java.   Visit Here
How to Convert PDF into rtf File Java
How to Convert PDF into rtf File Java  Hi, How could in covert the PDF file to rtf file in Java Programming. Please suggest any online example... the online example of Java Convert PDF into rtf File. Thanks
upload and retrieve a word document - JSP-Servlet
upload and retrieve a word document  Hi, I have a problem with uploading a word document to My sql database to a BLOB data type variable. And also unable to retrieve the word document from database. I am writing the code
Maven Dependency pmbok-document-pdf >> 1.0.1.RELEASE
You should include the dependency code given in this page to add Maven Dependency of com.clusterra >> pmbok-document-pdf version1.0.1.RELEASE in your project
Maven Dependency pmbok-document-pdf >> 1.0.2.RELEASE
You should include the dependency code given in this page to add Maven Dependency of com.clusterra >> pmbok-document-pdf version1.0.2.RELEASE in your project
Maven Dependency pmbok-document-pdf >> 1.0.4.RELEASE
You should include the dependency code given in this page to add Maven Dependency of com.clusterra >> pmbok-document-pdf version1.0.4.RELEASE in your project
Maven Dependency pmbok-document-pdf >> 1.0.5.RELEASE
You should include the dependency code given in this page to add Maven Dependency of com.clusterra >> pmbok-document-pdf version1.0.5.RELEASE in your project
How to hide text in Word Document using Apache POI library
How to hide text in Word Document using Apache POI library  Is it possible to hide text in MS Word Document using Apache POI library? If yes, please let me know how. I am able to create and read the document using POI library
Java convert jtable data to pdf file
Java convert jtable data to pdf file In this tutorial, you will learn how to convert jtable data to pdf file. Here is an example where we have created... have fetched the data from the jtable and save the data to pdf file. Example
Edit word document Headers and Footers using POI Library in java?
Edit word document Headers and Footers using POI Library in java?  Hi All, I need code to modify the Header and Footer contents of a ms-word template using POI or JACOB libraries. Could any one help me? Thanks Advance
Maven Dependency clusterra-pmbok-document-pdf >> 1.0.10.RELEASE
You should include the dependency code given in this page to add Maven Dependency of com.clusterra >> clusterra-pmbok-document-pdf version1.0.10.RELEASE in your project
Maven Dependency clusterra-pmbok-document-pdf >> 1.0.11.RELEASE
You should include the dependency code given in this page to add Maven Dependency of com.clusterra >> clusterra-pmbok-document-pdf version1.0.11.RELEASE in your project

Ads