3

I need to convert roughly 200 .doc files to .pdf. I know Microsoft Office and Open Office can both save to .pdf, but I do not want to do this manually. Does anyone know any FREEWARE apps that will do this?

There seems to be millions of batch video and photo converters out there, why not document converters?

Thanks

thomas
  • 33

2 Answers2

0

http://www.oooninja.com/2008/02/batch-command-line-file-conversion-with.html

http://code.google.com/p/anytopdf/

From the first link, pay attention to the command line example for printing to a PDF printer. You can put this command line into a standard batch script easily to iterate over filenames.

maxwellb
  • 935
0

You can do it with a Macro. In my example I have a separate macro called CreatePDF that converts and saves the current file, and a text file temp.txt that contains the list of documents to be converted.

Sub ConvertAll()
Dim fname As String
Dim doc As Document
Open "c:\temp\temp.txt" For Input As #1
Do While Not EOF(1)
    Line Input #1, fname
    Set doc = Documents.Open(filename:=fname, ConfirmConversions:=False, ReadOnly:=True, _
        AddToRecentFiles:=False)
    doc.Activate
    CreatePDF
    doc.Close SaveChanges:=wdDoNotSaveChanges
Loop
Close #1
End Sub

I prefer to use Word to do this sort of thing, as there won't be any wonky formatting issues.

Mark Ransom
  • 2,258