Switch to full style
:rolf:General and off topic threads containing intellectual discussion
Post a reply

convert word, Excel to PDF

Wed Oct 22, 2008 12:55 am

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. ?



Re: convert word, Excel to PDF

Wed Oct 22, 2008 12:57 am

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

Re: convert word, Excel to PDF

Sat Nov 29, 2008 7:41 am

ok,

Re: convert word, Excel to PDF

Fri Jan 02, 2009 11:48 pm

if u r using Microsoft office their is plug-in doing this you can found it on the website of microsoft

Re: convert word, Excel to PDF

Thu Jan 22, 2009 3:44 pm

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

Re: convert word, Excel to PDF

Thu Jan 22, 2009 7:38 pm

thank you for this addition :)

Re: convert word, Excel to PDF

Thu Aug 06, 2009 7:17 am

Where can i get this OfficeTool NameSpace.Can u give me the code?

Thanks

Re: convert word, Excel to PDF

Fri Oct 23, 2009 4:27 am

:duel: 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.

Re: convert word, Excel to PDF

Sun Oct 25, 2009 5:23 pm

I also want some of my files to be converted.
Hoping for the miracle.

Re: convert word, Excel to PDF

Mon Feb 22, 2010 8:35 pm

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

Post a reply
  Related Posts  to : convert word, Excel to PDF
 Word & ASP.Net ISSUE     -  
 word counts in php     -  
 C# Word Styling Automation     -  
 Simple Word Program     -  
 Change the word spacing in paragraph     -  
 regarding to excel sheet     -  
 java code to open word doc attached in ms access.db     -  
 how to connect applet with excel     -  
 VBA / Excel programmer needed     -  
 Data Export from java To Excel     -