Skip to content

lesquoyb/pdf_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What it does

Recursively converts all kind of documents in a directory into pdf files. Supported formats are:

  • .doc
  • .wri
  • .wps
  • .odt
  • .pps
  • .wpd
  • .ppt
  • .rtf
  • .xls
  • .eps
  • .psd
  • .pcx
  • .xlsx
  • .docx
  • .ps
  • .chm
  • .htm
  • .html

How to use it

Replace the placeholders for the variables PYTHON_INTERP and PATH_CONV with respectively your python interpreter and the path of the directory you want to process, then run the file main.py. You can turn on error messages while processing with the variable verbose.

If you have chm files in the directory, it will raise an error on linux/mac, so you will have to adapt the line:

  subprocess.call(["hh.exe", "-decompile", directory, in_file], stdout=subprocess.PIPE) 

with your chm decompiler (7zip works fine, surely a bunch of others too)

About

converts office and html/chm files to pdf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages