Skip to main content

Automatically convert .doc and .docx and .xlsx and .pptx to .pdf format.

Project description

概要

Imap2Dict_kiyoshirouは、.doc、.docx、.xlsx、.pptxファイルを自動的に.pdf形式に変換することができます。

機能

  • wordファイルやexcelファイルなどをpdf形式に変換する

注意点

  • 各種ファイル形式の処理に comtypes モジュールと win32com.client を使用します。これらはWindows上でのみ動作するため、Windows環境でこの スクリプトを実行してください。

インストール

pip install comtypes pywin32

使い方

上記のスクリプトを file_converter.py として保存したら、コマンドラインから次のように実行してOfficeファイルをPDFに変換できます。

python file_converter.py input.docx output.pdf

または、以下のように他の形式にも対応しています。

python file_converter.py input.doc output.pdf
python file_converter.py input.xlsx output.pdf
python file_converter.py input.pptx output.pdf

注意点

  1. このスクリプトはWindows環境専用です。
  2. Microsoft Officeがインストールされている必要があります。
  3. 必要なPythonパッケージ (comtypespywin32) を事前にインストールしてください。

このスクリプトを実行すると、指定したOfficeファイルがPDFに変換され、指定した出力パスに保存されます。

サポート

バグ報告や機能リクエストは、GitHubまたは、メールにてご連絡ください。

ライセンス

このプログラムは MIT License でライセンスされています。

バージョン

0.1.0

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

imap2dict_kiyoshirou-1.0.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

Imap2Dict_kiyoshirou-1.0.0-py3-none-any.whl (3.5 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