Adobe Acrobat and Acrobat 3D Batch extension

This is a PDF Batch Converter extension for Adobe Acrobat and Acrobat 3D. This tool converts 3D CAD models to 3D-PDF as well as Office documents to PDF and works in following modes:

  • Convert single files
  • Convert files in a directory in batch
  • Converts a type of files with wildcards like *.CATPart, *.prt, *.model, …
  • Works as a deamon which watches into a directory (directory watcher)

If you want to download a compiled version: http://www.goermezer.de/dmdocuments/Acrobat2PDF.zip

If you want to use the source with a Python interpreter, it needs a config.ini with this content:

# Configuration of Acrobat2PDF:
[configsection]

# Only for usage as a server/deamon process
# Poll time is the time in seconds for each loop of conversion

polltime = 10

And here comes the Python source code. Pywin32 needed.

from __future__ import with_statement
"""
 Adobe Acrobat2PDF Batch Converter
 This tool converts all Office Documents to PDF and a lot of 3D CAD models
 to 3D-PDF
 Copyright Mustafa Goermezer
 http://www.goermezer.de
"""
import getopt
import os
from win32com.client.dynamic import Dispatch
import pythoncom
import win32gui
import time
import sys
import glob
import string
import ConfigParser
import datetime


def LoadConfig(file, config={}):
    """
    returns a dictionary with key's of the form
    
.