img-to-pdf


Nameimg-to-pdf JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/Cbannon35/makePDF
SummarySimple CLI tool to convert images in a directory to a PDF
upload_time2024-03-15 08:26:51
maintainer
docs_urlNone
authorChristopher Bannon
requires_python
licenseMIT
keywords pdf image convert
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # makePDF or img-to-pdf

[![PyPI version](https://badge.fury.io/py/img-to-pdf.svg)](https://badge.fury.io/py/img-to-pdf)


This is a simple script to convert all images or pdfs in a directory to a single pdf file.

- [PyPI](https://pypi.org/project/img-to-pdf/)
- [GitHub](https://github.com/Cbannon35/makePDF/)

## Usage

```bash
makePDF [operation] [flags]
```

## Operations

- `img`: Convert all images in a directory to a single PDF.
- `pdf`: Convert all PDFs in a directory to a single PDF.
- `help`: Display help information.

## Flags

- `-name`: The name of the output file.
- `-in` or `--input`: The input directory.
- `-out` or `--output`: The output directory.

## Example

Merge images from the directory `input_images` into a single PDF named `output.pdf` in the directory `example/output_pdf`:

```bash
makePDF img -in input_images -out example/output_pdf -name output.pdf
```

Merge all pdf in the current directory into a single PDF in the current directory:

```bash
makePDF.py pdf
```

## Installation

```bash
pip install img-to-pdf
```

## License

[MIT](https://choosealicense.com/licenses/mit/)

## Motivation

I created this script in an afternoon because I was not having a fun time converting images to PDFs for class. [Automator](https://apple.stackexchange.com/questions/12709/how-can-i-convert-jpg-into-pdf-easily) has a good solution for Mac users, but I was more comfortable in the terminal.

## Room for Improvement

- Add support for other file types.
- Further Optimization


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Cbannon35/makePDF",
    "name": "img-to-pdf",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "PDF,image,convert",
    "author": "Christopher Bannon",
    "author_email": "cbannon@berkeley.edu",
    "download_url": "https://files.pythonhosted.org/packages/c9/7a/ff6fc65383358c4364b4f41d515efb082072ab1a5e11f8be062582bcd115/img-to-pdf-1.0.2.tar.gz",
    "platform": null,
    "description": "# makePDF or img-to-pdf\n\n[![PyPI version](https://badge.fury.io/py/img-to-pdf.svg)](https://badge.fury.io/py/img-to-pdf)\n\n\nThis is a simple script to convert all images or pdfs in a directory to a single pdf file.\n\n- [PyPI](https://pypi.org/project/img-to-pdf/)\n- [GitHub](https://github.com/Cbannon35/makePDF/)\n\n## Usage\n\n```bash\nmakePDF [operation] [flags]\n```\n\n## Operations\n\n- `img`: Convert all images in a directory to a single PDF.\n- `pdf`: Convert all PDFs in a directory to a single PDF.\n- `help`: Display help information.\n\n## Flags\n\n- `-name`: The name of the output file.\n- `-in` or `--input`: The input directory.\n- `-out` or `--output`: The output directory.\n\n## Example\n\nMerge images from the directory `input_images` into a single PDF named `output.pdf` in the directory `example/output_pdf`:\n\n```bash\nmakePDF img -in input_images -out example/output_pdf -name output.pdf\n```\n\nMerge all pdf in the current directory into a single PDF in the current directory:\n\n```bash\nmakePDF.py pdf\n```\n\n## Installation\n\n```bash\npip install img-to-pdf\n```\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n## Motivation\n\nI created this script in an afternoon because I was not having a fun time converting images to PDFs for class. [Automator](https://apple.stackexchange.com/questions/12709/how-can-i-convert-jpg-into-pdf-easily) has a good solution for Mac users, but I was more comfortable in the terminal.\n\n## Room for Improvement\n\n- Add support for other file types.\n- Further Optimization\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Simple CLI tool to convert images in a directory to a PDF",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/Cbannon35/makePDF"
    },
    "split_keywords": [
        "pdf",
        "image",
        "convert"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e89e03cc4a94f8b5b36dec4f8b97d13657f7eeb86f69fd854ad5e3372e461638",
                "md5": "c69aa161cc9820b5c4553713db0bea41",
                "sha256": "ffe140ad06a0072898ea3a3dfb4f02dad82e0eec93373870627ca73a4b9f2eb6"
            },
            "downloads": -1,
            "filename": "img_to_pdf-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c69aa161cc9820b5c4553713db0bea41",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6042,
            "upload_time": "2024-03-15T08:26:49",
            "upload_time_iso_8601": "2024-03-15T08:26:49.452350Z",
            "url": "https://files.pythonhosted.org/packages/e8/9e/03cc4a94f8b5b36dec4f8b97d13657f7eeb86f69fd854ad5e3372e461638/img_to_pdf-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c97aff6fc65383358c4364b4f41d515efb082072ab1a5e11f8be062582bcd115",
                "md5": "54ee9b7301fb5048b4f4ce62616e6392",
                "sha256": "fd40089778a70bbb706e6fe2f351d8ba59c2a5d5a5820713be954a3ad7dcac1b"
            },
            "downloads": -1,
            "filename": "img-to-pdf-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "54ee9b7301fb5048b4f4ce62616e6392",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5303,
            "upload_time": "2024-03-15T08:26:51",
            "upload_time_iso_8601": "2024-03-15T08:26:51.502141Z",
            "url": "https://files.pythonhosted.org/packages/c9/7a/ff6fc65383358c4364b4f41d515efb082072ab1a5e11f8be062582bcd115/img-to-pdf-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-15 08:26:51",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Cbannon35",
    "github_project": "makePDF",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "img-to-pdf"
}
        
Elapsed time: 3.18794s