Convert Word documents to PDF library in C# ?
-
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.
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"
-
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.
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.
-
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.
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.
-
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.
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.
-
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.
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
-
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
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
-
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.
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
-
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
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.
-
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.
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
-
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.
Maybe you are right, i didn't use it for long time and didn't get error reports yet
-
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.
Have a look upon PDF995: PDF995[^] Development FAQ[^]
-muneeb A thing of beauty is the joy forever.
-
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.
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
-
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')
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
-
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
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
-
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
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')
-
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.
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