Total members 11893 |It is currently Tue Nov 05, 2024 12:40 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka



Go to page 1, 2  Next



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




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 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


_________________
Please recommend my post if you found it helpful


Author:
Proficient
User avatar Posts: 228
Have thanks: 0 time

ok,


_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

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



Author:
Newbie
User avatar Posts: 4
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



Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time

thank you for this addition :)


_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time

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

Thanks



Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time

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



Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time

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



Author:
Newbie
User avatar Posts: 1
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



Author:
Newbie
User avatar Posts: 19
Have thanks: 0 time
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

  Related Posts  to : convert word, Excel to PDF
 word counts in php     -  
 Word & ASP.Net ISSUE     -  
 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     -  
 VBA / Excel programmer needed     -  
 how to connect applet with excel     -  
 Data Export from java To Excel     -  










Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com