WEBP to PDF API

The API for converting WEBP images to PDF files.

API Request:

Copy parameter's URL Secret
Optional

String Authentication secret must be provided as a query parameter. If omitted, token must be provided.

Show all

Copy parameter's URL Token
Optional

String Authentication token must be provided as a query parameter. If omitted, secret must be provided.

Show all

Copy parameter's URL File
Required
Remove input

File File to be converted. Value can be URL or file content.

Show all

Copy parameter's URL StoreFile
Optional

Bool Store converted file on our secure server and provides download URL.

Default: False

Show all

Copy parameter's URL FileName
Optional

String Converted output file name without extension. The extension will be added automatically.

Show all

Copy parameter's URL Timeout
Optional

Integer Conversion timeout in seconds.

Default: 900

Range: 10 .. 1200

Show all

Copy parameter's URL Async
Optional

Bool Run conversion job asynchronously.

Default: False

Show all

Copy parameter's URL JobId
Optional

String Conversion job self generated UUID (RFC 4122) used for getting conversion result asynchronously.

Show all

Copy parameter's URL WebHook
Optional

String Set WebHook URL to call after asynchronous conversion is finished. Async parameter must be enabled.

Show all

Copy parameter's URL EnableOcr
Optional

Bool Enable optical character recognition(OCR).

Default: False

Show all

Copy parameter's URL OcrLanguage
Optional

Collection Set the OCR language. Will have effect only if EnableOcr is TRUE.

Default: 0

Values: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20

Show all

Copy parameter's URL AutoRotate
Optional

Bool Automatic page orientation detection.

Default: False

Show all

Copy parameter's URL AutoStraighten
Optional

Bool Automatic page small angles misalignment correction.

Default: False

Show all

Copy parameter's URL EmbedFonts
Optional

Bool Embed fonts in PDF.

Default: True

Show all

Copy parameter's URL SubsetFonts
Optional

Bool Include in the output PDF document only the font characters that are used in the original document.

Default: True

Show all

Copy parameter's URL SubsetFontsThreshold
Optional

Integer Sets the Subset Fonts threshold. If the percentage of used characters, compared with total characters of the particular font, exceeds this threshold, the entire font is embedded.

Default: 100

Range: 0 .. 100

Show all

Copy parameter's URL PdfVersion
Optional

Collection Set PDF version.

Default: 1.5

Values: 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 2.0

Show all

Copy parameter's URL PdfResolution
Optional

Integer Set PDF resolution.

Default: 300

Range: 10 .. 2400

Show all

Copy parameter's URL PdfTitle
Optional

String Set the title of the generated PDF file. If value is not set a source document title is used instead.

Show all

Copy parameter's URL PdfSubject
Optional

String Set the subject of the generated PDF file. If value is not set a source document subject is used instead.

Show all

Copy parameter's URL PdfAuthor
Optional

String Set the author of the generated PDF file. If value is not set a source document author is used instead.

Show all

Copy parameter's URL PdfKeywords
Optional

String Set the keywords of the generated PDF file. If value is not set a source document keywords are used instead.

Show all

Copy parameter's URL OpenPage
Optional

Integer Set the page number at which the PDF document should open.

Default: 1

Range: 1 .. 3000

Show all

Copy parameter's URL RotatePage
Optional

Collection Automatically rotate pages based on the orientation of the text. By Page option will rotate each page based on the direction of the text on that page. All option will rotate all pages in the document based on the orientation of the majority of text.

Default: Disabled

Values: Disabled, ByPage, All

Show all

Show advanced options

Snippets are autogenerated according to converter parameter choices above. Please select file in "File" or "Files" parameter before using code snippets.

Code snippet is using ConvertAPI JavaScript Client

Code snippet is using ConvertAPI Node.js Client

Code snippet is using ConvertAPI PHP Client

Code snippet is using ConvertAPI Java Client

Code snippet is using ConvertAPI C# Client

Code snippet is using ConvertAPI Ruby Client

Code snippet is using ConvertAPI Python Client

Code snippet is using ConvertAPI Go Client

Code snippet is using command line utility program

For conversions with the multiple file result please refer to the example