PDF to PDF / HTTP API Reference

Conversion Format

input_format

The format of the input file. Specify the source format to ensure correct processing (HTML, PDF, image, etc.).

Allowed Values:
  • pdf

PDF Manipulation

action

Specify the PDF manipulation operation to perform on input files.

Default:
join
Allowed Values:
  • join — Merge multiple input PDFs into a single document in the order they were added.
  • shuffle — Interleave pages from input PDFs into a single document, taking one page at a time from each PDF in rotation.
  • extract — Create a new PDF containing only the specified pages from the input PDF.
  • delete — Remove the specified pages from the input PDF and output the remaining pages.

input_pdf_password

Password for decrypting encrypted input PDFs.

Availability:
Available for converters >= 20.10. See versioning.

page_range

Specify which pages to target. Supports individual pages, ranges, open-ended ranges, and combinations. The keyword "last" can be used to reference the final page.

Constraint:
  • A comma separated list of page numbers or ranges.
Examples:
  • Just the second page is selected: 2
  • The first and the third page are selected: 1,3
  • Everything except the first page is selected: 2-
  • Just the first 3 pages are selected: -3
  • Pages 3, 6, 7, 8 and 9 are selected: 3,6-9

Response

output_name

The file name of the created file (max 180 chars). If not specified, the name is auto-generated.

content_disposition

The value of the Content-Disposition HTTP header sent in the response.

Default:
attachment
Allowed Values:
  • attachment — Forces the browser to pop up a Save As dialog.
  • inline — The browser will open the result file in the browser window.

Watermark & Background

page_watermark

Apply the first page of a watermark PDF to every page of the output PDF. Use this to add transparent overlays like "DRAFT" stamps, security markings, or branding elements that appear on top of content. Ideal for confidential document marking or adding protective overlays.

Constraint:
  • The file must exist and not be empty.
Examples:
  • Multi-page PDF for watermarking: /home/user/john/watermark.pdf
  • Transparent PNG overlay: /home/user/john/watermark.png

page_watermark_url

Load a file from the specified URL and apply the file as a watermark to each page of the output PDF. A watermark can be either a PDF or an image. If a multi-page file (PDF or TIFF) is used, the first page is used as the watermark.

Constraint:
  • Supported protocols are http:// and https://.
Examples:
  • Download watermark from server: http://myserver.com/watermark.pdf
  • Remote logo watermark: http://myserver.com/watermark.png

multipage_watermark

Apply each page of a watermark PDF to the corresponding page of the output PDF. Use this for page-specific watermarks where different pages need different overlays - for example, different approval stamps per department.

If the watermark has fewer pages than the output, the last watermark page is repeated for remaining pages.

Constraint:
  • The file must exist and not be empty.
Examples:
  • Multi-page PDF for watermarking: /home/user/john/watermark.pdf
  • Transparent PNG overlay: /home/user/john/watermark.png

multipage_watermark_url

Load a file from the specified URL and apply each page of the file as a watermark to the corresponding page of the output PDF. A watermark can be either a PDF or an image.

Constraint:
  • Supported protocols are http:// and https://.
Examples:
  • Download watermark from server: http://myserver.com/watermark.pdf
  • Remote logo watermark: http://myserver.com/watermark.png

page_background

Apply the first page of a background PDF to every page of the output PDF. Use this to add letterheads, branded templates, or decorative backgrounds that appear behind your content. Backgrounds appear beneath content, while watermarks layer on top.

Perfect for adding company letterheads to reports or applying branded templates to dynamically generated content.

Constraint:
  • The file must exist and not be empty.
Examples:
  • PDF template background: /home/user/john/background.pdf
  • Image texture background: /home/user/john/background.png

page_background_url

Load a file from the specified URL and apply the file as a background to each page of the output PDF. A background can be either a PDF or an image. If a multi-page file (PDF or TIFF) is used, the first page is used as the background.

Constraint:
  • Supported protocols are http:// and https://.
Examples:
  • Download template background: http://myserver.com/background.pdf
  • Remote background pattern: http://myserver.com/background.png

multipage_background

Apply each page of a background PDF to the corresponding page of the output PDF. Use this for page-specific backgrounds where each page needs a different template - for example, different letterheads for front and back pages.

If the background has fewer pages than the output, the last background page is repeated for remaining pages.

Constraint:
  • The file must exist and not be empty.
Examples:
  • PDF template background: /home/user/john/background.pdf
  • Image texture background: /home/user/john/background.png

multipage_background_url

Load a file from the specified URL and apply each page of the file as a background to the corresponding page of the output PDF. A background can be either a PDF or an image.

Constraint:
  • Supported protocols are http:// and https://.
Examples:
  • Download template background: http://myserver.com/background.pdf
  • Remote background pattern: http://myserver.com/background.png

PDF Format

Miscellaneous values for PDF output.

linearize

Create linearized PDF. This is also known as Fast Web View. Use this to optimize PDFs for progressive download, allowing users to start viewing the first page while the rest downloads.

Default:
false
Allowed Values:
  • true, 1 or on
  • false, 0 or off

encrypt

Encrypt the PDF to prevent search engines from indexing the contents and add an extra layer of security. Use this for confidential documents, internal reports, or any content you do not want appearing in search results.

Combine with a password to require authentication for viewing, or just use encryption alone to prevent indexing while keeping the PDF publicly readable.

Default:
false
Allowed Values:
  • true, 1 or on
  • false, 0 or off

user_password

Protect the PDF with a user password to restrict who can open and view the document. Recipients must enter this password to view the PDF. Use this for confidential documents, sensitive data, or content distribution where you want to control access.

Combine with permission flags to restrict what users can do after opening.

Example:
  • Simple document password: 123456

owner_password

Protect the PDF with an owner password for administrative control. This password allows changing permissions, passwords, and document restrictions - like a master key. Use different user and owner passwords to give recipients restricted access while retaining full control.

The owner password should be kept confidential and different from the user password.

Example:
  • Admin access password: 123456

no_print

Disallow printing of the output PDF to protect sensitive content. Use this for confidential documents, copyrighted materials, or preview versions you want to restrict.

Default:
false
Allowed Values:
  • true, 1 or on
  • false, 0 or off

no_modify

Disallow modification of the output PDF to maintain document integrity. Use this for official documents, contracts, or records that should not be altered after creation. Prevents recipients from editing content, adding annotations, or extracting pages.

Default:
false
Allowed Values:
  • true, 1 or on
  • false, 0 or off

no_copy

Disallow text and graphics extraction from the output PDF to protect copyrighted content. Use this for ebooks, proprietary documents, or materials where you want to prevent easy copying and redistribution.

Default:
false
Allowed Values:
  • true, 1 or on
  • false, 0 or off

title

Set the title of the PDF that appears in PDF reader title bars and document properties. Use descriptive titles for better organization and searchability in document management systems.

This metadata helps users identify documents when multiple PDFs are open and improves accessibility for screen readers.

Example:
  • Personal CV title: My Resume

subject

Set the subject of the PDF to categorize or summarize the document content. Use this to add searchable metadata for document management systems, improve organization in large PDF libraries, or provide context about the document's purpose.

Appears in PDF properties dialog.

Example:
  • Technical position subject: CV - Software Developer

author

Set the author of the PDF for attribution and document tracking. Use this to identify who created the document, important for official documents, reports, or publications.

This metadata appears in PDF properties and helps with document management and version control.

Example:
  • Document author name: John Doe

keywords

Associate keywords with the document to improve searchability in document management systems. Use relevant terms that describe the content, making it easier to find documents later.

Separate multiple keywords with commas. Particularly useful for large document repositories or DAM systems.

Example:
  • Technical skills for searchability: software developer, Unix, databases

use_metadata_from

Use metadata (title, subject, author and keywords) from the n-th input PDF when merging multiple PDFs. Set to 1 to use the first PDF's metadata, 2 for the second, etc. Use this when combining PDFs and you want to preserve the metadata from a specific document rather than starting with blank metadata.

Set to 0 for no metadata.

Constraint:
  • Must be a positive integer or 0.
Example:
  • Use metadata from the first input PDF: 1

Viewer Preferences

These preferences specify how a PDF viewer should present the document. The preferences may be ignored by some PDF viewers.

page_layout

Control how pages appear when the PDF opens in viewers that respect these preferences. "single-page" for focused reading one page at a time. "one-column" for continuous scrolling like a web page. "two-column-left" for book-like layouts with odd pages on left (international standard). "two-column-right" for magazines with odd pages on right.

Allowed Values:
  • single-page — Display one page at a time.
  • one-column — Display the pages in one column.
  • two-column-left — Display the pages in two columns, with odd-numbered pages on the left.
  • two-column-right — Display the pages in two columns, with odd-numbered pages on the right.

page_mode

Control the initial display mode when the PDF opens. "full-screen" for presentations and kiosk displays where you want an immersive experience. "thumbnails" for long documents where visual page navigation is helpful. "outlines" for structured documents with bookmarks/table of contents.

Allowed Values:
  • full-screen — Full-screen mode.
  • thumbnails — Thumbnail images are visible.
  • outlines — Document outline is visible.

initial_zoom_type

Control how the PDF is initially zoomed when opened.

Allowed Values:
  • fit-width — The page content is magnified just enough to fit the entire width of the page within the window.
  • fit-height — The page content is magnified just enough to fit the entire height of the page within the window.
  • fit-page — The page content is magnified just enough to fit the entire page within the window both horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the page within the window in the other dimension.

initial_page

Display the specified page when the document is opened.

Constraint:
  • Must be a positive integer.
Example:
  • Start at second page: 2

initial_zoom

Specify the initial page zoom in percents when the document is opened.

Constraint:
  • Must be a positive integer.
Example:
  • Half-size zoom level: 50

hide_toolbar

Hide the viewer's toolbar when the PDF is opened to provide a cleaner, more focused reading experience. Use this for presentations, kiosk displays, or immersive reading where you want minimal UI distractions.

Default:
false
Allowed Values:
  • true, 1 or on
  • false, 0 or off

hide_menubar

Hide the viewer's menu bar when the PDF is opened for a cleaner interface. Use this for kiosk mode, presentations, or embedded PDFs where you want to minimize UI elements.

Default:
false
Allowed Values:
  • true, 1 or on
  • false, 0 or off

hide_window_ui

Hide user interface elements like scroll bars and navigation controls when the PDF opens. Use this for presentation mode, digital signage, or embedded PDFs where you want the most minimal interface possible.

Combines with other UI hiding options for full-screen immersive viewing.

Default:
false
Allowed Values:
  • true, 1 or on
  • false, 0 or off

fit_window

Resize the PDF viewer window to fit the size of the first displayed page when opened. Use this to ensure the PDF opens at an appropriate size rather than filling the entire screen.

Particularly useful for small documents, forms, or certificates that look better at actual size.

Default:
false
Allowed Values:
  • true, 1 or on
  • false, 0 or off

center_window

Position the PDF viewer window in the center of the screen when opened. Use this with window resizing to create a professional, centered display for forms, certificates, or small documents.

Improves the initial viewing experience by avoiding corner-positioned windows.

Default:
false
Allowed Values:
  • true, 1 or on
  • false, 0 or off

display_title

Display the title of the HTML document in the PDF viewer's title bar instead of the filename. Use this to show more descriptive titles when PDFs are opened - particularly useful when the filename is cryptic or auto-generated.

Improves user experience by showing meaningful document names.

Default:
false
Allowed Values:
  • true, 1 or on
  • false, 0 or off

right_to_left

Set the predominant reading order for text to right-to-left. This option has no direct effect on the document's contents or page numbering but can be used to determine the relative positioning of pages when displayed side by side or printed n-up.

Default:
false
Allowed Values:
  • true, 1 or on
  • false, 0 or off

Miscellaneous

debug_log

Turn on debug logging to troubleshoot conversion issues. Details about the conversion process, including resource loading, rendering steps, and error messages are stored in the debug log. Use this when conversions fail or produce unexpected results. The URL of the log is returned in the x-pdfcrowd-debug-log response header or available in conversion statistics.

Default:
false
Allowed Values:
  • true, 1 or on
  • false, 0 or off

tag

Tag the conversion with a custom value for tracking and analytics. Use this to categorize conversions by customer ID, document type, or business unit. The tag appears in conversion statistics. A value longer than 32 characters is cut off.

Example:
  • Track job in analytics: client-1234