Passport Loader

PassportPDF REST API Reference

PassportPDF API (1.1.0)

Another brick in the cloud. | Download OpenAPI specification

Introduction

PassportPDF API is a REST API that lets you perform complex operations on documents and images easily. You may consume the API by using one of our many open source SDKS available in a variety of languages, or any REST client by sending your requests to the appropriate endpoints.

Only HTTPS requests are accepted, and supported TLS versions range from 1.0 to 1.3.

Authentication

After signing up on PassportPDF, you will be able to see and manage information about your passports. A passport contains a certain number of tokens, depending on the plan associated with it, which will be consumed as you make use of the API.

Each available operation has a base token cost, and a charge method which may vary depending on the type of service provided. You will find these information in the documentation of every operation listed on this page.

ApiKey

Your passport number acts as an API key and needs to be provided with every request.

Security Scheme Type: API Key
Header parameter name: X-PassportPDF-API-Key

Errors

PassportPDF API does not use specific HTTP codes to indicate when a request could not be fullfiled, but instead returns a normal 200 response contaning JSON serialized detailed information about the reason of the failure.

Every response returned by an operation contains an Error in its definition, and its presence in a response indicates that something went wrong. It is therefore crucial for a client to always check that a JSON response does not contain a serialized Error object before proceeding further.

Note that no token is charged by the API whenever an error occurs.

The Error model

Among the information given by the Error model, ResultCode specifies a value of the PassportPDFStatus enumeration, that defines a first level of error information. InternalErrorId defines a unique identifier for the error, which comes very handy for us to troubleshoot any issue you may encounter quickly.

object (Error)

Contains all the information related to an error which has occurred.

{ }

Efficiency considerations

Multipart upload/download is available and lets you directly stream a file to/from the API. For example, in the PDF APIs, LoadDocument/LoadDocumentMultipart and SaveDocument/SaveDocumentToFile may be used to upload/download a document using respectively binary data serialization and streaming multipart HTTP requests.

The second approach should be favored when dealing with large files, as it will be much more efficient in that context.

Config

All the configuration-related APIs.

ConfigGetAPIVersion

Gets the current version of the API.
No token is charged for this operation.

Responses

Response Schema:
string

Response samples

Content type
No sample

ConfigGetMaxAllowedContentLength

Gets the maximal length of a request content, in bytes.
No token is charged for this operation.

Responses

Response Schema:
object (Error)

Contains all the information related to an error which has occurred.

Value
integer <int64>

The response value.

Response samples

Content type
No sample

ConfigGetSuggestedClientTimeout

Gets the suggested client API timeout, in milliseconds.
No token is charged for this operation.

Responses

Response Schema:
object (Error)

Contains all the information related to an error which has occurred.

Value
integer <int32>

The response value.

Response samples

Content type
No sample

ConfigGetSuggestedMaxClientThreads

Gets the suggested maximum number of threads to be used simultaneously by a client application.
No token is charged for this operation.

Responses

Response Schema:
object (Error)

Contains all the information related to an error which has occurred.

Value
integer <int32>

The response value.

Response samples

Content type
No sample

ConfigGetSupportedFonts

Gets the list of supported fonts for text drawing operations.
No token is charged for this operation.

Responses

Response Schema:
Array
object (Font)

Represents a font.

Response samples

Content type
No sample

ConfigGetSupportedOCRLanguages

Gets the list of supported languages for OCR.
No token is charged for this operation.

Responses

Response Schema:
object (Error)

Contains all the information related to an error which has occurred.

Value
Array of strings or null

The response value.

Response samples

Content type
No sample

DocumentAI

All the document AI-related APIs. (Preview)

AnalyzeDocument

Performs AI analysis on any kind of document, of any format, from any source. The response provides extraction of structured data such as key-value pairs and tables as well as complete OCR.
20 tokens are charged per page.
Request Body schema:
required

An AnalyzeDocumentParameters object specifying the parameters of the action.

object (AnalyzeDocumentParameters)

Represents the parameters for an AnalyzeDocument action.

Responses

Response Schema:
object (AnalyzeDocumentResponse)

Represents the response to a document analysis action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

QueryDocument

- This is a preview action - Produces an answer to an arbitrary text question related to a document, of any format, which can be provided from any source. The response provides the answer to the question.
20 tokens are charged per request.
Request Body schema:
required

An QueryDocumentParameters object specifying the parameters of the action.

object (QueryDocumentParameters)

Represents the parameters for an QueryDocument action.

Responses

Response Schema:
object (QueryDocumentResponse)

Represents the response to a document query action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

SmartRedaction

Performs smart redaction on any kind of document, of any format, from any source. The response provides detected marks and optionally the redacted document, as PDF format.
20 tokens are charged per page.
Request Body schema:
required

An SmartRedactionParameters object specifying the parameters of the action.

Immediate
boolean
Default: true

Specifies whether the redaction marks must be immediately. If set to false, only detected redaction marks will be produced in the response.

PageRange
string or null
Default: "*"

Specifies the page or the page range to be processed.

RedactCreditCardNumbers
boolean
Default: false

Specifies whether the engine must redact credit card numbers.

RedactEmailAddresses
boolean
Default: false

Specifies whether the engine must redact email addresses.

RedactIBANs
boolean
Default: false

Specifies whether the engine must redact IBANs.

RedactIPAddresses
boolean
Default: false

Specifies whether the engine must redact IP addresses.

RedactPhoneNumbers
boolean
Default: false

Specifies whether the engine must redact phone numbers.

RedactPostalAddresses
boolean
Default: false

Specifies whether the engine must redact postal addresses.

RedactSocialSecurityNumbers
boolean
Default: false

Specifies whether the engine must redact social security numbers.

RedactURIs
boolean
Default: false

Specifies whether the engine must redact URIs.

RedactVatIDs
boolean
Default: false

Specifies whether the engine must redact VAT identifiers.

RedactVehicleIdentificationNumbers
boolean
Default: false

Specifies whether the engine must redact vehicle identification numbers.

Responses

Response Schema:
object (SmartRedactionResponse)

Represents the response to a document analysis action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

Document

All the document-related APIs.

DocumentClose

Closes a previously uploaded document.
No token is charged for this operation.
Request Body schema:
required

A DocumentCloseParameters object specifying the parameters of the action.

object (DocumentCloseParameters)

Represents the parameters for a close document action.

Responses

Response Schema:
object (DocumentCloseResponse)

Represents the response to a close document action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

DocumentGetPreview

Gets the format, the page count and a thumbnail of a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A GetDocumentPreviewParameters object specifying the parameters of the action.

object (GetDocumentPreviewParameters)

Represents the parameters for a get document preview action.

Responses

Response Schema:
DocumentFormat
string
Default: "UNKNOWN"
Enum: "UNKNOWN" "ICO" "BMP" "WBMP" "JPEG" "GIF" "PNG" "TIFF" "FAXG3" "EXIF" "EMF" "WMF" "JNG" "KOALA" "IFF" "MNG" "PCD" "PCX" "PBM" "PBMRAW" "PFM" "PGM" "PGMRAW" "PPM" "PPMRAW" "RAS" "TARGA" "PSD" "CUT" "XBM" "XPM" "DDS" "HDR" "SGI" "EXR" "J2K" "JP2" "PICT" "RAW" "WEBP" "DICOM" "JBIG" "JBIG2" "WSQ" "PDF" "SVG" "TXT" "DOCX" "RTF" "DXF" "ODT" "XLSX" "PPTX" "DOC" "XLS" "PPT" "HTML" "HEIF" "MSG" "EML" "PostScript"

Specifies the format of a document.

PageCount
integer <int32>

Specifies the page count of the document.

ThumbnailData
string or null <byte>

Specifies the data of a thumbnail from the first page of the document, in PNG format.

Request samples

Content type
{ }

Response samples

Content type
No sample

DocumentLoad

Loads the provided document file.
1 token is charged per 10 MB of the input file size.
Request Body schema:
required

A LoadDocumentFromByteArrayParameters object specifying the parameters of the action.

object (LoadDocumentFromByteArrayParameters)

Represents the parameters for an image loading request.

Responses

Response Schema:
DocumentFormat
string
Default: "UNKNOWN"
Enum: "UNKNOWN" "ICO" "BMP" "WBMP" "JPEG" "GIF" "PNG" "TIFF" "FAXG3" "EXIF" "EMF" "WMF" "JNG" "KOALA" "IFF" "MNG" "PCD" "PCX" "PBM" "PBMRAW" "PFM" "PGM" "PGMRAW" "PPM" "PPMRAW" "RAS" "TARGA" "PSD" "CUT" "XBM" "XPM" "DDS" "HDR" "SGI" "EXR" "J2K" "JP2" "PICT" "RAW" "WEBP" "DICOM" "JBIG" "JBIG2" "WSQ" "PDF" "SVG" "TXT" "DOCX" "RTF" "DXF" "ODT" "XLSX" "PPTX" "DOC" "XLS" "PPT" "HTML" "HEIF" "MSG" "EML" "PostScript"

Specifies the format of a document.

FileId
string or null

Specifies the file identifier of the loaded document.

PageCount
integer <int32>

Specifies the number of pages into the loaded document.

ThumbnailData
string or null <byte>

Specifies the data of a thumbnail from the first page of the document, in PNG format. Only applicable if the GetPreview field of the request has been set to true.

Request samples

Content type
{ }

Response samples

Content type
No sample

DocumentLoadFromURI

Loads the provided document file from an URI.
1 token is charged per 10 MB of the input file size.
Request Body schema:
required

A LoadDocumentFromURIParameters object specifying the parameters of the action.

object (LoadDocumentFromURIParameters)

Represents the parameters for an image loading request.

Responses

Response Schema:
DocumentFormat
string
Default: "UNKNOWN"
Enum: "UNKNOWN" "ICO" "BMP" "WBMP" "JPEG" "GIF" "PNG" "TIFF" "FAXG3" "EXIF" "EMF" "WMF" "JNG" "KOALA" "IFF" "MNG" "PCD" "PCX" "PBM" "PBMRAW" "PFM" "PGM" "PGMRAW" "PPM" "PPMRAW" "RAS" "TARGA" "PSD" "CUT" "XBM" "XPM" "DDS" "HDR" "SGI" "EXR" "J2K" "JP2" "PICT" "RAW" "WEBP" "DICOM" "JBIG" "JBIG2" "WSQ" "PDF" "SVG" "TXT" "DOCX" "RTF" "DXF" "ODT" "XLSX" "PPTX" "DOC" "XLS" "PPT" "HTML" "HEIF" "MSG" "EML" "PostScript"

Specifies the format of a document.

FileId
string or null

Specifies the file identifier of the loaded document.

PageCount
integer <int32>

Specifies the number of pages into the loaded document.

ThumbnailData
string or null <byte>

Specifies the data of a thumbnail from the first page of the document, in PNG format. Only applicable if the GetPreview field of the request has been set to true.

Request samples

Content type
{ }

Response samples

Content type
No sample

DocumentLoadMultipart

Loads the provided document file using Multipart Upload.
1 token is charged per 10 MB of the input file size.
Request Body schema: multipart/form-data
fileData
required
string <binary>

Responses

Response Schema:
DocumentFormat
string
Default: "UNKNOWN"
Enum: "UNKNOWN" "ICO" "BMP" "WBMP" "JPEG" "GIF" "PNG" "TIFF" "FAXG3" "EXIF" "EMF" "WMF" "JNG" "KOALA" "IFF" "MNG" "PCD" "PCX" "PBM" "PBMRAW" "PFM" "PGM" "PGMRAW" "PPM" "PPMRAW" "RAS" "TARGA" "PSD" "CUT" "XBM" "XPM" "DDS" "HDR" "SGI" "EXR" "J2K" "JP2" "PICT" "RAW" "WEBP" "DICOM" "JBIG" "JBIG2" "WSQ" "PDF" "SVG" "TXT" "DOCX" "RTF" "DXF" "ODT" "XLSX" "PPTX" "DOC" "XLS" "PPT" "HTML" "HEIF" "MSG" "EML" "PostScript"

Specifies the format of a document.

FileId
string or null

Specifies the file identifier of the loaded document.

PageCount
integer <int32>

Specifies the number of pages into the loaded document.

ThumbnailData
string or null <byte>

Specifies the data of a thumbnail from the first page of the document, in PNG format. Only applicable if the GetPreview field of the request has been set to true.

Response samples

Content type
No sample

DocuVieware

All the DocuVieware-related APIs. DocuViewere also includes a JavaScript client API fully documented here: https://www.docuvieware.com/guides/aspnet/JavaScript%20API%20Overview.html

DocuViewareGetControl

Gets the HTML dom of a DocuVieware control.
3 tokens are charged for each document loaded through the delivered DocuVieware control, as well as 1 token per 10 MB of their total size.
Request Body schema:
required

A DocuViewareGetControlParameters object specifying the parameters of the action.

object (DocuViewareGetControlParameters)

Represents the parameters for a GetControl action.

Responses

Response Schema:
Element
string or null

The element content, as HTML format.

Request samples

Content type
{ }

Response samples

Content type
No sample

DocuViewareGetVersion

Get the DocuVieware engine version.
No token is charged for this operation.

Responses

Response Schema:
object (Error)

Contains all the information related to an error which has occurred.

Value
string or null

The response value.

Response samples

Content type
No sample

DocuViewareSave

Saves the document being handled by a specific DocuVieware control, in its current state.
1 token is charged per request.
Request Body schema:
required

A DocuViewareSaveParameters object specifying the parameters of the action.

object (DocuViewareSaveParameters)

Represents the parameters for a Save action.

Responses

Response Schema:
Content
string or null <byte>

Specifies the data of the produced file.

ContentType
string or null

Specifies content type of the produced data.

Request samples

Content type
{ }

Response samples

Content type
No sample

Image

All the image-related APIs. You can use ImageGetSupportedFileExtensions to obtain all the file extensions which can be loaded through these APIs.

ImageAdjust

Adjusts a previously uploaded image.
1 token is charged per page.
Request Body schema:
required

An ImageAdjustParameters object specifying the parameters for the action.

object (ImageAdjustParameters)

Represents the parameters for an image adjustment action.

Responses

Response Schema:
object (ImageAdjustResponse)

Represents the response to an image adjustment action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageAutoCrop

Automatically crops a previously uploaded image.
2 tokens are charged per page.
Request Body schema:
required

An ImageAutoCropParameters object specifying the parameters for the action.

object (ImageAutoCropParameters)

Represents the parameters for an image auto cropping action.

Responses

Response Schema:
object (ImageAutoCropResponse)

Represents the response to an image auto cropping action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageCleanupDocument

Cleanup a previously uploaded image.
1 token is charged per page.
Request Body schema:
required

An ImageCleanupDocumentParameters object specifying the parameters for the action.

object (ImageCleanupDocumentParameters)

Represents the parameters for a cleanup document action.

Responses

Response Schema:
object (ImageCleanupDocumentResponse)

Represents the response to a cleanup document action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageCloneRegions

Clones regions from a previously uploaded image into new images.
1 token is charged per page.
Request Body schema:
required

An ImageCloneRegionsParameters object specifying the parameters of the action.

object (ImageCloneRegionsParameters)

Represents the parameters for a clone image region action.

Responses

Response Schema:
Array of objects or null (ClonedImageRegion)

The images created as a result of the action.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageClose

Closes a previously uploaded image.
No token is charged for this operation.
Request Body schema:
required

An ImageCloseParameters object specifying the parameters of the action.

object (ImageCloseParameters)

Represents the parameters for a close image action.

Responses

Response Schema:
object (ImageCloseResponse)

Represents the response to a close image action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageConvertColorDepth

