pdftool

Install latest/stable of pdftool

Ubuntu 16.04 or later?

Make sure snap support is enabled in your Desktop store.


Install using the command line

sudo snap install pdftool

Don't have snapd? Get set up for snaps.

Channel Version Published

pdftool, a program allowing to manipulate pdf files (use from the terminal)

# pdftool documentation


## codename : maimouna


## Overview

pdftool (version 1.0.2) is a versatile Linux command-line utility designed to manipulate PDF files. With pdftool, you can perform a wide range of actions such as compressing, rotating, numbering, concatenating, extracting, including, excluding, encrypting, decrypting, bursting, stamping, getting info ... on PDF files.


## Requirements

### Supported Actions

The following actions are supported by pdftool:

  • --extract
  • --number
  • --concat
  • --compress
  • --rotate
  • --include
  • --exclude
  • --stamp
  • --burst
  • --encrypt
  • --decrypt
  • --info
  • --doc
  • --help
  • --version

### Supported Options

These are the options that can be used with the actions:

  • --input or -i
  • --from or -f
  • --to or -t
  • --source or -s
  • --destination or -d
  • --after-page or -a
  • --level or -l
  • --cardinal or -c
  • --scope or -s
  • --output or -o

Note: When executing an action, at least one option must be provided (except for --help, --doc, and --version).

#### Example Usage

pdftool --extract --input <pdf-file.pdf> --from 1 --to 2 --output <new-pdf.pdf>


## Usage Synopsis

pdftool [action] || [action] [option] [argument(s)] [option] [argument(s)]


## Options and Examples

### --extract

Extract pages from a PDF file.

pdftool --extract --input <pdf-file.pdf> --from 1 --to 2 --output <new-pdf.pdf>

### --number

Add page numbers to a PDF.

pdftool --number --input <pdf-file.pdf> --output <new-pdf.pdf>

### --concat

Concatenate multiple PDF files.

pdftool --concat --input <pdf-file1.pdf> <pdf-file2.pdf> --output <new-pdf.pdf>

### --compress

Compress a PDF file.

pdftool --compress --input <pdf-file1.pdf> --level 4 --output <new-pdf.pdf>

### --rotate

Rotate pages in a PDF file.

pdftool --rotate --input <pdf-file1.pdf> --cardinal east --output <new-pdf.pdf>

### --include

Include a PDF file into another.

pdftool --include --source <pdf-file1.pdf> --destination <pdf-file2.pdf> --after-page 2 --output <new-pdf.pdf>

### --exclude

Exclude specific pages from a PDF.

pdftool --exclude --input <pdf-file1.pdf> --from 3 --to 5 --output <new-pdf.pdf>

### --stamp

Stamp a PDF with a specific scope.

pdftool --stamp --input <pdf-file1.pdf> --scope confidential --output <new-pdf.pdf>

### --burst

Burst a PDF file into individual pages.

pdftool --burst --input <pdf-file1.pdf> --output <new-template-name.pdf>

### --encrypt

Encrypt a PDF file.

pdftool --encrypt --input <pdf-file.pdf> --output <new-pdf-encrypted.pdf>

### --decrypt

Decrypt a PDF file.

pdftool --decrypt --input <pdf-file.pdf> --output <new-pdf-decrypted.pdf>

### --info

Get some info about an input PDF file.

pdftool --info --input <pdf-file.pdf>

### --doc

View the documentation.

pdftool --doc

### --help

Get help on using pdftool.

pdftool --help

### --version

Check the current version of pdftool.

pdftool --version


## Execution Assurance

To ensure successful execution, the command must follow the specified preconditions. Each action must be accompanied by the appropriate options and arguments in the correct sequence, as outlined above.


## Notes

pdftool depends on several external programs. These dependencies are included in the global package of pdftool. Once an action like --encrypt is called, the order of subsequent options is flexible.


## Authors and Contributors

Author:
Baldé Amadou (baldeuniversel@protonmail.com)

Contributor:
Diallo Ismaila (diallois@protonmail.com)


This documentation aims to provide comprehensive guidance on using pdftool effectively.

For any request, write to me via this email address : (baldeuniversel@protonmail.com)

The github link of the program : (https://github.com/baldeuniversel/pdf-tool.git)

Details for pdftool

License
  • GPL-2.0-or-later

Last updated
  • 10 September 2024 - latest/stable

Websites

Contact

Donations

Source code

Report a bug

Report a Snap Store violation

Share this snap

Generate an embeddable card to be shared on external websites.


Install pdftool on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.


Where people are using pdftool

Users by distribution (log)

Ubuntu 24.04
Ubuntu 24.10
Ubuntu 22.04
Ubuntu 18.04
Ubuntu 20.04
Ubuntu 23.10