PDF to PDF HTTP POST Examples

This page contains various examples of using the PDF to PDF API with HTTP POST. The examples are complete and fully functional. Read more about how to convert PDF to PDF with HTTP POST.

Basic examples

Basic examples

Join 4 local PDF files together to a PDF file

curl -f -u "demo:ce544b6ea52a5621fb9d55f8b542d14d" \
    -o "offer.pdf" \
    -F "input_format=pdf" \
    -F "f_1=@/path/to/cover.pdf" \
    -F "f_2=@/path/to/proposal.pdf" \
    -F "f_3=@/path/to/price.pdf" \
    -F "f_4=@/path/to/contact.pdf" \
    https://api.pdfcrowd.com/convert/20.10/

Add a watermark to a PDF file

curl -f -u "demo:ce544b6ea52a5621fb9d55f8b542d14d" \
    -o "company_offer.pdf" \
    -F "input_format=pdf" \
    -F "page_watermark=@/path/to/watermark.pdf" \
    -F "f_1=@/path/to/proposal.pdf" \
    https://api.pdfcrowd.com/convert/20.10/

Linearize a PDF file

curl -f -u "demo:ce544b6ea52a5621fb9d55f8b542d14d" \
    -o "linearized.pdf" \
    -F "input_format=pdf" \
    -F "linearize=true" \
    -F "f_1=@/path/to/not_linearized.pdf" \
    https://api.pdfcrowd.com/convert/20.10/

Advanced examples

Template rendering Examples