Converts the color depth of a previously uploaded image.
1 token is charged per page.
Request Body schema:
required

An ImageConvertColorDepthParameters object specifying the parameters for the action.

object (ImageConvertColorDepthParameters)

Represents the parameters for an image color depth change action.

Responses

Response Schema:
object (ImageConvertColorDepthResponse)

Represents the response to an image convert color depth action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageCrop

Crops a previously uploaded image.
2 tokens are charged per page.
Request Body schema:
required

An ImageCropParameters object specifying the parameters for the action.

object (ImageCropParameters)

Represents the parameters for an image crop action.

Responses

Response Schema:
object (ImageCropResponse)

Represents the response to an image crop action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageDeletePage

Deletes a page range from a previously uploaded image.
1 token is charged per request.
Request Body schema:
required

An ImageDeletePageParameters object specifying the parameters of the action.

object (ImageDeletePageParameters)

Represents the parameters for a delete page action.

Responses

Response Schema:
object (ImageDeletePageResponse)

Represents the response to a delete page action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageDetectBlankPages

Detects the blank page(s) from a previously uploaded image and offers to remove them.
1 token is charged per page.
Request Body schema:
required

An ImageDetectBlankPagesParameters object specifying the parameters of the action.

object (ImageDetectBlankPagesParameters)

Represents the parameters for a detect blank pages action.

Responses

Response Schema:
DetectedBlankPages
Array of integers or null <int32>

Specifies the number of the pages which have been detected to be blank.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageDetectColor

Performs color detection on a previously uploaded image.
2 tokens are charged per page.
Request Body schema:
required

An ImageDetectColorParameters object specifying the parameters for the action.

object (ImageDetectColorParameters)

Represents the parameters for an image color detection action.

Responses

Response Schema:
Array of objects or null (ColorDetectionResult)

Specifies the result of the color detection operation performed on each page.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageDetectPageOrientation

Detects the orientation of the page(s) of a previously uploaded image and offers to automatically rotate them.
1 token is charged per page.
Request Body schema:
required

An ImagedetectPageOrientationParameters object specifying the parameters of the action.

object (ImageDetectPageOrientationParameters)

Represents the parameters for a detect page orientation action.

Responses

Response Schema:
Array of objects or null (PageOrientationInfo)

Holds information about the detected page orientations.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageFilter

Applies filters to a previously uploaded image.
1 token is charged per page.
Request Body schema:
required

An ImageFilterParameters object specifying the parameters for the action.

object (ImageFilterParameters)

Represents the parameters for an image filtering action.

Responses

Response Schema:
object (ImageFilterResponse)

Represents the response to an image filtering action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageGetPageThumbnail

Gets a thumbnail of each page within the provided page range from a previously uploaded image.
1 token is charged per page.
Request Body schema:
required

A PDFGetPageThumbnailParameters object specifying the parameters of the action.

object (ImageGetPageThumbnailParameters)

Represents the parameters for a get page thumbnail action.

Responses

Response Schema:
Array of objects or null (PageImage)

Contains all the obtained thumbnails.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageGetSupportedFileExtensions

Gets the supported file extensions by the image loading actions.
No token is charged for this operation.

Responses

Response Schema:
object (Error)

Contains all the information related to an error which has occurred.

Value
Array of strings or null

The response value.

Response samples

Content type
No sample

ImageLoad

Loads the provided image file. Supported image formats can be retrieved by the GetSupportedImageFileExtensions action.
1 token is charged per 10 MB of the input file size.
Request Body schema:
required

A LoadImageFromByteArrayParameters object specifying the parameters of the action.

object (LoadImageFromByteArrayParameters)

Represents the parameters for an image loading request.

Responses

Response Schema:
FileId
string or null

Specifies the file identifier of the loaded image document.

FileSize
integer <int64>

Specifies the size of the loaded image file.

ImageFormat
string
Default: "UNKNOWN"
Enum: "UNKNOWN" "ICO" "BMP" "WBMP" "JPEG" "GIF" "PNG" "TIFF" "FAXG3" "EXIF" "EMF" "WMF" "JNG" "KOALA" "IFF" "MNG" "PCD" "PCX" "PBM" "PBMRAW" "PFM" "PGM" "PGMRAW" "PPM" "PPMRAW" "RAS" "TARGA" "PSD" "CUT" "XBM" "XPM" "DDS" "HDR" "SGI" "EXR" "J2K" "JP2" "PICT" "RAW" "WEBP" "DICOM" "JBIG" "JBIG2" "WSQ" "PDF" "SVG" "TXT" "DOCX" "RTF" "DXF" "ODT" "XLSX" "PPTX" "DOC" "XLS" "PPT" "HTML" "HEIF" "MSG" "EML" "PostScript"

Specifies the format of a document.

PageCount
integer <int32>

Specifies the number of pages into the loaded image.

ThumbnailData
string or null <byte>

Specifies the data of a thumbnail from the first page of the document, in PNG format. Only applicable if the GetPreview field of the request has been set to true.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageLoadMultipart

Loads the provided image file using Multipart Upload. Supported image formats can be retrieved by the GetSupportedImageFileExtensions action.
1 token is charged per 10 MB of the input file size.
Request Body schema: multipart/form-data
fileData
required
string <binary>

Responses

Response Schema:
FileId
string or null

Specifies the file identifier of the loaded image document.

FileSize
integer <int64>

Specifies the size of the loaded image file.

ImageFormat
string
Default: "UNKNOWN"
Enum: "UNKNOWN" "ICO" "BMP" "WBMP" "JPEG" "GIF" "PNG" "TIFF" "FAXG3" "EXIF" "EMF" "WMF" "JNG" "KOALA" "IFF" "MNG" "PCD" "PCX" "PBM" "PBMRAW" "PFM" "PGM" "PGMRAW" "PPM" "PPMRAW" "RAS" "TARGA" "PSD" "CUT" "XBM" "XPM" "DDS" "HDR" "SGI" "EXR" "J2K" "JP2" "PICT" "RAW" "WEBP" "DICOM" "JBIG" "JBIG2" "WSQ" "PDF" "SVG" "TXT" "DOCX" "RTF" "DXF" "ODT" "XLSX" "PPTX" "DOC" "XLS" "PPT" "HTML" "HEIF" "MSG" "EML" "PostScript"

Specifies the format of a document.

PageCount
integer <int32>

Specifies the number of pages into the loaded image.

ThumbnailData
string or null <byte>

Specifies the data of a thumbnail from the first page of the document, in PNG format. Only applicable if the GetPreview field of the request has been set to true.

Response samples

Content type
No sample

ImageReadBarcodes

Reads barcodes from a previously uploaded image.
2 tokens are charged per page.
Request Body schema:
required

An ImageReadBarcodesParameters object specifying the parameters of the action.

object (ImageReadBarcodesParameters)

Represents the parameters for a read barcode action.

Responses

Response Schema:
Array of objects or null (BarcodeInfo)

Specifies the information of the different barcodes which have been read.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageReadMICR

Performs MICR (Magnetic Ink Character Recognition) recognition on any kind of document, of any format, from any source.
1 token is charged per page.
Request Body schema:
required

An ImageReadMICRParameters object specifying the parameters of the action.

object (ImageReadMICRParameters)

Represents the parameters for a read MICR action.

Responses

Response Schema:
Array of objects or null (MICRResult)

Holds the results of the MICR operations.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageReadMRZ

Performs MRZ (Machine-Readable Zone) recognition on any kind of document, of any format, from any source.
1 token is charged per page.
Request Body schema:
required

An ImageReadMRZParameters object specifying the parameters of the action.

object (ImageReadMRZParameters)

Represents the parameters for a read MRZ action.

Responses

Response Schema:
Array of objects or null (MRZResult)

Holds the results of the MRZ recognition operations.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageResize

Resizes a previously uploaded image.
2 tokens are charged per page.
Request Body schema:
required

An ImageResizeParameters object specifying the parameters for the action.

object (ImageResizeParameters)

