Connecting Tech Pros Worldwide Help | Site Map

Programmatically convert a Word doc to PDF

Newbie
 
Join Date: May 2007
Posts: 2
#1: May 9 '07
Hi, I'm new here.

Is there any commercial .NET extensions which allow me to convert a simple word doc to PDF file?

Thanks for any helps :)
Atran's Avatar
Needs Regular Fix
 
Join Date: May 2007
Location: Sweden
Posts: 323
#2: May 9 '07

re: Programmatically convert a Word doc to PDF


Quote:

Originally Posted by kezhu2007

Hi, I'm new here.

Is there any commercial .NET extensions which allow me to convert a simple word doc to PDF file?

Thanks for any helps :)

I do not sure because I not try this way, see this code:

System.IO.File.Copy("C:\test.doc", "C:\copyofTest.pdf");

Hope to help.
Newbie
 
Join Date: May 2007
Posts: 2
#3: May 10 '07

re: Programmatically convert a Word doc to PDF


Quote:

Originally Posted by Atran

I do not sure because I not try this way, see this code:

System.IO.File.Copy("C:\test.doc", "C:\copyofTest.pdf");

Hope to help.

hmm... I dont think it will work. The only thing this line of code does is the create a identical copy of the original file but with a different file name
Newbie
 
Join Date: Jan 2009
Posts: 1
#4: Jan 14 '09

re: Programmatically convert a Word doc to PDF


Hi, I would like to suggest Aspose.Words. The code is pretty simple:

Expand|Select|Wrap|Line Numbers
  1. Document doc = new Document("in.doc");
  2. doc.SaveToPdf("out.pdf");
Reply


Similar .NET Framework bytes