Important: This document is for the beta version of the new Pdfcrowd API. Use this documentation for the stable API version.

PDF to PDF - Command Line Tool

Installation

You can install the application from PyPI
 $ pip install pdfcrowd

You can learn more install options here.

The package installs tools for all Pdfcrowd converters.

Authentication

Authentication is needed in order to use the Pdfcrowd API. The credentials used for accessing the API are your Pdfcrowd username and the API key. You can find the API key in your account page.

Getting Started

Join 4 local PDF files together to a PDF file

pdf2pdf -user-name "username" -api-key "apikey" \
    /path/to/cover.pdf \
    /path/to/proposal.pdf \
    /path/to/price.pdf \
    /path/to/contact.pdf > offer.pdf

pdf2pdf Manual

Conversion from PDF to PDF.

usage: pdf2pdf [options] source

Conversion from PDF to PDF.

positional arguments:
  source                Input files used for a conversion.

optional arguments:
  -user-name USER_NAME  Your user name at pdfcrowd.com.
  -api-key API_KEY      Your API key at pdfcrowd.com.
  -action ACTION        Specifies the action to be performed on the input
                        PDFs. Allowed values are join, shuffle.
  -debug-log            Turn on the debug logging.
  -use-http             Specifies if the client communicates over HTTP or
                        HTTPS with Pdfcrowd API.
  -user-agent USER_AGENT
                        Set a custom user agent HTTP header. It can be usefull
                        if you are behind some proxy or firewall. The user
                        agent string.
  -proxy PROXY          Specifies an HTTP proxy that the API client library
                        will use to connect to the internet. PROXY must
                        contain 4 values separated by a semicolon. The proxy
                        hostname. The proxy port. The username. The password.
  -retry-count RETRY_COUNT
                        Specifies the number of retries when the 502 HTTP
                        status code is received. The 502 status code indicates
                        a temporary network issue. This feature can be
                        disabled by setting to 0. Number of retries wanted.

produced by: www.pdfcrowd.com