Represents the parameters for an image resize action.

Responses

Response Schema:
object (ImageResizeResponse)

Represents the response to an image resize action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageRotate

Rotates and/or flips a previously uploaded image.
1 token is charged per page.
Request Body schema:
required

An ImageRotateParameters object specifying the parameters for the action.

object (ImageRotateParameters)

Represents the parameters for an image rotate action.

Responses

Response Schema:
object (ImageRotateResponse)

Represents the response to an image rotate action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageSaveAsJPEG

Saves a previously uploaded image as JPEG, and sends the file data in a JSON-serialized object.
1 token is charged per page.
Request Body schema:
required

An ImageSaveAsJPEGParameters object specifying the parameters of the action.

object (ImageSaveAsJPEGParameters)

Represents the parameters for a save as JPEG action.

Responses

Response Schema:
Array of objects or null (PageImage)

The image(s) saved as JPEG.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageSaveAsJPEG2000

Saves a previously uploaded image as JPEG2000, and sends the file data in a JSON-serialized object.
1 token is charged per page.
Request Body schema:
required

An ImageSaveAsJPEG2000Parameters object specifying the parameters of the action.

object (ImageSaveAsJPEG2000Parameters)

Represents the parameters for a save as JPEG2000 action.

Responses

Response Schema:
Array of objects or null (PageImage)

The image(s) saved as JPEG2000.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageSaveAsJPEG2000File

Saves a previously uploaded image as JPEG2000, and streams the file binary data to the response (this is the most efficient download method).
1 token is charged per page.
Request Body schema:
required

An ImageSaveAsJPEGParameters object specifying the parameters of the action.

object (ImageSaveAsJPEG2000Parameters)

Represents the parameters for a save as JPEG2000 action.

Responses

Response Schema:
string <binary>

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageSaveAsJPEGFile

Saves a previously uploaded image as JPEG, and streams the file binary data to the response (this is the most efficient download method).
1 token is charged per page.
Request Body schema:
required

An ImageSaveAsJPEGParameters object specifying the parameters of the action.

object (ImageSaveAsJPEGParameters)

Represents the parameters for a save as JPEG action.

Responses

Response Schema:
string <binary>

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageSaveAsPDF

Saves a previously uploaded image as PDF, and sends the file data in a JSON-serialized object.
1 token is charged per page.
Request Body schema:
required

An ImagesaveAsPDFParameters object specifying the parameters of the action.

object (ImageSaveAsPDFParameters)

Represents the parameters for a save as PDF action.

Responses

Response Schema:
FileName
string or null

Specifies the name of the saved document.

PdfData
string or null <byte>

Specifies the data of the produced PDF.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageSaveAsPDFFile

Saves a previously uploaded image as PDF, and streams the file binary data to the response (this is the most efficient download method).
1 token is charged per page.
Request Body schema:
required

An ImagesaveAsPDFParameters object specifying the parameters of the action.

object (ImageSaveAsPDFParameters)

Represents the parameters for a save as PDF action.

Responses

Response Schema:
string <binary>

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageSaveAsPDFMRC

Saves a previously uploaded image as PDF using MRC compression, and sends the file data in a JSON-serialized object.
4 tokens are charged per page.
Request Body schema:
required

An ImagesaveAsPDFMRCParameters object specifying the parameters of the action.

object (ImageSaveAsPDFMRCParameters)

Represents the parameters for a save as PDF MRC action.

Responses

Response Schema:
FileName
string or null

Specifies the name of the saved document.

PdfData
string or null <byte>

Specifies the data of the produced PDF.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageSaveAsPDFMRCFile

Saves a previously uploaded image as PDF using MRC compression, and streams the file binary data to the response (this is the most efficient download method).
4 tokens are charged per page.
Request Body schema:
required

An ImagesaveAsPDFMRCParameters object specifying the parameters of the action.

object (ImageSaveAsPDFMRCParameters)

Represents the parameters for a save as PDF MRC action.

Responses

Response Schema:
string <binary>

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageSaveAsPNG

Saves a previously uploaded image as PNG, and sends the file data in a JSON-serialized object.
1 token is charged per page.
Request Body schema:
required

An ImageSaveAsPNGParameters object specifying the parameters of the action.

object (ImageSaveAsPNGParameters)

Represents the parameters for a save as PNG action.

Responses

Response Schema:
Array of objects or null (PageImage)

The image(s) saved as PNG.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageSaveAsPNGFile

Saves a previously uploaded image as PNG, and streams the file binary data to the response (this is the most efficient download method).
1 token is charged per page.
Request Body schema:
required

An ImageSaveAsPNGParameters object specifying the parameters of the action.

object (ImageSaveAsPNGParameters)

Represents the parameters for a save as PNG action.

Responses

Response Schema:
string <binary>

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageSaveAsTIFF

Saves a previously uploaded image as TIFF, and sends the file data in a JSON-serialized object.
1 token is charged per page.
Request Body schema:
required

An ImageSaveAsTIFFParameters object specifying the parameters of the action.

object (ImageSaveAsTIFFParameters)

Represents the parameters for a save as TIFF action.

Responses

Response Schema:
Array of objects or null (PageImage)

The image(s) saved as TIFF.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageSaveAsTIFFFile

Saves a previously uploaded image as TIFF, and streams the file binary data to the response (this is the most efficient download method).
1 token is charged per page.
Request Body schema:
required

An ImageSaveAsTIFFParameters object specifying the parameters of the action.

object (ImageSaveAsTIFFParameters)

Represents the parameters for a save as TIFF action.

Responses

Response Schema:
string <binary>

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageSaveAsTIFFMultipage

Saves a previously uploaded image as multipage TIFF, and sends the file data in a JSON-serialized object.
1 token is charged per page.
Request Body schema:
required

An ImageSaveAsTIFFMultipageParameters object specifying the parameters of the action.

object (ImageSaveAsTIFFMultipageParameters)

Represents the parameters for a save as TIFF multipage action.

Responses

Response Schema:
FileName
string or null

Specifies the name of the saved document.

ImageData
string or null <byte>

Specifies the data of the produced multipage TIFF.

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageSaveAsTIFFMultipageFile

Saves a previously uploaded image as multipage TIFF, and streams the file binary data to the response (this is the most efficient download method).
1 token is charged per page.
Request Body schema:
required

An ImageSaveAsTIFFMultipageParameters object specifying the parameters of the action.

object (ImageSaveAsTIFFMultipageParameters)

Represents the parameters for a save as TIFF multipage action.

Responses

Response Schema:
string <binary>

Request samples

Content type
{ }

Response samples

Content type
No sample

ImageSwapPages

Swaps two pages from a previously uploaded image.
1 token is charged per request.
Request Body schema:
required

An ImageSwapPagesParameters object specifying the parameters of the action.

object (ImageSwapPagesParameters)

Represents the parameters for a swap pages action.

Responses

Response Schema:
object (ImageSwapPagesResponse)

Represents the response to a swap pages action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

PassportManager

Retrieve information about passports.

PassportManagerGetPassportInfo

No token is charged for this operation.

query Parameters
passportId
required
string

Responses

Response Schema:
NextMonthlyTerm
string <date-time>
RemainingTokens
integer <int64>

Response samples

Content type
No sample

PassportPDFApplicationManager

Retrieve information about PassportPDF desktop applications.

PassportPDFApplicationManagerGetApplicationLatestVersion

No token is charged for this operation.

query Parameters
applicationId
required
string

Responses

Response Schema:
object (Error)

Contains all the information related to an error which has occurred.

Value
string or null

The response value.

Response samples

Content type
No sample

PassportPDFApplicationManagerGetApplicationMinimumSupportedVersion

No token is charged for this operation.

query Parameters
applicationId
required
string

Responses

Response Schema:
object (Error)

Contains all the information related to an error which has occurred.

Value
string or null

The response value.

Response samples

Content type
No sample

PassportPDFApplicationManagerGetMaxClientThreads

Gets the maximum number of threads to be used simultaneously by a client application.
No token is charged for this operation.
query Parameters
applicationId
required
string

Responses

Response Schema:
object (Error)

Contains all the information related to an error which has occurred.

Value
integer <int32>

The response value.

Response samples

Content type
No sample

PDF

All the PDF-related APIs.

Annotate

Annotates a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfAnnotateParameters object specifying the parameters of the action.

object (PdfAnnotateParameters)

Represents the parameters for an annotate action.

Responses

Response Schema:
object (PdfAnnotateResponse)

Represents the response to an annotate action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

AutoCrop

Automatically crops a page range from a previously uploaded PDF, based on page content.
2 tokens are charged per request.
Request Body schema:
required

A PdfAutoCropParameters object specifying the parameters of the action.

object (PdfAutoCropParameters)

Represents the parameters for an auto crop action.

Responses

Response Schema:
object (PdfAutoCropResponse)

Represents the response to an auto crop action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

AutoDeskew

Performs auto deskew on a page range of a previously uploaded document.
1 token is charged per page.
Request Body schema:
required

A PdfAutoDeskewParameters object specifying the parameters of the action.

object (PdfAutoDeskewParameters)

Represents the parameters for an auto deskew action.

Responses

Response Schema:
object (PdfAutoDeskewResponse)

Represents the response to an auto deskew action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ClearPage

Clears a page range from a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfClearPageParameters object specifying the parameters of the action.

object (PdfClearPageParameters)

Represents the parameters for a clear page action.

Responses

Response Schema:
object (PdfClearPageResponse)

Represents the response to a clear page action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ClonePage

Clones specific pages from a previously uploaded document to another previously uploaded document.
2 tokens are charged per request.
Request Body schema:
required

A PdfClonePageParameters object specifying the parameters of the action.

object (PdfClonePageParameters)

Represents the parameters for a ClonePage action.

Responses

Response Schema:
object (PdfClonePageResponse)

Represents the response to a ClonePage action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ClosePDF

Closes a previously uploaded document.
No token is charged for this operation.
Request Body schema:
required

A PdfCloseDocumentParameters object specifying the parameters of the action.

object (PdfCloseDocumentParameters)

Represents the parameters for a close document action.

Responses

Response Schema:
object (PdfCloseDocumentResponse)

Represents the response to a close document action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ConvertToGrayscale

Converts a page range of a previously uploaded PDF to grayscale.
5 tokens are charged per request.
Request Body schema:
required

A PdfConvertToGrayscaleParameters object specifying the parameters of the action.

object (PdfConvertToGrayscaleParameters)

Represents the parameters for a convert to grayscale action.

Responses

Response Schema:
object (PdfConvertToGrayscaleResponse)

Represents the response to a convert to grayscale action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ConvertToPDFA

Converts a previously uploaded document to PDF/A.
10 tokens are charged per request.
Request Body schema:
required

A PdfConvertToPDFAParameters object specifying the parameters of the action.

object (PdfConvertToPDFAParameters)

Represents the parameters for a convert to PDF/A action.

Responses

Response Schema:
object (PdfConvertToPDFAResponse)

Represents the response to a convert to PDF/A action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

DeletePage

Deletes a page range from a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfDeletePageParameters object specifying the parameters of the action.

object (PdfDeletePageParameters)

Represents the parameters for a delete page action.

Responses

Response Schema:
object (PdfDeletePageResponse)

Represents the response to a delete page action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

DetectPageOrientation

Detects the orientation of the page(s) of a previously uploaded document and offers to automatically rotate them.
1 token is charged per page.
Request Body schema:
required

A PdfDetectPageOrientationParameters object specifying the parameters of the action.

object (PdfDetectPageOrientationParameters)

Represents the parameters for a detect page orientation action.

Responses

Response Schema:
Array of objects or null (PageOrientationInfo)

Holds information about the detected page orientations.

Request samples

Content type
{ }

Response samples

Content type
No sample

DigiSign

Signs a previously uploaded document digitally.
5 tokens are charged per request.
Request Body schema:
required

A PdfDigiSignParameters object specifying the parameters of the action.

object (PdfDigiSignParameters)

Represents the parameters for a digital signature action.

Responses

Response Schema:
object (PdfDigiSignResponse)

Represents the response to a digital signature action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

DrawImage

Draws an image on a page range of a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfDrawImageParameters object specifying the parameters of the action.

object (PdfDrawImageParameters)

Represents the parameters for a draw image action.

Responses

Response Schema:
object (PdfDrawImageResponse)

Represents the response to a draw image action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ExtractPage

Extracts a page range from a previously uploaded document into one or several new documents.
5 tokens are charged per request.
Request Body schema:
required

A PdfExtractPageParameters object specifying the parameters of the action.

object (PdfExtractPageParameters)

Represents the parameters for an extract page action.

Responses

Response Schema:
FileData
Array of strings or null <byte>

Specifies the data of the file(s) created as a result of the action. If immediate download is not requested, no file data will be returned.

FileIds
Array of strings or null

Specifies the identifier(s) of the file(s) created as a result of the action. If immediate download is requested, no file identifier will be returned.

Request samples

Content type
{ }

Response samples

Content type
No sample

ExtractText

Extracts text from the document pages.
1 token is charged per request.
Request Body schema:
required

A PdfExtractTextParameters object specifying the parameters of the action.

object (PdfExtractTextParameters)

Represents the parameters for an extract text action.

Responses

Response Schema:
Array of objects or null (PageText)

The text extraction results from individual pages.

Request samples

Content type
{ }

Response samples

Content type
No sample

Flatten

Flattens the form-fields, annotations, and/or the layers of a previously uploaded document.
2 tokens are charged per request.
Request Body schema:
required

A PdfFlatten object specifying the parameters of the action.

object (PdfFlattenParameters)

Represents the parameters for a flatten action.

Responses

Response Schema:
object (PdfFlattenResponse)

Represents the response to a flatten action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

GetInfo

Gets information about a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfGetInfoParameters object specifying the parameters of the action.

object (PdfGetInfoParameters)

Represents the parameters for a get info action.

Responses

Response Schema:
Author
string or null

Specifies the author name specified within the PDF, if any.

CanAddNotes
boolean

Specifies if the user is allowed to add annotations.

CanAssemble
boolean

Specifies if the user is allowed to assemble the document.

CanCopy
boolean

Specifies if the user is allowed to copy or extract text and graphics from the document.

CanCopyAccess
boolean

Specifies if the user is allowed for copying or extracting for use with accessibility features.

CanFillFields
boolean

Specifies if the user is allowed to fill-in form fields.

CanModify
boolean

Specifies if the user is allowed to modify the document.

CanPrint
boolean

Specifies if the user is allowed to print the document, but possibly not at the highest quality level.

CanPrintFull
boolean

Specifies if the user is allowed to print the document with high resolution.

CreationDate
string or null

Specifies the date and time the document was created, as set in the document information dictionary.

Encryption
string
Default: "PdfEncryptionNone"
Enum: "PdfEncryptionNone" "PdfEncryption40BitRC4" "PdfEncryption128BitRC4" "PdfEncryption128BitAES" "PdfEncryption256BitAES"

Specifies the encryption algorithm.

HasOwnerPassword
boolean

Specifies if the PDF is protected with a owner password.

HasUserPassword
boolean

Specifies if the PDF is protected with a user password.

IsLinearized
boolean

Specifies whether the document is a valid linearized PDF (optimized for web viewing).

IsTagged
boolean

Specifies whether the document conforms to Tagged PDF conventions.

Keywords
string or null

Specifies the keywords associated with the PDF, if any.

Metadata
string or null

Specifies the metadata contained within the PDF, if any.

ModificationDate
string or null

Specifies the date and time the document was last modified, as set in the document information dictionary.

PageCount
integer <int32>

Specifies the number of pages of the PDF.

Producer
string or null

Specifies the producer name specified within the PDF, if any.

Subject
string or null

Specifies the document subject specified within the PDF, if any.

Title
string or null

Specifies the document title specified within the PDF, if any.

Version
string or null

Specifies the version of the PDF.

Request samples

Content type
{ }

Response samples

Content type
No sample

GetMetadata

Gets the metadata from a previously uploaded PDF as a string in the XMP standardized format.
1 token is charged per request.
Request Body schema:
required

A PdfGetMetadataParameters object specifying the parameters of the action.

object (PdfGetMetadataParameters)

Represents the parameters for a get metadata action.

Responses

Response Schema:
Metadata
string or null

The value of the document's metadata as a string in the XMP standardized format.

Request samples

Content type
{ }

Response samples

Content type
No sample

GetPageThumbnail

Gets a thumbnail of each page within the provided page range from a previously uploaded document.
1 token is charged per page.
Request Body schema:
required

A PdfGetPageThumbnailParameters object specifying the parameters of the action.

object (PdfGetPageThumbnailParameters)

Represents the parameters for a get page thumbnail action.

Responses

Response Schema:
Array of objects or null (PageImage)

Contains all the obtained thumbnails.

Request samples

Content type
{ }

Response samples

Content type
No sample

GetPDFImportSupportedFileExtensions

Gets the supported file extensions by the LoadDocumentAsPDF action.
No token is charged for this operation.

Responses

Response Schema:
object (Error)

Contains all the information related to an error which has occurred.

Value
Array of strings or null

The response value.

Response samples

Content type
No sample

InsertImage

Inserts an image on a new page of a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfInsertImageParameters object specifying the parameters of the action.

object (PdfInsertImageParameters)

Represents the parameters for an insert image action.

Responses

Response Schema:
object (PdfInsertImageResponse)

Represents the response to an insert image action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

InsertNewPage

Inserts one or more new blank pages to a specific position in a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfInsertNewPageParameters object specifying the parameters of the action.

object (PdfInsertNewPageParameters)

Represents the parameters for an insert new page action.

Responses

Response Schema:
object (PdfInsertNewPageResponse)

Represents the response to an insert new page action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

InsertPageNumber

Inserts page number(s) on a document.
1 token is charged per request.
Request Body schema:
required

A PdfInsertPageNumberParameters object specifying the parameters of the action.

object (PdfInsertPageNumberParameters)

Represents the parameters for an insert page number action.

Responses

Response Schema:
object (PdfInsertPageNumberResponse)

Represents the response to an insert page number action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

InsertText

Inserts text on a document.
1 token is charged per request.
Request Body schema:
required

A PdfInsertTextParameters object specifying the parameters of the action.

object (PdfInsertTextParameters)

Represents the parameters for an insert text action.

Responses

Response Schema:
object (PdfInsertTextResponse)

Represents the response to an insert text action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

Linearize

Linearizes a previously uploaded document.
2 tokens are charged per request.
Request Body schema:
required

A PdfLinearizeParameters object specifying the parameters of the action.

object (PdfLinearizeParameters)

Represents the parameters for a linearize action.

Responses

Response Schema:
object (PdfLinearizeResponse)

Represents the response to a linearize action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

LoadDocumentAsPDF

Imports the provided document as PDF. Supported document formats can be retrieved by the GetPDFImportSupportedFileExtensions action.
1 token is charged per 10 MB of the input file size.
Request Body schema:
required

A PdfLoadDocumentFromByteArrayParameters object specifying the parameters of the action.

object (PdfLoadDocumentFromByteArrayParameters)

Represents the parameters for a load document action request.

Responses

Response Schema:
Encryption
string
Default: "PdfEncryptionNone"
Enum: "PdfEncryptionNone" "PdfEncryption40BitRC4" "PdfEncryption128BitRC4" "PdfEncryption128BitAES" "PdfEncryption256BitAES"

Specifies the encryption algorithm.

FileId
string or null

Specifies the file identifier of the loaded document.

FileSize
integer <int64>

Specifies the size of the loaded file.

PageCount
integer <int32>

Specifies the number of pages into the loaded document.

PasswordIsRequired
boolean

Specifies if a password will be subsequently required to open the document. Password can be provided using the SetPassword action / method.

ThumbnailData
string or null <byte>

Specifies the data of a thumbnail from the first page of the document, in PNG format. Only applicable if the GetPreview field of the request has been set to true.

Request samples

Content type
{ }

Response samples

Content type
No sample

LoadDocumentAsPDFFromHTTP

Imports the content stored at a specific HTTP URI as PDF. Supported document formats can be retrieved by the GetPDFImportSupportedFileExtensions action.
1 token is charged per 10 MB of the input file size.
Request Body schema:
required

A PdfLoadDocumentFromHTTPParameters object specifying the parameters of the action.

object (PdfLoadDocumentFromHTTPParameters)

Represents the parameters for importing a document as PDF from an URI.

Responses

Response Schema:
Encryption
string
Default: "PdfEncryptionNone"
Enum: "PdfEncryptionNone" "PdfEncryption40BitRC4" "PdfEncryption128BitRC4" "PdfEncryption128BitAES" "PdfEncryption256BitAES"

Specifies the encryption algorithm.

FileId
string or null

Specifies the file identifier of the loaded document.

FileSize
integer <int64>

Specifies the size of the loaded file.

PageCount
integer <int32>

Specifies the number of pages into the loaded document.

PasswordIsRequired
boolean

Specifies if a password will be subsequently required to open the document. Password can be provided using the SetPassword action / method.

ThumbnailData
string or null <byte>

Specifies the data of a thumbnail from the first page of the document, in PNG format. Only applicable if the GetPreview field of the request has been set to true.

Request samples

Content type
{ }

Response samples

Content type
No sample

LoadDocumentAsPDFMultipart

Imports the provided document as PDF using Multipart Upload. Supported document formats can be retrieved by the GetPDFImportSupportedFileExtensions action.
1 token is charged per 10 MB of the input file size.
Request Body schema: multipart/form-data
fileData
required
string <binary>

Responses

Response Schema:
Encryption
string
Default: "PdfEncryptionNone"
Enum: "PdfEncryptionNone" "PdfEncryption40BitRC4" "PdfEncryption128BitRC4" "PdfEncryption128BitAES" "PdfEncryption256BitAES"

Specifies the encryption algorithm.

FileId
string or null

Specifies the file identifier of the loaded document.

FileSize
integer <int64>

Specifies the size of the loaded file.

PageCount
integer <int32>

Specifies the number of pages into the loaded document.

PasswordIsRequired
boolean

Specifies if a password will be subsequently required to open the document. Password can be provided using the SetPassword action / method.

ThumbnailData
string or null <byte>

Specifies the data of a thumbnail from the first page of the document, in PNG format. Only applicable if the GetPreview field of the request has been set to true.

Response samples

Content type
No sample

Merge

Merges several previously uploaded documents into a new PDF.
5 tokens are charged per request.
Request Body schema:
required

A PdfMergeParameters object specifying the parameters of the action.

object (PdfMergeParameters)

Represents the parameters for a merge action.

Responses

Response Schema:
FileId
string or null

Specifies the file identifier of the merged document.

Request samples

Content type
{ }

Response samples

Content type
No sample

MergePages

Merges multiple pages, vertically, within a previously uploaded document into one single page.
1 token is charged per request.
Request Body schema:
required

A PdfMergePages object specifying the parameters of the action.

object (PdfMergePagesParameters)

Represents the parameters for a merge pages action request.

Responses

Response Schema:
object (PdfMergePagesResponse)

Represents the response to a merge pages action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

MovePage

Moves a page range from a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfMovePageParameters object specifying the parameters of the action.

object (PdfMovePageParameters)

Represents the parameters for a move pages action.

Responses

Response Schema:
object (PdfMovePageResponse)

Represents the response to a move page action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

OCR

Performs optical character recognition on a page range of a previously uploaded document. The recognized text is added as invisible text on each processed page. No token is charged for blank pages.
12 tokens are charged per page.
Request Body schema:
required

A PdfOCRParameters object specifying the parameters of the action.

object (PdfOCRParameters)

Represents the parameters for an OCR action.

Responses

Response Schema:
object (PdfOCRResponse)

Represents the response to an OCR action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

Protect

Protects a previously uploaded document.
2 tokens are charged per request.
Request Body schema:
required

A PdfProtectParameters object specifying the parameters of the action.

object (PdfProtectParameters)

Represents the parameters for a protect action.

Responses

Response Schema:
object (PdfProtectResponse)

Represents the response to a protect action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ReadBarcodes

Reads barcodes from a previously uploaded document.
2 tokens are charged per page.
Request Body schema:
required

A PdfReadBarcodesParameters object specifying the parameters of the action.

object (PdfReadBarcodesParameters)

Represents the parameters for a read barcode action.

Responses

Response Schema:
Array of objects or null (BarcodeInfo)

Specifies the information of the different barcodes which have been read.

Request samples

Content type
{ }

Response samples

Content type
No sample

Redact

Redacts a previously uploaded document.
5 tokens are charged per page.
Request Body schema:
required

A PdfRedactParameters object specifying the regions to redact.

object (PdfRedactParameters)

Represents the parameters for a Redact action.

Responses

Response Schema:
object (PdfRedactResponse)

Represents the response to a Redact action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

Reduce

Reduces the size of a previously uploaded document.
5 tokens are charged per request.If MRC compression is enabled 4 additional tokens per MRC encoded image will be charged.
Request Body schema:
required

A PdfReduceParameters object specifying the parameters of the action.

object (PdfReduceParameters)

Represents the parameters for a reduce action.

Responses

Response Schema:
ContentRemoved
boolean

Specifies whether content has been removed from the PDF during the process of the reduce action.

object (ReduceErrorInfo)

Represents information about an error which caused the failure of a reduce action.

NewFileSize
integer <int64>

Specify the size of the new created document.

VersionChanged
boolean

Specifies whether the version of the PDF has changed during the process of the reduce action.

Array of objects or null (ReduceWarningInfo)

Specifies the different warnings that occurred during the process of the reduce action.

Request samples

Content type
{ }

Response samples

Content type
No sample

RemovePageFormFields

Removes the form fields from a page range of a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfRemovePageFormFieldsParameters object specifying the parameters of the action.

object (PdfRemovePageFormFieldsParameters)

Represents the parameters for a remove page form fields action.

Responses

Response Schema:
object (PdfRemovePageFormFieldsResponse)

Represents the response to a remove page form fields action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

RemoveText

Removes text (all text or only invisible one) from a previously uploaded PDF.
2 tokens are charged per request.
Request Body schema:
required

A PdfRemoveTextParameters object specifying the parameters of the action.

object (PdfRemoveTextParameters)

Represents the parameters for a remove text action.

Responses

Response Schema:
object (PdfRemoveTextResponse)

Represents the response to a remove text action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ReorderPages

Reorders pages of a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfReorderPagesParameters object specifying the parameters of the action.

object (PdfReorderPagesParameters)

Represents the parameters for a reorder pages action.

Responses

Response Schema:
object (PdfReorderPagesResponse)

Represents the response to a swap pages action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

RepairDocument

Repairs a previously uploaded PDF document.
2 tokens are charged per request.
Request Body schema:
required

A PdfRepairDocumentParameters object specifying the parameters of the action.

object (PdfRepairDocumentParameters)

Represents the parameters for a repair document action.

Responses

Response Schema:
FileId
string or null

Specifies the file identifier of the repaired document.

Request samples

Content type
{ }

Response samples

Content type
No sample

RotatePageStandard

Rotates (standardly) a page range from a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfRotatePageStandardParameters object specifying the parameters of the action.

object (PdfRotatePageStandardParameters)

Represents the parameters for a rotate page standard action.

Responses

Response Schema:
object (PdfRotatePageStandardResponse)

Represents the response to a rotate page standard action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

PdfSaveAsDOCXResponse

Saves a previously uploaded document as DOCX, and sends the file data in a JSON-serialized object.
2 tokens are charged per page.
Request Body schema:
required

A PdfSaveAsDOCXParameters object specifying the parameters of the action.

object (PdfSaveAsDOCXParameters)

Represents the parameters for a save as DOCX action.

Responses

Response Schema:
Data
string or null <byte>

Specifies the data of the saved document.

FileName
string or null

Specifies the name of the saved document.

Request samples

Content type
{ }

Response samples

Content type
No sample

SaveAsDOCXFile

Saves a previously uploaded document as DOCX, and streams the file binary data to the response (this is the most efficient download method).
2 tokens are charged per page.
Request Body schema:
required

A PdfSaveAsDOCXParameters object specifying the parameters of the action.

object (PdfSaveAsDOCXParameters)

Represents the parameters for a save as DOCX action.

Responses

Response Schema:
string <binary>

Request samples

Content type
{ }

Response samples

Content type
No sample

SaveAsJPEG

Saves a previously uploaded document as JPEG, and sends the file data in a JSON-serialized object.
1 token is charged per page.
Request Body schema:
required

A PdfSaveAsJPEGParameters object specifying the parameters of the action.

object (PdfSaveAsJPEGParameters)

Represents the parameters for a save as JPEG action.

Responses

Response Schema:
Array of objects or null (PageImage)

The page(s) of the PDF saved as JPEG image(s).

Request samples

Content type
{ }

Response samples

Content type
No sample

SaveAsJPEGFile

Saves a previously uploaded document as JPEG, and streams the file binary data to the response (this is the most efficient download method).
1 token is charged per page.
Request Body schema:
required

A PdfSaveAsJPEGParameters object specifying the parameters of the action.

object (PdfSaveAsJPEGParameters)

Represents the parameters for a save as JPEG action.

Responses

Response Schema:
string <binary>

Request samples

Content type
{ }

Response samples

Content type
No sample

SaveAsPNG

Saves a previously uploaded document as PNG, and sends the file data in a JSON-serialized object.
1 token is charged per page.
Request Body schema:
required

A PdfSaveAsPNGParameters object specifying the parameters of the action.

object (PdfSaveAsPNGParameters)

Represents the parameters for a save as PNG action.

Responses

Response Schema:
Array of objects or null (PageImage)

The page(s) of the PDF saved as PNG image(s).

Request samples

Content type
{ }

Response samples

Content type
No sample

SaveAsPNGFile

Saves a previously uploaded document as PNG, and streams the file binary data to the response (this is the most efficient download method).
1 token is charged per page.
Request Body schema:
required

A PdfSaveAsPNGParameters object specifying the parameters of the action.

object (PdfSaveAsPNGParameters)

Represents the parameters for a save as PNG action.

Responses

Response Schema:
string <binary>

Request samples

Content type
{ }

Response samples

Content type
No sample

PdfSaveAsPPTXResponse

Saves a previously uploaded document as PPTX, and sends the file data in a JSON-serialized object.
2 tokens are charged per page.
Request Body schema:
required

A PdfSaveAsPPTXParameters object specifying the parameters of the action.

object (PdfSaveAsPPTXParameters)

Represents the parameters for a save as PPTX action.

Responses

Response Schema:
Data
string or null <byte>

Specifies the data of the saved document.

FileName
string or null

Specifies the name of the saved document.

Request samples

Content type
{ }

Response samples

Content type
No sample

SaveAsPPTXFile

Saves a previously uploaded document as PPTX, and streams the file binary data to the response (this is the most efficient download method).
2 tokens are charged per page.
Request Body schema:
required

A PdfSaveAsPPTXParameters object specifying the parameters of the action.

object (PdfSaveAsPPTXParameters)

Represents the parameters for a save as PPTX action.

Responses

Response Schema:
string <binary>

Request samples

Content type
{ }

Response samples

Content type
No sample

SaveAsTIFF

Saves a previously uploaded document as TIFF, and sends the file data in a JSON-serialized object.
1 token is charged per page.
Request Body schema:
required

