PDF.co Web API (Application Programming Interface)

Get Your Free API Key

Supported Formats

json

Errors

Code Description
400 bad input parameters
401 unauthorized
403 not enough credits
405 Timeout error. To process large documents or files please use asynchronous mode ( set async parameter to true) and then check the status using /job/check endpoint. If file contains many pages then specify a page range using pages parameter. The number of pages of the document can be obtained using the endpoint /pdf/info

Params

Param name Description
encrypt
optional

Enable encryption for output file.

  • Must be one of: true, false.

inline
optional
  • Must be one of: true, false.

file
optional

Source PDF file.

url
optional

URL of the source PDF file.

  • Must be a String

profiles
optional
  • Must be a String

name
optional

File name for generated output.

  • Must be a String

async
optional

Runs processing asynchronously. Returns JobId that you may use with /job/check to check state of the processing (possible states: InProgress, Failed, Aborted and Finished)

  • Must be one of: true, false.

password
optional

Password of PDF file

  • Must be a String

rect
optional
  • Must be a String

unwrap
optional

Unwrap lines into a single line within table cells when lineGrouping is enabled.

  • Must be a String

pages
optional

Comma-separated list of page indices (or ranges) to process. Leave empty for all pages. Example: “0,2-5,7-”.

  • Must be a String

lineGrouping
optional

Line grouping within table cells. Add lineGrouping=1 to enable the grouping.

  • Must be a String