Programmatically convert a Word doc to PDF

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kezhu2007
    New Member
    • May 2007
    • 2

    Programmatically convert a Word doc to PDF

    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
    Contributor
    • May 2007
    • 319

    #2
    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.d oc", "C:\copyofTest. pdf");

    Hope to help.

    Comment

    • kezhu2007
      New Member
      • May 2007
      • 2

      #3
      Originally posted by Atran
      I do not sure because I not try this way, see this code:

      System.IO.File. Copy("C:\test.d oc", "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

      Comment

      • beast13
        New Member
        • Jan 2009
        • 1

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

        Code:
        Document doc = new Document("in.doc");
        doc.SaveToPdf("out.pdf");

        Comment

        Working...