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.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

msoffice2pdf-0.0.2-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

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