Skip to main content

This package aims to convert Microsoft Office file types to PDF.

Project description

msoffice2pdf

This package aims to convert Microsoft Office file types to PDF. This lib uses the comtypes package which makes it easy to access and implement custom, dispatch-based COM interfaces or LibreOffice software.

For use in Windows environment and soft="msoffice" Microsoft Office must be installed.

For use in Windows environment and soft="libreoffice" you need the latest version of LibreOffice(soffice) installed.

For Ubuntu(linux) environment it is only possible to use soft="libreoffice", that is, LibreOffice(soffice).

Example:

from msoffice2pdf import convert

output = convert(source="C:/Users/<User>/Downloads/file.docx", output_dir="C:/Users/<User>/Downloads", soft="msoffice")

print(output)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

msoffice2pdf-0.0.3.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

msoffice2pdf-0.0.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file msoffice2pdf-0.0.3.tar.gz.

File metadata

  • Download URL: msoffice2pdf-0.0.3.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for msoffice2pdf-0.0.3.tar.gz
Algorithm Hash digest
SHA256 32f1ff51f18174fd47d4134f939e3cea1d0b5c3f6e3726645ac8892d0243f987
MD5 314085d6c1ce54a76fd6f5ca7ed9f231
BLAKE2b-256 0dc3c5267dbc7025a20687786f3f529eac900b946cfb3e9cb00ff7f441d80494

See more details on using hashes here.

File details

Details for the file msoffice2pdf-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: msoffice2pdf-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for msoffice2pdf-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a665a8e21b4cd99b9ee0d315b8dbdeb4977b9492143a9f8013ff29441561d88f
MD5 d08dfd07db15876a722aa3e8fc5c9182
BLAKE2b-256 62e30f6794fe1f903fb628a68a7c9fd2a2a5adf4f66979e2ee6b4a2275b003cc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page