Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
is it possible to convert Word-Documents (*.doc, *.xls, *.vsd...) to PDF or TIF, JPEG... without Office?

thx,
Benny
Posted
Comments
[no name] 17-Oct-12 11:31am    
try openoffice or itextsharp
Sergey Alexandrovich Kryukov 17-Oct-12 15:19pm    
Well, maybe both: openoffice to read data, tTextSharp to format and write. iTextSharp along does not "know" proprietary Office formats.
--SA
Sergey Alexandrovich Kryukov 17-Oct-12 15:26pm    
Anyway, I provided a bunch of helpful referenced, please see.
--SA
[no name] 18-Oct-12 2:04am    
Hello, Wes Aday,itextsharp is a good free source for PDF task, but can it convert doc to image?

1 solution

I understand that you don't want to use any proprietary software like Microsoft Office and why. The only open-source code I know is OpenOffice itself (where .odt came from) and its fork LibreOffice. Please see:
http://en.wikipedia.org/wiki/OpenOffice.org[^],
http://www.openoffice.org/[^],
http://en.wikipedia.org/wiki/LibreOffice[^],
http://www.libreoffice.org/[^].

You can download the source and find the code working with nearly all versions of Office documents. And, of course, .ODT and all other OpenOffice/LibreOffice documents.

If you would like to support only the newer Office Open XML, the format itself is available and is standardized under ECMA-376 and ISO/IEC 29500:2008:
http://en.wikipedia.org/wiki/Office_Open_XML[^],
http://en.wikipedia.org/wiki/Office_Open_XML_software[^].

Please see the comparison chart on Office Open XML software:
http://en.wikipedia.org/wiki/Comparison_of_Office_Open_XML_software[^].

As some source code is available and open, you can use it.

And, finally, when you manage to get data from Office documents, you can map it onto PDF structure. To produce PDF itself, you can use the .NET port of iText; this port is called iTextSharp:
http://en.wikipedia.org/wiki/IText[^],
http://itextpdf.com/[^],
http://sourceforge.net/projects/itextsharp/[^].

I provided links to iText, too, because nearly all documentation you need to work with iTextSharp is there, provided as Java documentation.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900