Click here to Skip to main content
15,501,036 members
Please Sign up or sign in to vote.
3.40/5 (2 votes)
i want to convert docx,doc files uploading to pdf files for creating thumbnails . I m using ghost script to convert a pdf file to image and it work properly.My server does not contain office package ,so when i use
Microsoft.Office.Interop.Word.dll
i got error and cant able to convert to pdf. whether MS Office is required to work with interop.word ?. Is there any other open sourse to do the same work?. Interop.word work very well in my local machine . Is there any to solve this problem .Many post says that MS word is required in Server to work with interop.word.dll. I want to know this is correct ,if so is there any open sourse to do the job.or os there any other way to create a image from doc/docx files
PLZ help
Posted
Comments
Sunasara Imdadhusen 11-Jun-14 2:21am    
I think you have to search on Google instead of asking to the community. because it will take time to get correct answer here. :(
rajin kp 12-Jun-14 8:28am     CRLF
i search a lot and could not find a proper answer :(. tks 4 replay
Prasad Khandekar 11-Jun-14 6:14am     CRLF
Hello Rajin, You may want to look at 1. Aspose.Words for .NET (http://www.aspose.com/.net/word-component.aspx) - Commercial component 2. Spire.Doc for .NET (http://www.e-iceblue.com/Introduce/word-for-net-introduce.html#.U5gn21Ddfod) - Commercial component 3. DocImage SDK for .NET (http://www.rasteredge.com/how-to/vb-net-imaging/word-convert-pdf/) - Commercial Component 4. GemBox.Document (http://www.gemboxsoftware.com/document/overview) - Commercial Component 5. DynamicPDF Converter for .NET (http://www.dynamicpdf.com/PDF-Conversion-.NET.aspx) - Commercial Component 6. MyMorph (http://docmorph.nlm.nih.gov/docmorph/files.htm) - Command Line Tool Regards,
rajin kp 12-Jun-14 8:25am    
thanks for replay . i m looking for an open source . Is there any open source
Prasad Khandekar 12-Jun-14 8:40am    
MyMorph is not open source but free. However being a command line tool may not be suitable for use in ASP.NET.

Try to use pdfsharp it has a lot of capabilities
 
Share this answer
 
You can select docx4j as the alternative if you would like to use Java instead of .NET. Here is the sample code: https://github.com/plutext/docx4j/blob/master/src/samples/docx4j/org/docx4j/samples/ConvertOutPDF.java[^]
 
Share this answer
 
Comments
rajin kp 26-Jun-14 3:17am     CRLF
@Xiao Ling i got a n exception "org.docx4j.openpackaging.exceptions.Docx4JException: Exception exporting package "

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