Search code examples
c#automationpdf-generationdoc

automation of Doc to PDF in c#


I have got about 200 word documents that I need to pdf.

Obviously, I cannot pdf them one by one as, first it will take ages, second I am sure it is not good practice to do so.

I need to find a way to automate that conversion, since we will need to this again and again.

I use C#, but the solution does not necessarily have to be in c#, but it is preferred.

I have had a look at few libraries such as PDfCreator, Office 2007 add-in, ITextSharp, and so forth and there is not any clear answer on the forums.

PDFCreator has c# sample, but it does only work with txt files. Office 2007 add in does not have document locking capabilities which a must on the automation.

has anyone implemented such scenario before? I would like you hear your suggestions.

Thanks in advance

regards


Solution

  • You can try the method in this blog post:

    http://angrez.blogspot.com/2007/06/create-pdf-in-net-using-pdfcreator.html