Sign in to follow this  

convert .doc to .pdf

This topic is 2961 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

We need a .Net tool that we can use programmatically to convert a doc to a pdf. Anyone know of a good free/cheap tool to do this? Note: It's ok if the tool needs Word on the pc to utilize the program/binaries. Thanks.

Share this post


Link to post
Share on other sites
We'd like to stay away from needing to install additional software (like OpenOffice) on all the pc's we'll be using our program on. We were hoping to just add a dll to our project in order to get the conversion done. We've found that office 2007 has a way to do it, but we don't have licenses for 07 (and probably won't upgrade just for this reason).

Share this post


Link to post
Share on other sites
I use Word's COM API to print to a PostScript file then convert to a PDF with GhostScript as part of web service. The Office COM API is pretty horrible to call from C# (finally fixed in C# 4.0 with support for optional ref and support for missing arguments) but it works. However, there are some issues with this technique - for one, there's no way to hide dialogs. Most noticeable is the print dialog, but if Word crashes and then has to display the file recovery dialog the next time it starts up or the file you're opening is locked for editing for some reason your app will hang until the user clicks through Word's UI. In a carefully controlled environment you can get away with these things, but probably not if this is software the user interacts with normally.

Share this post


Link to post
Share on other sites

This topic is 2961 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this