Metadata-Version: 2.4
Name: pdf-cli
Version: 1.0
Summary: command line pdf tools
Project-URL: CI, https://github.com/saxix/pdfcli/actions
Project-URL: Homepage, https://github.com/saxix/pdfcli
Project-URL: Issues, https://github.com/saxix/pdfcli/issues
License: MIT License
        
        Copyright (c) 2010-2016, Stefano Apostolico (s.apostolico@gmail.com)
        
        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.
        
        Any use in a commercial product must be notified to the author by email
        indicating company name and product name
        
        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.
License-File: LICENSE
Keywords: pdf
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.9
Requires-Dist: click
Requires-Dist: cloup>=3.0.7
Requires-Dist: cryptography>=3.1
Requires-Dist: pypdf
Requires-Dist: pytesseract>=0.3.13
Description-Content-Type: text/markdown

# pdf-cli

[![Pypi](https://badge.fury.io/py/pdfcli.svg)](https://badge.fury.io/py/pdfcli)
[![Test](https://github.com/saxix/pdfcli/actions/workflows/test.yml/badge.svg)](https://github.com/saxix/pdfcli/actions/workflows/test.yml)
[![coverage](https://codecov.io/github/saxix/pdfcli/coverage.svg?branch=develop)](https://codecov.io/github/saxix/pdfcli?branch=develop)
[![Documentation](https://github.com/saxix/pdfcli/actions/workflows/docs.yml/badge.svg)](https://saxix.github.io/pdfcli/)
[![Supported Python versions](https://img.shields.io/pypi/pyversions/pdf-cli.svg)](https://pypi.org/project/pdf-cli/)


pdfcli is a command line utility to work with pdf.

It is able to split,join,reorder,extract text .

    $ pdf --help
    Usage: pdf [OPTIONS] COMMAND [ARGS]...

    Options:
      --version
      --help     Show this message and exit.

    Commands:
      decrypt    Remove password protection from PDF files.
      encrypt    Add password protection to PDF files.
      extract    extract one or multiple pages and build a new document.
      info       dump pdf information.
      join       join multiple pdf together in a single file.
      ocr        Extract text from PDF using OCR (requires tesseract)
      rotate     Rotate selected pages and outputs in new pdf
      split      split pdf into multiple single page file.
      watermark  use first page of pdf and add it as watermark to other document


### Examples

Extract pages 1, and from 5 to 9 one file for page

    pdf split source.pdf -p 1,5-9

Create a new pdf using pages 1, and from 5 to 9

    pdf extract source.pdf  -p 1,5-9 -o new.pdf
