Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Using Pure .NET Library How To Convert DocX, PDF and Images
No software printer. No ActiveX. No Office Automation…nothing is required .
only this code needs to be used. I wanted to know the prerequisites of using the code below:

DocumentManager1.ConvertDocument ("sample.docx", "converted.pdf")
Posted
Updated 2-Oct-13 6:31am
v2
Comments
Sergey Alexandrovich Kryukov 2-Oct-13 11:49am    
Not a question. By "convert images", do you mean OCR.
Convert from what to what?
—SA

1 solution

Most of the tools are not "pure .NET", by apparent reasons. First of all it is related to "docx", which would be either Open XML SDK, Office Interop assembly or LibreOffice, all based on native (unmanaged) code. Please see my past answers:
How to add microsoft excel 15.0 object library from Add Reference in MS Visual Studio 2010[^],
Microsot office Interop[^],
Read a word file without using Interop.word dll...Do not want to install word in IIS..[^],
Hi how can i display word file in windows application using c#.net[^],
Need a rather unique WPF text editor control[^],
Convert Office-Documents to PDF without interop[^].

Please also see:
http://msdn.microsoft.com/en-us/library/dd264733.aspx[^],
and this alternative: http://npoi.codeplex.com/[^].

Also, please see Microsoft warnings against using Office Interop:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2[^],
http://support.microsoft.com/kb/257757/en-us[^].

—SA
 
Share this answer
 

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