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
注意点
- このスクリプトはWindows環境専用です。
- Microsoft Officeがインストールされている必要があります。
- 必要なPythonパッケージ (
comtypes
とpywin32
) を事前にインストールしてください。
このスクリプトを実行すると、指定したOfficeファイルがPDFに変換され、指定した出力パスに保存されます。
サポート
バグ報告や機能リクエストは、GitHubまたは、メールにてご連絡ください。
ライセンス
このプログラムは MIT License でライセンスされています。
バージョン
0.1.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for imap2dict_kiyoshirou-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b3c842100cc9cc20bc3dba76c051ce42ebb0ac8c06942e1c89befc2da5b8e8d |
|
MD5 | efcce4f37083c93c397a7eebb6361847 |
|
BLAKE2b-256 | 4d9eb5a0c37e50d25d0a43c700c42b669866ab0b193389dff8cf24225e7e9f19 |
Close
Hashes for Imap2Dict_kiyoshirou-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5d39bdecf14de9f15853e89aea976d1de89163f15afb73c18ea8312d34b1f85 |
|
MD5 | d0e143a9e8c174e50b822932cea5c254 |
|
BLAKE2b-256 | b9a93c483d8c4710bc0340bd9cda97518194d3d80f0980856627994059c47264 |