Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
|
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 30th, 2007, 01:45 AM
Registered User
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to aditya_a7
Default doc to pdf/image using java

i need to change a doc file to pdf/image using java without the client having to do any settings changes.i have checked out pdf online which involves user having to select the print option in order to ensure conversion ....

 
Old March 12th, 2007, 12:00 PM
pn pn is offline
Registered User
 
Join Date: Mar 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
www.davisor.com/publishor can convert doc to pdf or images without MS Office (it is 100% Java).

 
Old January 26th, 2009, 09:24 AM
ozz ozz is offline
Registered User
 
Join Date: Jan 2009
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default ...

there is also another solution that I have seen on a project:

Code:
import officetools.OfficeFile;
...
FileInputStream fis = new FileInputStream(new File("test.doc")); 
FileOutputStream fos = new FileOutputStream(new File("test.pdf"));
OfficeFile f = new OfficeFile(fis,"localhost","8100", true);
f.convert(fos,"pdf");
All possible conversions:

doc --> pdf, html, txt, rtf
xls --> pdf, html, csv
ppt --> pdf, swf
html --> pdf

More details about the library on this guy's website: dancrintea.ro/html-to-pdf/
The Following User Says Thank You to ozz For This Useful Post:
rvenezian (January 5th, 2010)
 
Old January 5th, 2010, 09:50 AM
Registered User
 
Join Date: Jan 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Thumbs up Thank you

Thanks Ozz. Really usefull for my project.

And it can do a lot of stuff - conversions:
doc --> pdf, html, txt, rtf
xls --> pdf, html, csv
ppt --> pdf, swf
as well as other operations:
- replace strings in DOC, ODT and SXW files - so use them as a kind of templating
- read/write Excel files using simplified API like: getCell(x,y) and setCell(x,y,string)
- hide Excel sheets(secondary calculations for example)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Password protect .pdf doc for subscribed reports NatashaL Reporting Services 1 December 2nd, 2008 07:54 PM
Using XSL to generate single pdf doc bhavanimachani XML 2 March 24th, 2008 11:57 PM
upload doc or pdf only sauravnimesh .NET Framework 2.0 2 September 16th, 2007 11:33 PM
doc to pdf converter crmpicco Classic ASP Basics 3 February 23rd, 2005 11:25 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.