Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Convert Word documents to PDF library in C# ?

Convert Word documents to PDF library in C# ?

Scheduled Pinned Locked Moved The Lounge
csharpquestion
30 Posts 22 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Christian Graus

    Does anyone know of a library that will convert Word to PDF ? There's an article on CP, but it looks a little convoluted, requires things on the client machine that I don't want to require ( like Crystal ) and the license terms are not clear. I am happy to buy something, but I've been googling and I can't find any that do what I want ( that is PDF.GenerateFromWordDoc(@"c:\word.doc", @"c:\my.pdf"); or something similiar )

    Christian Graus Driven to the arms of OSX by Vista.

    E Offline
    E Offline
    Ed Poore
    wrote on last edited by
    #6

    Aspose[^]? It's what they started with from what I remember.

    C 1 Reply Last reply
    0
    • E Ed Poore

      Aspose[^]? It's what they started with from what I remember.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #7

      Yeah, we definately do not want our users to have to print, or to require Office 2007, so this is the way to go. Thanks.

      Christian Graus Driven to the arms of OSX by Vista.

      E 1 Reply Last reply
      0
      • C Christian Graus

        Yeah, we definately do not want our users to have to print, or to require Office 2007, so this is the way to go. Thanks.

        Christian Graus Driven to the arms of OSX by Vista.

        E Offline
        E Offline
        Ed Poore
        wrote on last edited by
        #8

        Check out for some reviews though, I can't remember if it was them or a company like ComponentOne who had some issues.  From what I remember Aspose isn't too bad.

        C 1 Reply Last reply
        0
        • E Ed Poore

          Check out for some reviews though, I can't remember if it was them or a company like ComponentOne who had some issues.  From what I remember Aspose isn't too bad.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #9

          Their web page is a joke, their support is in China, and as they are not online right now, it goes to 'send an email', but it asks for my personal details and there's no where on the form to provide them. So, I cannot contact them.

          Christian Graus Driven to the arms of OSX by Vista.

          E M J B 4 Replies Last reply
          0
          • C Christian Graus

            Their web page is a joke, their support is in China, and as they are not online right now, it goes to 'send an email', but it asks for my personal details and there's no where on the form to provide them. So, I cannot contact them.

            Christian Graus Driven to the arms of OSX by Vista.

            E Offline
            E Offline
            Ed Poore
            wrote on last edited by
            #10

            God it's gone down hill since I checked it last time (several years ago...)

            1 Reply Last reply
            0
            • C Christian Graus

              Their web page is a joke, their support is in China, and as they are not online right now, it goes to 'send an email', but it asks for my personal details and there's no where on the form to provide them. So, I cannot contact them.

              Christian Graus Driven to the arms of OSX by Vista.

              M Offline
              M Offline
              Mustafa Ismail Mustafa
              wrote on last edited by
              #11

              I was about to post vouching for Aspose, but then I read your posts and now I'm not too sure. We used to rely heavily on their PDF generator libs from VB.NET for eSense's clients, but that was a few years ago and I have no idea what state they're in now.

              Don't forget to vote if the response was helpful


              Sig history "dad" Ishmail-Samuel Mustafa Unix is a Four Letter Word, and Vi is a Two Letter Abbreviation "There is no wealth like knowledge, no poverty like ignorance" Ali Ibn Abi Talib

              1 Reply Last reply
              0
              • C Christian Graus

                Does anyone know of a library that will convert Word to PDF ? There's an article on CP, but it looks a little convoluted, requires things on the client machine that I don't want to require ( like Crystal ) and the license terms are not clear. I am happy to buy something, but I've been googling and I can't find any that do what I want ( that is PDF.GenerateFromWordDoc(@"c:\word.doc", @"c:\my.pdf"); or something similiar )

                Christian Graus Driven to the arms of OSX by Vista.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #12

                You could look at TXText control http://www.textcontrol.com/[^] - I know it supports Word and PDF - so in principal you can open a Word document, give it to TXText and then save it as a PDF. Although it is designed to be a word processing control, it would probably suit your requirements...

                Life is like a pubic hair on the toilet seat... ...sometimes, you just get pissed off. .\\axxx (That's an 'M')

                P 1 Reply Last reply
                0
                • C Christian Graus

                  Does anyone know of a library that will convert Word to PDF ? There's an article on CP, but it looks a little convoluted, requires things on the client machine that I don't want to require ( like Crystal ) and the license terms are not clear. I am happy to buy something, but I've been googling and I can't find any that do what I want ( that is PDF.GenerateFromWordDoc(@"c:\word.doc", @"c:\my.pdf"); or something similiar )

                  Christian Graus Driven to the arms of OSX by Vista.

                  C Offline
                  C Offline
                  code frog 0
                  wrote on last edited by
                  #13

                  Did you ever check out the library I already suggested? http://tallpdf.net/default.aspx?id=home[^] If not have a look.

                  1 Reply Last reply
                  0
                  • C Christian Graus

                    Does anyone know of a library that will convert Word to PDF ? There's an article on CP, but it looks a little convoluted, requires things on the client machine that I don't want to require ( like Crystal ) and the license terms are not clear. I am happy to buy something, but I've been googling and I can't find any that do what I want ( that is PDF.GenerateFromWordDoc(@"c:\word.doc", @"c:\my.pdf"); or something similiar )

                    Christian Graus Driven to the arms of OSX by Vista.

                    A Offline
                    A Offline
                    Andrew Harrs
                    wrote on last edited by
                    #14

                    I will second the recommendation of http://www.aspose.com/

                    1 Reply Last reply
                    0
                    • C Christian Graus

                      Does anyone know of a library that will convert Word to PDF ? There's an article on CP, but it looks a little convoluted, requires things on the client machine that I don't want to require ( like Crystal ) and the license terms are not clear. I am happy to buy something, but I've been googling and I can't find any that do what I want ( that is PDF.GenerateFromWordDoc(@"c:\word.doc", @"c:\my.pdf"); or something similiar )

                      Christian Graus Driven to the arms of OSX by Vista.

                      R Offline
                      R Offline
                      Roger Wright
                      wrote on last edited by
                      #15

                      I use CutePDF for converting documents, but I don't know if they offer a library version of it. It installs as a printer driver, and when you print any type of file to it the output is a PDF document. Much to my surprise it even works with ArcGIS' ArcINfo maps and AutoCAD 2007 drawings. I'd check to see if there's a library available.

                      "A Journey of a Thousand Rest Stops Begins with a Single Movement"

                      1 Reply Last reply
                      0
                      • C Christian Graus

                        Their web page is a joke, their support is in China, and as they are not online right now, it goes to 'send an email', but it asks for my personal details and there's no where on the form to provide them. So, I cannot contact them.

                        Christian Graus Driven to the arms of OSX by Vista.

                        J Offline
                        J Offline
                        Johnno74
                        wrote on last edited by
                        #16

                        Hmm I used aspose.words and aspose.pdf for a project last year. Basically I needed to develop a "templating" engine that would take a word document as a template (so end-users could edit it) and mail merge in fields and regions, saving the output as either a word document or a pdf. aspose.words gave me complete control over the DOM of the word doc, allowing me to cut/paste sections with ease and a couple of lines of code let me save the doc as a pdf. It worked very well and I had no complaints whatsoever. I never had to use their support but I found some good info on their KB and forum. I know the aspose.words developers are based in Auckland, NZ. They have a "trial" edition which watermarks the output which was fine for our test/dev environments, and the end client sorted out their own license.

                        1 Reply Last reply
                        0
                        • C Christian Graus

                          Does anyone know of a library that will convert Word to PDF ? There's an article on CP, but it looks a little convoluted, requires things on the client machine that I don't want to require ( like Crystal ) and the license terms are not clear. I am happy to buy something, but I've been googling and I can't find any that do what I want ( that is PDF.GenerateFromWordDoc(@"c:\word.doc", @"c:\my.pdf"); or something similiar )

                          Christian Graus Driven to the arms of OSX by Vista.

                          B Offline
                          B Offline
                          blackjack2150
                          wrote on last edited by
                          #17

                          Get a free virtual printer which uses Ghostscript and automate the printing process. This C# article gives an idea:http://www.codeproject.com/KB/files/anyfiletopdf.aspx[^] This is basically a series of hacks, but it gets the job done, producing nice PDFs.

                          1 Reply Last reply
                          0
                          • C Christian Graus

                            Does anyone know of a library that will convert Word to PDF ? There's an article on CP, but it looks a little convoluted, requires things on the client machine that I don't want to require ( like Crystal ) and the license terms are not clear. I am happy to buy something, but I've been googling and I can't find any that do what I want ( that is PDF.GenerateFromWordDoc(@"c:\word.doc", @"c:\my.pdf"); or something similiar )

                            Christian Graus Driven to the arms of OSX by Vista.

                            S Offline
                            S Offline
                            strycore
                            wrote on last edited by
                            #18

                            I had to do this on a project I work on and I've been using PDFCreator[^], iTextSharp and VSTO to do the job. I have written a class that converts many types of documents(word, excel, images, html ...) in PDF and can also concatenate them. PDFCreator and iTextSharp are open source so you don't need to buy a license.

                            1 Reply Last reply
                            0
                            • C Christian Graus

                              Does anyone know of a library that will convert Word to PDF ? There's an article on CP, but it looks a little convoluted, requires things on the client machine that I don't want to require ( like Crystal ) and the license terms are not clear. I am happy to buy something, but I've been googling and I can't find any that do what I want ( that is PDF.GenerateFromWordDoc(@"c:\word.doc", @"c:\my.pdf"); or something similiar )

                              Christian Graus Driven to the arms of OSX by Vista.

                              R Offline
                              R Offline
                              resnbl
                              wrote on last edited by
                              #19

                              I did something like this a few years ago, and used OLE Automation of Word 2000 and "PDFCreator" http://sourceforge.net/projects/pdfcreator/[^]. An important issue for me was that I wanted the Word TOC/Index hyperlinks to be active in the final PDF, and just printing to a PDF printer lost than capability. For this, I added "PDF-T-Maker" http://www.transcom.de/transcom/en/2004_pdf-t-maker.htm[^] to the mix. The final result could give you whiplash just watching the window pops on the screen, but it did work... resnbl

                              L 1 Reply Last reply
                              0
                              • R resnbl

                                I did something like this a few years ago, and used OLE Automation of Word 2000 and "PDFCreator" http://sourceforge.net/projects/pdfcreator/[^]. An important issue for me was that I wanted the Word TOC/Index hyperlinks to be active in the final PDF, and just printing to a PDF printer lost than capability. For this, I added "PDF-T-Maker" http://www.transcom.de/transcom/en/2004_pdf-t-maker.htm[^] to the mix. The final result could give you whiplash just watching the window pops on the screen, but it did work... resnbl

                                L Offline
                                L Offline
                                LucianPopescu
                                wrote on last edited by
                                #20

                                I suggest http://www.textcontrol.com/, i use it, it's very simple to do what you want, if you want , you can look at http://www.textcontrol.com/products/client\_side/movie/ to see what simple it is to use ;) i really like it :D

                                B P 2 Replies Last reply
                                0
                                • C Christian Graus

                                  Their web page is a joke, their support is in China, and as they are not online right now, it goes to 'send an email', but it asks for my personal details and there's no where on the form to provide them. So, I cannot contact them.

                                  Christian Graus Driven to the arms of OSX by Vista.

                                  B Offline
                                  B Offline
                                  Bjohnson33
                                  wrote on last edited by
                                  #21

                                  We used this on a large project last year for auto-generating invoices and it worked very solidly. As with the other posters, we didn't need to call on their support, but seem to recall a very healthy forum. We did also try Report.Net (http://sourceforge.net/projects/report/[^] but found, although it had very granular control, it was very fiddly and time-consuming to get accurate output. Ben

                                  1 Reply Last reply
                                  0
                                  • L LucianPopescu

                                    I suggest http://www.textcontrol.com/, i use it, it's very simple to do what you want, if you want , you can look at http://www.textcontrol.com/products/client\_side/movie/ to see what simple it is to use ;) i really like it :D

                                    B Offline
                                    B Offline
                                    blackjack2150
                                    wrote on last edited by
                                    #22

                                    As good as TextControl is for text processing, for PDF conversion it's really poor. I can provide you with many many DOC files which are either not properly converted or they crash the TextControl component. I was also enthusiastic about it at first, but when error reports from customers started pouring we had to look for something else.

                                    L 1 Reply Last reply
                                    0
                                    • C Christian Graus

                                      Does anyone know of a library that will convert Word to PDF ? There's an article on CP, but it looks a little convoluted, requires things on the client machine that I don't want to require ( like Crystal ) and the license terms are not clear. I am happy to buy something, but I've been googling and I can't find any that do what I want ( that is PDF.GenerateFromWordDoc(@"c:\word.doc", @"c:\my.pdf"); or something similiar )

                                      Christian Graus Driven to the arms of OSX by Vista.

                                      T Offline
                                      T Offline
                                      Thomas Stockwell
                                      wrote on last edited by
                                      #23

                                      You may look into Nova PDF SDK[^]. It is an SDK that was advertised on the doPDF[^]freeware printer driver website to print directly to a PDF file.

                                      Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my Blog

                                      1 Reply Last reply
                                      0
                                      • B blackjack2150

                                        As good as TextControl is for text processing, for PDF conversion it's really poor. I can provide you with many many DOC files which are either not properly converted or they crash the TextControl component. I was also enthusiastic about it at first, but when error reports from customers started pouring we had to look for something else.

                                        L Offline
                                        L Offline
                                        LucianPopescu
                                        wrote on last edited by
                                        #24

                                        Maybe you are right, i didn't use it for long time and didn't get error reports yet

                                        1 Reply Last reply
                                        0
                                        • C Christian Graus

                                          Does anyone know of a library that will convert Word to PDF ? There's an article on CP, but it looks a little convoluted, requires things on the client machine that I don't want to require ( like Crystal ) and the license terms are not clear. I am happy to buy something, but I've been googling and I can't find any that do what I want ( that is PDF.GenerateFromWordDoc(@"c:\word.doc", @"c:\my.pdf"); or something similiar )

                                          Christian Graus Driven to the arms of OSX by Vista.

                                          M Offline
                                          M Offline
                                          Muneeb R Baig
                                          wrote on last edited by
                                          #25

                                          Have a look upon PDF995: PDF995[^] Development FAQ[^]

                                          -muneeb A thing of beauty is the joy forever.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups