rpa-pdf


Namerpa-pdf JSON
Version 1.1.15 PyPI version JSON
download
home_page
SummaryPdf actions for RPA
upload_time2024-01-25 08:04:07
maintainer
docs_urlNone
author
requires_python>=3.10
licenseThe MIT License (MIT) Copyright © 2022 Ziolo, Grzegorz Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Fork this project to create your own MIT license that you can always link to.
keywords rpa pdf
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # RPA_PDF
Python module delivers some actions to manipulate with PDF files.
The module is compatibile with the Robocorp.

## Installation
To install the package run:

```
pip install rpa_pdf
```

## Example
### Generating pdf file from text
```
from rpa_pdf import Pdf

pdf = Pdf()

pdf.text_to_pdf('some text', 'c:/temp/somefile.pdf)
```
### Compress pdf file
```
from rpa_pdf import Pdf

pdf = Pdf()

pdf.compress('c:/temp/somefile.pdf')
```
### Add Code39 stamp
```
from rpa_pdf import Pdf

pdf = Pdf()

pdf.add_code39_stamp('c:/temp/input_file.pdf', 'c:/temp/output_file.pdf', '12345678')
```
### Merging pdf files
```
from rpa_pdf import Pdf

pdf = Pdf()

pdf.merge(['c:/temp/file1.pdf', 'c:/temp/file2.pdf'], 'c:/temp/merged.pdf')
```
### Add text stamp
```
from rpa_pdf import Pdf

pdf = Pdf()

pdf.add_text_stamp('c:/temp/input_file.pdf', 'c:/temp/output_file.pdf', 'some text')
```
### Print PDF document on the printer
```
from rpa_pdf import Pdf

pdf = Pdf()

pdf.print('c:/temp/document.pdf', 'printer1')
```

### Dependencies
Python packages: PyPDF2 >= 1.28.5, fpdf2 >= 2.5.6, python-barcode >= 0.14.0
External dependencies: DejaVu font, SumatraPdf.exe (both included in the package)

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "rpa-pdf",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "rpa,pdf",
    "author": "",
    "author_email": "Grzegorz Ziolo <grzegorz.ziolo@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/a2/e2/4a790d217d2682642b4391aef30ef14e6217ad51126fedb21e0fd81cd1b0/rpa-pdf-1.1.15.tar.gz",
    "platform": null,
    "description": "# RPA_PDF\r\nPython module delivers some actions to manipulate with PDF files.\r\nThe module is compatibile with the Robocorp.\r\n\r\n## Installation\r\nTo install the package run:\r\n\r\n```\r\npip install rpa_pdf\r\n```\r\n\r\n## Example\r\n### Generating pdf file from text\r\n```\r\nfrom rpa_pdf import Pdf\r\n\r\npdf = Pdf()\r\n\r\npdf.text_to_pdf('some text', 'c:/temp/somefile.pdf)\r\n```\r\n### Compress pdf file\r\n```\r\nfrom rpa_pdf import Pdf\r\n\r\npdf = Pdf()\r\n\r\npdf.compress('c:/temp/somefile.pdf')\r\n```\r\n### Add Code39 stamp\r\n```\r\nfrom rpa_pdf import Pdf\r\n\r\npdf = Pdf()\r\n\r\npdf.add_code39_stamp('c:/temp/input_file.pdf', 'c:/temp/output_file.pdf', '12345678')\r\n```\r\n### Merging pdf files\r\n```\r\nfrom rpa_pdf import Pdf\r\n\r\npdf = Pdf()\r\n\r\npdf.merge(['c:/temp/file1.pdf', 'c:/temp/file2.pdf'], 'c:/temp/merged.pdf')\r\n```\r\n### Add text stamp\r\n```\r\nfrom rpa_pdf import Pdf\r\n\r\npdf = Pdf()\r\n\r\npdf.add_text_stamp('c:/temp/input_file.pdf', 'c:/temp/output_file.pdf', 'some text')\r\n```\r\n### Print PDF document on the printer\r\n```\r\nfrom rpa_pdf import Pdf\r\n\r\npdf = Pdf()\r\n\r\npdf.print('c:/temp/document.pdf', 'printer1')\r\n```\r\n\r\n### Dependencies\r\nPython packages: PyPDF2 >= 1.28.5, fpdf2 >= 2.5.6, python-barcode >= 0.14.0\r\nExternal dependencies: DejaVu font, SumatraPdf.exe (both included in the package)\r\n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT)  Copyright \u00a9 2022 Ziolo, Grzegorz  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \u201cSoftware\u201d), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  Fork this project to create your own MIT license that you can always link to. ",
    "summary": "Pdf actions for RPA",
    "version": "1.1.15",
    "project_urls": {
        "Homepage": "https://github.com/21010/rpa-pdf"
    },
    "split_keywords": [
        "rpa",
        "pdf"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "346451b9c1d082f915de887cd446497b3a26b8492bcc71563cec560db7dfd499",
                "md5": "f372038332bcbac682a794c5c6ba2dc5",
                "sha256": "ca15a2c80df05fe7db33d97688428cc29176e33df5dd1cba8c92e79392b8a524"
            },
            "downloads": -1,
            "filename": "rpa_pdf-1.1.15-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f372038332bcbac682a794c5c6ba2dc5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 94472671,
            "upload_time": "2024-01-25T08:03:17",
            "upload_time_iso_8601": "2024-01-25T08:03:17.876282Z",
            "url": "https://files.pythonhosted.org/packages/34/64/51b9c1d082f915de887cd446497b3a26b8492bcc71563cec560db7dfd499/rpa_pdf-1.1.15-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2e24a790d217d2682642b4391aef30ef14e6217ad51126fedb21e0fd81cd1b0",
                "md5": "9e837ab653c9d8a0b9e49fcbfeccc6be",
                "sha256": "50514c3ba7c5450211154ae24a463cb4b67f0d3a1008d975df6d93e783174c5f"
            },
            "downloads": -1,
            "filename": "rpa-pdf-1.1.15.tar.gz",
            "has_sig": false,
            "md5_digest": "9e837ab653c9d8a0b9e49fcbfeccc6be",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 94187716,
            "upload_time": "2024-01-25T08:04:07",
            "upload_time_iso_8601": "2024-01-25T08:04:07.920014Z",
            "url": "https://files.pythonhosted.org/packages/a2/e2/4a790d217d2682642b4391aef30ef14e6217ad51126fedb21e0fd81cd1b0/rpa-pdf-1.1.15.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-25 08:04:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "21010",
    "github_project": "rpa-pdf",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "rpa-pdf"
}
        
Elapsed time: 0.17573s