Skip to content

a simple python program covert doc file to pdf file, implement by python win32com

Notifications You must be signed in to change notification settings

litao3rd/doc2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

doc2pdf


This is a very dirty code about convert Windows doc files to pdf files. It's my first time to write python code. Fortunately, it works fine.

It's implemented by Windows Office COM interfaces, and call COM interfaces by Python for Windows Extensions. You can get it from HERE.

This program accepts a directory path, and convert all the .doc files in that path to .pdf file format. It works recursively. So it will covert all doc files in its sub-directorys.

$ doc2pdf.py [source-directory-path]

$ doc2pdf.py [source-doc-file-path]

$ doc2pdf.py [source-doc-file-path] [target-pdf-file-path]

I complete these code by learning some guys' works. The program contains some codes from HERE. Thanks for your blog article and source code.

About

a simple python program covert doc file to pdf file, implement by python win32com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages