Total members 10260 | Gratitudes |It is currently Mon May 21, 2012 4:44 pm Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 11 posts ]  Go to page 1, 2  Next
Author Topic
 Topic subject: convert word, Excel to PDF
PostPosted: Wed Oct 22, 2008 12:55 am 
Offline
Proficient
User avatar

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


TOP
 Profile Send private message  
Reply with quote  
 Topic subject: Re: convert word, Excel to PDF
PostPosted: Wed Oct 22, 2008 12:57 am 
Offline
Proficient
User avatar

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


TOP
 Profile Send private message  
Reply with quote  
 Topic subject: Re: convert word, Excel to PDF
PostPosted: Sat Nov 29, 2008 7:41 am 
Offline
Mastermind
User avatar

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 )


TOP
 Profile Send private message  
Reply with quote  
 Topic subject: Re: convert word, Excel to PDF
PostPosted: Fri Jan 02, 2009 11:48 pm 
Offline
Newbie
User avatar

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


TOP
 Profile Send private message  
Reply with quote  
 Topic subject: Re: convert word, Excel to PDF
PostPosted: Thu Jan 22, 2009 3:44 pm 
Offline
Newbie
User avatar

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


TOP
 Profile Send private message  
Reply with quote  
 Topic subject: Re: convert word, Excel to PDF
PostPosted: Thu Jan 22, 2009 7:38 pm 
Offline
Mastermind
User avatar

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 )


TOP
 Profile Send private message  
Reply with quote  
 Topic subject: Re: convert word, Excel to PDF
PostPosted: Thu Aug 06, 2009 7:17 am 
Offline
Newbie
User avatar

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


TOP
 Profile Send private message  
Reply with quote  
 Topic subject: Re: convert word, Excel to PDF
PostPosted: Fri Oct 23, 2009 4:27 am 
Offline
Newbie
User avatar

Joined: Fri Oct 23, 2009 4:16 am
Posts: 1
Has thanked: 0 time
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.


TOP
 Profile Send private message  
Reply with quote  
 Topic subject: Re: convert word, Excel to PDF
PostPosted: Sun Oct 25, 2009 5:23 pm 
Offline
Newbie
User avatar

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.


TOP
 Profile Send private message  
Reply with quote  
 Topic subject: Re: convert word, Excel to PDF
PostPosted: Mon Feb 22, 2010 8:35 pm 
Offline
Newbie
User avatar

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


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 11 posts ]  Go to page 1, 2  Next
Quick reply


  


 Similar topics
 Image Insert in Excel File Using POI
 Exporting Images in Excel in Android
 Change the word spacing in paragraph
 java code to open word doc attached in ms access.db
 How to delete/remove images from excel 2007 using POI.
 regarding to excel sheet
 Convert RAW file system to FAT file system
 convert image (vehicle registration) to text in java?
 convert integer number to octal,hexadecimal number systems
 convert from degrees to radians and vice versa

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 1 guest



Jump to:  
Previous Topic | Next Topic 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team