Anybody aware of a piece of software which could do MS Office .doc to .pdf conversion for me?

I already tried OpenOffice but it appeared to be rather slow and resource-hungry for large documents.

link|improve this question
possible duplicate of How do I convert this filetype to pdf? – Bobby Jun 11 '10 at 14:25
feedback

migrated from stackoverflow.com Feb 26 '10 at 15:57

This question came from our site for professional and enthusiast programmers.

23 Answers

If you have MS Office 2007, you can use the Save as PDF plugin.

http://www.microsoft.com/downloads/details.aspx?FamilyId=F1FC413C-6D89-4F15-991B-63B07BA5F2E5&displaylang=en

link|improve this answer
2  
With the latest service it is no longer a plugin- it is now provided out of the box – RichardOD Dec 3 '09 at 16:04
feedback

PDFCreator is a free print-to-pdf tool based on ghostscript. It's fairly good, although the output of Acrobat Distiller tends to be a bit nicer.

link|improve this answer
feedback

If you want to do it programmatically and you're a .NET or Java programmer, you could use Aspose.Words in combination with Aspose.PDF.

It worked well for me.

EDIT: It seems that using a recent version, you only have to license Aspose Words.

link|improve this answer
2  
These days Aspose.Words can do Microsoft Word document to PDF conversion alone, without using Aspose.Pdf. You only need one product and it works more precise. – romeok Jan 20 '10 at 9:30
As a developer who has worked with Aspose's suite, I found it to be poorly designed and a true pain to code against. I would never recommend that product to anyone, ever. – BBlake Jan 20 '10 at 13:09
@BBlake: Also use it (for Excel) and not impressed with it either. – user12925 Feb 26 '10 at 10:01
feedback

I regularly use - and recommend - PrimoPDF, which is available in both free and paid-for incarnations.

link|improve this answer
feedback

Office 2007 has a free PDF export Add-In available here

link|improve this answer
feedback

Adobe Acrobat for money

OR

CutePDF for free, and it's great!

link|improve this answer
feedback

I personally use PDF 995, a free pdf-printer :) works great

link|improve this answer
feedback

And no one mentioned openoffice with built in PDF saving support?

link|improve this answer
Built-in, and excellent (like yielding clickable cross references, such as table of contents). – Arjan Mar 3 '10 at 7:26
Amen to that brother! – alpha1 Mar 3 '10 at 18:40
feedback

If you want to do it programatically take a look at my response here:

Convert DOC to PDF -- http://stackoverflow.com/questions/218556/send-document-to-printer-with-c#221818

This is code I currently use and it works very well. It will handle anything that Word will open such as .doc, .docx, .rtf etc.

Also, if you have many files to convert you can write you code such that Word is opened once in the background and files are subsequently opened, converted and closed, works very fast and I've had no issues with crashing etc. even when converting thousands of files at a go.

link|improve this answer
feedback

Hey, look what I found. http://www.phplivedocx.org/2009/02/06/convert-doc-to-pdf-in-php/

PHPLiveDocx is a document creation program in php. It can be used to convert Doc to PDF. I've not tried it yet myself, but I certainly shall be experimenting with it soonish.

link|improve this answer
feedback

In the past I've tried different approaches. But now I'm fine with Microsoft Office Word 2007 and the SaveAsPDF-Addin. I've recorded the "save as pdf" process as macro and refined it a bit. Here is my current version:


Sub UpdateAndPDF()
' Update page header

    If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
        ActiveWindow.Panes(2).Close
    End If
    If ActiveWindow.ActivePane.View.Type = wdNormalView Or ActiveWindow. _
        ActivePane.View.Type = wdOutlineView Then
        ActiveWindow.ActivePane.View.Type = wdPrintView
    End If
    ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
    Selection.WholeStory
    Selection.Fields.Update
    ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument

' Update document (like F9)

    Selection.WholeStory
    Selection.Fields.Update
    WordBasic.AcceptAllChangesInDoc

' create PDF

    PDFFilename = (Replace(ActiveDocument.FullName, ".doc", ".pdf"))
    ActiveDocument.ExportAsFixedFormat OutputFileName:= _
        PDFFilename _
        , ExportFormat:=wdExportFormatPDF, OpenAfterExport:=False, OptimizeFor:= _
        wdExportOptimizeForPrint, Range:=wdExportAllDocument, From:=1, To:=1, _
        Item:=wdExportDocumentContent, IncludeDocProps:=True, KeepIRM:=True, _
        CreateBookmarks:=wdExportCreateHeadingBookmarks, DocStructureTags:=True, _
        BitmapMissingFonts:=True, UseISO19005_1:=False

' Close Word

    ActiveDocument.Save
    Application.Quit
End Sub

With the macro option of word I can use this macro in the command line for automation purposes. e. g.

"c:\Program Files\Microsoft Office\Office12\WINWORD.EXE" wordfile.doc /mUpdateAndPDF 

If you want to use it for several documents in a batch file, you can try this:


@echo off
SET WORD="c:\Program Files\Microsoft Office\Office12\WINWORD.EXE"
FOR %%f in (*.doc) do %WORD% %%f /mUpdateAndPDF

link|improve this answer
feedback

You could use online service like one at http://www.freepdfconvert.com No need to install any software.

link|improve this answer
feedback

Same as Stu Mackellar, I use primo pdf and am very happy with it. Some don't like that the free version converts hypertext links to text, but I am OK with that.

-- mike

link|improve this answer
feedback

If you're just doing it occasionally, you can use Zamzar.com to do all sorts of conversions.

TRiG.

link|improve this answer
feedback

I have researched this market extensively and Aspose.Words is worth considering. It does a good job and is 100% .net, but if you are after perfect fidelity (Aspose doesn't render footnotes, limited text flow and floating objects) then the only option you have is to automate Office directly, which is a pain on the server, or use a product that has done all the hard work for you such as the Muhimbi PDF Conversion Service that runs on a server and can be called using a web service.

Full disclosure, I work for Muhimbi (which is why I have researched the market so extensively).

link|improve this answer
feedback

Aspose.Words has been mentioned above. I just want to add the most recent info.

Aspose.Words now converts to PDF by itself (you previously needed Aspose.Words + Aspose.Pdf). One component to use is better than two.

One of the benefits you get with Aspose.Words is that you can get the same great looking documents not only in PDF, but in XPS, render pages as images and even print documents.

I'm on the Aspose.Words team.

link|improve this answer
Can you please show me where the documentation says this or how to do it with the trial dlls? I can't seem to find it. The current doco says you need words and pdf. I am very much considering using ASPOSE.Words if this is the case. – pwee167 Dec 23 '09 at 5:01
This is the basic topic in the "programmers guide" aspose.com/documentation/.net-components/… There is also Document.SaveToPdf method with a couple of overloads aspose.com/documentation/.net-components/… – romeok Jan 20 '10 at 9:08
feedback

I havent looked at the built in PDF features in the last couple of years, but you can use office automation to print to a PostScript Printer driver, which can be be setup as a printer. This creates a PostScript(PS) File which can be converted to PDF using GhostScript.

link|improve this answer
feedback

I am using doPDF, really great and it doesn't popup any adds like PDF 995

link|improve this answer
feedback

See this question for the C# code to a free Word to PDF converter.

link|improve this answer
feedback

protected by Gnoupi Jul 14 '10 at 7:19

This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.

Not the answer you're looking for? Browse other questions tagged or ask your own question.