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

    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
                      • 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.

                        D Offline
                        D Offline
                        Dr Walt Fair PE
                        wrote on last edited by
                        #26

                        1. Press Office button in upper left of Word 2007. 2. Select Save As, then PDF or XPS You can automate that if you wish, it pretty easy.

                        CQ de W5ALT

                        Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

                        1 Reply Last reply
                        0
                        • L Lost User

                          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 Offline
                          P Offline
                          Paul A Howes
                          wrote on last edited by
                          #27

                          This has got to be one of the most awful controls that I have ever used. The whole thing is a COM object with a .Net wrapper around it. We have encountered situations where it would not read a file that it wrote. Avoid it if you can!

                          Paul

                          L 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

                            P Offline
                            P Offline
                            Paul A Howes
                            wrote on last edited by
                            #28

                            TextControl produces PDF files that are not very efficient. It appears that it converts a lot of textual information to images, bloating the file and causing it to take a long time to render on slower printers. NOT recommended.

                            Paul

                            1 Reply Last reply
                            0
                            • P Paul A Howes

                              This has got to be one of the most awful controls that I have ever used. The whole thing is a COM object with a .Net wrapper around it. We have encountered situations where it would not read a file that it wrote. Avoid it if you can!

                              Paul

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

                              Actually, I think I have to agree! However, the OP just wanted to read Word and export to PDF - so it may meet his requirements. I haven't used it much at all - but judging by my colleagues frequent non-kid-sister-friendly rants I think its not the WP control of choice. Quite why my company is using it goes a long way to show why I spend much of my evening looking for another job!

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

                              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.

                                V Offline
                                V Offline
                                Vera Balazs
                                wrote on last edited by
                                #30

                                Office 2007 Save As PDF it's a nightmare !!! Don't even go close to it. Waste of time... so what I ended up doing is to buy EasyPDF from BCL Techn. http://www.bcltechnologies.com/[^] Pros: - easy to code. 2 lines of code and your .doc is converted to .pdf - it is designed to converted big batches, so it is fast Cons: - designed to convert bathes, it cannot hadle to open PDF files after generating them - depending on your application you may have to install and license on every client machine, it may be cost prohibitive

                                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