Imap2Dict-kiyoshirou


NameImap2Dict-kiyoshirou JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryAutomatically convert .doc and .docx and .xlsx and .pptx to .pdf format.
upload_time2024-05-24 06:20:11
maintainerKiyoshirou Matsubara
docs_urlNone
authorKiyoshirou Matsubara
requires_pythonNone
licenseMIT
keywords docx xlsx pptx pdf convert docx to pdf xlsx to pdf pptx to
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 概要

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

# 機能

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

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

## インストール

```
pip install comtypes pywin32
```

### 使い方

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

```sh
python file_converter.py input.docx output.pdf
```

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

```sh
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パッケージ (`comtypes` と `pywin32`) を事前にインストールしてください。

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

# サポート

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

# ライセンス

このプログラムは [MIT License](https://choosealicense.com/licenses/mit/) でライセンスされています。

## バージョン

0.1.0

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "Imap2Dict-kiyoshirou",
    "maintainer": "Kiyoshirou Matsubara",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": "s2222035@stu.musashino-u.ac.jp",
    "keywords": "docx, xlsx, pptx, pdf, convert, docx to pdf, xlsx to pdf, pptx to",
    "author": "Kiyoshirou Matsubara",
    "author_email": "s2222035@stu.musashino-u.ac.jp",
    "download_url": "https://files.pythonhosted.org/packages/4d/9e/b5a0c37e50d25d0a43c700c42b669866ab0b193389dff8cf24225e7e9f19/imap2dict_kiyoshirou-1.0.0.tar.gz",
    "platform": null,
    "description": "# \u6982\u8981\n\nImap2Dict_kiyoshirou\u306f\u3001.doc\u3001.docx\u3001.xlsx\u3001.pptx\u30d5\u30a1\u30a4\u30eb\u3092\u81ea\u52d5\u7684\u306b.pdf\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n\n# \u6a5f\u80fd\n\n* word\u30d5\u30a1\u30a4\u30eb\u3084excel\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3092pdf\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\n\n# \u6ce8\u610f\u70b9\n* \u5404\u7a2e\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f\u306e\u51e6\u7406\u306b comtypes \u30e2\u30b8\u30e5\u30fc\u30eb\u3068 win32com.client \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306fWindows\u4e0a\u3067\u306e\u307f\u52d5\u4f5c\u3059\u308b\u305f\u3081\u3001Windows\u74b0\u5883\u3067\u3053\u306e \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\n## \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n\n```\npip install comtypes pywin32\n```\n\n### \u4f7f\u3044\u65b9\n\n\u4e0a\u8a18\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092 `file_converter.py` \u3068\u3057\u3066\u4fdd\u5b58\u3057\u305f\u3089\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u6b21\u306e\u3088\u3046\u306b\u5b9f\u884c\u3057\u3066Office\u30d5\u30a1\u30a4\u30eb\u3092PDF\u306b\u5909\u63db\u3067\u304d\u307e\u3059\u3002\n\n```sh\npython file_converter.py input.docx output.pdf\n```\n\n\u307e\u305f\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4ed6\u306e\u5f62\u5f0f\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002\n\n```sh\npython file_converter.py input.doc output.pdf\npython file_converter.py input.xlsx output.pdf\npython file_converter.py input.pptx output.pdf\n```\n\n### \u6ce8\u610f\u70b9\n1. \u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306fWindows\u74b0\u5883\u5c02\u7528\u3067\u3059\u3002\n2. Microsoft Office\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\n3. \u5fc5\u8981\u306aPython\u30d1\u30c3\u30b1\u30fc\u30b8 (`comtypes` \u3068 `pywin32`) \u3092\u4e8b\u524d\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\n\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u6307\u5b9a\u3057\u305fOffice\u30d5\u30a1\u30a4\u30eb\u304cPDF\u306b\u5909\u63db\u3055\u308c\u3001\u6307\u5b9a\u3057\u305f\u51fa\u529b\u30d1\u30b9\u306b\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002\n\n# \u30b5\u30dd\u30fc\u30c8\n\n\u30d0\u30b0\u5831\u544a\u3084\u6a5f\u80fd\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u3001GitHub\u307e\u305f\u306f\u3001\u30e1\u30fc\u30eb\u306b\u3066\u3054\u9023\u7d61\u304f\u3060\u3055\u3044\u3002\n\n# \u30e9\u30a4\u30bb\u30f3\u30b9\n\n\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f [MIT License](https://choosealicense.com/licenses/mit/) \u3067\u30e9\u30a4\u30bb\u30f3\u30b9\u3055\u308c\u3066\u3044\u307e\u3059\u3002\n\n## \u30d0\u30fc\u30b8\u30e7\u30f3\n\n0.1.0\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Automatically convert .doc and .docx and .xlsx and .pptx to .pdf format.",
    "version": "1.0.0",
    "project_urls": null,
    "split_keywords": [
        "docx",
        " xlsx",
        " pptx",
        " pdf",
        " convert",
        " docx to pdf",
        " xlsx to pdf",
        " pptx to"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b9a93c483d8c4710bc0340bd9cda97518194d3d80f0980856627994059c47264",
                "md5": "d0e143a9e8c174e50b822932cea5c254",
                "sha256": "d5d39bdecf14de9f15853e89aea976d1de89163f15afb73c18ea8312d34b1f85"
            },
            "downloads": -1,
            "filename": "Imap2Dict_kiyoshirou-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d0e143a9e8c174e50b822932cea5c254",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3545,
            "upload_time": "2024-05-24T06:20:10",
            "upload_time_iso_8601": "2024-05-24T06:20:10.060853Z",
            "url": "https://files.pythonhosted.org/packages/b9/a9/3c483d8c4710bc0340bd9cda97518194d3d80f0980856627994059c47264/Imap2Dict_kiyoshirou-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4d9eb5a0c37e50d25d0a43c700c42b669866ab0b193389dff8cf24225e7e9f19",
                "md5": "efcce4f37083c93c397a7eebb6361847",
                "sha256": "6b3c842100cc9cc20bc3dba76c051ce42ebb0ac8c06942e1c89befc2da5b8e8d"
            },
            "downloads": -1,
            "filename": "imap2dict_kiyoshirou-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "efcce4f37083c93c397a7eebb6361847",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3394,
            "upload_time": "2024-05-24T06:20:11",
            "upload_time_iso_8601": "2024-05-24T06:20:11.559321Z",
            "url": "https://files.pythonhosted.org/packages/4d/9e/b5a0c37e50d25d0a43c700c42b669866ab0b193389dff8cf24225e7e9f19/imap2dict_kiyoshirou-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-24 06:20:11",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "imap2dict-kiyoshirou"
}
        
Elapsed time: 0.23982s