Joined: Sun Oct 19, 2008 3:47 pm Posts: 281 Has thanked: 0 time Have thanks: 1 time
I want to know how to convert a word or an excel document into PDF, but not having any idea how to achieve this. Kindly give some suggestions. ?
AnswerBot
Topic subject: Re: convert word, Excel to PDF
Posted: Wed Oct 22, 2008 12:57 am
Joined: Sun Oct 19, 2008 3:53 pm Posts: 229 Has thanked: 0 time Have thanks: 0 time
If you need a programmatic way of doing this, use Jacob to read Excel and Word documents using OLE and use iText to generate the pdf documents. Both are open source Java libraries.
Otherwise use any pdf printer driver on the market, just select the "Print to pdf" driver once installed and print your document into a pdf file
msi_333
Topic subject: Re: convert word, Excel to PDF
Posted: Sat Nov 29, 2008 7:41 am
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2277 Location: Earth Has thanked: 39 time Have thanks: 61 time
ok,
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )
u7e
Topic subject: Re: convert word, Excel to PDF
Posted: Fri Jan 02, 2009 11:48 pm
Joined: Sun Dec 28, 2008 9:01 pm Posts: 4 Has thanked: 0 time Have thanks: 0 time
if u r using Microsoft office their is plug-in doing this you can found it on the website of microsoft
bertt
Topic subject: Re: convert word, Excel to PDF
Posted: Thu Jan 22, 2009 3:44 pm
Joined: Thu Jan 22, 2009 3:40 pm Posts: 1 Has thanked: 0 time Have thanks: 0 time
Another solution:
import officetools.OfficeFile; ... FileInputStream fis = new FileInputStream(new File("test.doc")); // works with xls also FileOutputStream fos = new FileOutputStream(new File("test.pdf")); OfficeFile f = new OfficeFile(fis,"localhost","8100", true); f.convert(fos,"pdf");
All possible convertions: html --> pdf doc --> pdf, html, txt, rtf xls --> pdf, html, csv ppt --> pdf, swf
msi_333
Topic subject: Re: convert word, Excel to PDF
Posted: Thu Jan 22, 2009 7:38 pm
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2277 Location: Earth Has thanked: 39 time Have thanks: 61 time
thank you for this addition
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )
chaitanyavswi
Topic subject: Re: convert word, Excel to PDF
Posted: Thu Aug 06, 2009 7:17 am
Joined: Thu Aug 06, 2009 7:15 am Posts: 1 Has thanked: 0 time Have thanks: 0 time
Where can i get this OfficeTool NameSpace.Can u give me the code?
Thanks
amox
Topic subject: Re: convert word, Excel to PDF
Posted: Fri Oct 23, 2009 4:27 am
Joined: Fri Oct 23, 2009 4:16 am Posts: 1 Has thanked: 0 time Have thanks: 0 time
Well,another method is borrow a software that is easy to use.Such as Nemo PDF.Nemo PDF Converter 4.0 converts PDF to Word/RTF and Word/Excel to PDF for uses of different situations with speed and 100 accuracy. It keeps intact of the original files and supports batch conversion. You can either batch convert files from the converter or from the button integrated in your documents with ease. Moreover, its user-friendly interfaces will make you a veteran from a new user in minutes.Hope this helps.
sandworm
Topic subject: Re: convert word, Excel to PDF
Posted: Sun Oct 25, 2009 5:23 pm
Joined: Wed Oct 21, 2009 4:22 pm Posts: 1 Has thanked: 0 time Have thanks: 0 time
I also want some of my files to be converted. Hoping for the miracle.
dexterb007
Topic subject: Re: convert word, Excel to PDF
Posted: Mon Feb 22, 2010 8:35 pm
Joined: Mon Feb 22, 2010 12:10 pm Posts: 21 Location: Let me check my GPS! Has thanked: 1 time Have thanks: 0 time
There is a website called freepdfconvert.com..converts word and excel both to pdf but online...they mail you the converted file.
If you need a software on your machine then there is free download available at, hellopdf.com/download.php