A PdfSaveAsTIFFParameters object specifying the parameters of the action.

object (PdfSaveAsTIFFParameters)

Represents the parameters for a save as TIFF action.

Responses

Response Schema:
Array of objects or null (PageImage)

The page(s) of the PDF saved as TIFF image(s).

Request samples

Content type
{ }

Response samples

Content type
No sample

SaveAsTIFFFile

Saves a previously uploaded document as TIFF, and streams the file binary data to the response (this is the most efficient download method).
1 token is charged per page.
Request Body schema:
required

A PdfSaveAsTIFFParameters object specifying the parameters of the action.

object (PdfSaveAsTIFFParameters)

Represents the parameters for a save as TIFF action.

Responses

Response Schema:
string <binary>

Request samples

Content type
{ }

Response samples

Content type
No sample

SaveAsTIFFMultipage

Saves a previously uploaded document as multipage TIFF, and sends the file data in a JSON-serialized object.
1 token is charged per page.
Request Body schema:
required

A PdfSaveAsTIFFMultipageParameters object specifying the parameters of the action.

object (PdfSaveAsTIFFMultipageParameters)

Represents the parameters for a save as TIFF multipage action.

Responses

Response Schema:
FileName
string or null

Specifies the name of the saved document.

ImageData
string or null <byte>

Specifies the data of the produced multipage TIFF.

Request samples

Content type
{ }

Response samples

Content type
No sample

SaveAsTIFFMultipageFile

Saves a previously uploaded document as multipage TIFF, and streams the file binary data to the response (this is the most efficient download method).
1 token is charged per page.
Request Body schema:
required

A PdfSaveAsTIFFMultipageParameters object specifying the parameters of the action.

object (PdfSaveAsTIFFMultipageParameters)

Represents the parameters for a save as TIFF multipage action.

Responses

Response Schema:
string <binary>

Request samples

Content type
{ }

Response samples

Content type
No sample

PdfSaveAsXLSXResponse

Saves a previously uploaded document as XLSX, and sends the file data in a JSON-serialized object.
2 tokens are charged per page.
Request Body schema:
required

A PdfSaveAsXLSXParameters object specifying the parameters of the action.

object (PdfSaveAsXLSXParameters)

Represents the parameters for a save as XLSX action.

Responses

Response Schema:
Data
string or null <byte>

Specifies the data of the saved document.

FileName
string or null

Specifies the name of the saved document.

Request samples

Content type
{ }

Response samples

Content type
No sample

SaveAsXLSXFile

Saves a previously uploaded document as XLSX, and streams the file binary data to the response (this is the most efficient download method).
2 tokens are charged per page.
Request Body schema:
required

A PdfSaveAsXLSXParameters object specifying the parameters of the action.

object (PdfSaveAsXLSXParameters)

Represents the parameters for a save as XLSX action.

Responses

Response Schema:
string <binary>

Request samples

Content type
{ }

Response samples

Content type
No sample

SaveDocument

Saves a previously uploaded document as PDF, and sends the file data in a JSON-serialized object.
1 token is charged per request.
Request Body schema:
required

A PdfSaveDocumentParameters object specifying the parameters of the action.

object (PdfSaveDocumentParameters)

Represents the parameters for a save document action.

Responses

Response Schema:
Data
string or null <byte>

Specifies the data of the saved document.

FileName
string or null

Specifies the name of the saved document.

Request samples

Content type
{ }

Response samples

Content type
No sample

SaveDocumentToFile

Saves a previously uploaded document as PDF, and streams the file binary data to the response (this is the most efficient download method).
1 token is charged per request.
Request Body schema:
required

A PdfSaveDocumentParameters object specifying the parameters of the action.

object (PdfSaveDocumentParameters)

Represents the parameters for a save document action.

Responses

Response Schema:
string <binary>

Request samples

Content type
{ }

Response samples

Content type
No sample

ScalePage

Scales a page range from a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfScalePage object specifying the parameters of the action.

object (PdfScalePageParameters)

Represents the parameters for a scale page action.

Responses

Response Schema:
object (PdfScalePageResponse)

Represents the response to a scale page action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

SetInfo

Sets information to a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfSetInfoParameters object specifying the parameters of the action.

object (PdfSetInfoParameters)

Represents the parameters for a set info action.

Responses

Response Schema:
object (PdfSetInfoResponse)

Represents the response to a set info action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

SetInitialView

Sets various document level initial view options to a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfsetInitialViewParameters object specifying the parameters of the action.

object (PdfSetInitialViewParameters)

Represents the parameters for a set initial view action.

Responses

Response Schema:
object (PdfSetInitialViewResponse)

Represents the response to a set initial view action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

SetMetadata

Sets the metadata of a previously uploaded PDF.
1 token is charged per request.
Request Body schema:
required

A PdfSetMetadataParameters object specifying the parameters of the action.

object (PdfSetMetadataParameters)

Represents the parameters for a set metadata action.

Responses

Response Schema:
object (PdfSetMetadataResponse)

Represents the response to a set metadata action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

SetPageBox

Sets pagebox to a page range from previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfSetPageBoxParameters object specifying the parameters of the action.

object (PdfSetPageBoxParameters)

Represents the parameters for a SetPageBox action.

Responses

Response Schema:
object (PdfSetPageBoxResponse)

Represents the response to a SetPageBox action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

SetPassword

Unprotects a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfSetPasswordParameters object specifying the parameters of the action.

object (PdfSetPasswordParameters)

Represents the parameters for an unprotect action.

Responses

Response Schema:
object (PdfSetPasswordResponse)

Represents the response to an unprotect action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

Split

Splits a previously uploaded document into new ones.
5 tokens are charged per request.
Request Body schema:
required

A PdfSplitParameters object specifying the parameters of the action.

object (PdfSplitParameters)

Represents the parameters for a split action.

Responses

Response Schema:
FileData
Array of strings or null <byte>

Specifies the data of the file(s) created as a result of the action. If immediate download is not requested, no file data will be returned.

FileIds
Array of strings or null

Specifies the identifier(s) of the file(s) created as a result of the action. If immediate download is requested, no file identifier will be returned.

Request samples

Content type
{ }

Response samples

Content type
No sample

SwapPages

Swaps two pages from a previously uploaded document.
1 token is charged per request.
Request Body schema:
required

A PdfSwapPagesParameters object specifying the parameters of the action.

object (PdfSwapPagesParameters)

Represents the parameters for a swap pages action.

Responses

Response Schema:
object (PdfSwapPagesResponse)

Represents the response to a swap pages action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

Unprotect

Unprotects a previously uploaded document.
2 tokens are charged per request.
Request Body schema:
required

A PdfUnprotectParameters object specifying the parameters of the action.

object (PdfUnprotectParameters)

Represents the parameters for an unprotect action.

Responses

Response Schema:
object (PdfUnprotectResponse)

Represents the response to an unprotect action request.

Request samples

Content type
{ }

Response samples

Content type
No sample

ValidatePDFA

Validates a previously uploaded document to a requested PDF/A standard.
5 tokens are charged per request.
Request Body schema:
required

A PdfValidatePDFAParameters object specifying the parameters of the action.

object (PdfValidatePDFAParameters)

Represents the parameters for a validate PDF/A action.

Responses

Response Schema:
Conformance
string
Default: "Autodetect"
Enum: "Autodetect" "PDFA1a" "PDFA1b" "PDFA2a" "PDFA2b" "PDFA2u" "PDFA3a" "PDFA3b" "PDFA3u" "PDFA4" "PDFA4e" "PDFA4f"

Specifies the different available PDF/A conformance levels for validation.

DetailedXMLOutput
string or null

Provides a detailed validation result in machine readable XML report. If the file does not conform to the requested standard, the XML report will summarize all the problems found during the validation process.

IsValid
boolean

Provides a simple validation result; true if the document conforms to the requested standard, false otherwise.

Request samples

Content type
{ }

Response samples

Content type
No sample