Foxit Cloud API integration (Productivity, Design & Media). Imported from open-connector.
https://servicesapi.foxitsoftware.cn/api/file/upload
| Param | Type | Required | Description |
|---|---|---|---|
| file | object | required | A file source provided as a public URL or Base64 payload. |
/task
| Param | Type | Required | Description |
|---|---|---|---|
| taskId | string | required | The Foxit task ID to query. |
/download
| Param | Type | Required | Description |
|---|---|---|---|
| docId | string | required | The Foxit document ID to download. |
| fileName | string | optional | Optional output file name passed through to Foxit download. |
/user/stock
/document/createFromHtml
/document/convert
| Param | Type | Required | Description |
|---|---|---|---|
| docId | string | optional | An existing Foxit document ID returned by upload_file or a previous task. |
| file | object | optional | A file source provided as a public URL or Base64 payload. |
| outputFormat | string | required | The target format that Foxit should convert the PDF into. |
| imageConfig | object | optional | The image conversion options accepted by Foxit. |
/document/compare
| Param | Type | Required | Description |
|---|---|---|---|
| baseDocId | string | optional | The Foxit document ID for the baseline PDF when baseFile is omitted. |
| baseFile | object | optional | A file source provided as a public URL or Base64 payload. |
| compareDocId | string | optional | The Foxit document ID for the comparison PDF when compareFile is omitted. |
| compareFile | object | optional | A file source provided as a public URL or Base64 payload. |
| resultType | string | optional | Whether Foxit should return a JSON diff or a rendered PDF diff. |
| compareType | string | optional | Whether Foxit should compare all changes or only text changes. |
/document/protect
| Param | Type | Required | Description |
|---|---|---|---|
| docId | string | optional | An existing Foxit document ID returned by upload_file or a previous task. |
| file | object | optional | A file source provided as a public URL or Base64 payload. |
| passwordProtection | object | required | The password settings used when protecting a PDF. |
| permission | array | optional | The Foxit permission flags to keep on the protected PDF. |
| encryptionAlgorithm | string | required | The Foxit encryption algorithm used to protect the PDF. |
/document/manipulation
| Param | Type | Required | Description |
|---|---|---|---|
| docId | string | optional | An existing Foxit document ID returned by upload_file or a previous task. |
| file | object | optional | A file source provided as a public URL or Base64 payload. |
| config | array | required | The ordered list of page manipulation operations. |
/document/combine
| Param | Type | Required | Description |
|---|---|---|---|
| docIds | array | optional | The document IDs to merge in order. |
| zipFile | object | optional | A file source provided as a public URL or Base64 payload. |
| config | object | optional | The merge options accepted by Foxit. |
/document/split
| Param | Type | Required | Description |
|---|---|---|---|
| docId | string | optional | An existing Foxit document ID returned by upload_file or a previous task. |
| file | object | optional | A file source provided as a public URL or Base64 payload. |
| pageCount | integer | required | The number of pages that each split file should contain. |
/document/compress
| Param | Type | Required | Description |
|---|---|---|---|
| docId | string | optional | An existing Foxit document ID returned by upload_file or a previous task. |
| file | object | optional | A file source provided as a public URL or Base64 payload. |
| compressionLevel | string | required | The Foxit compression level to apply. |
/document/removePassword
| Param | Type | Required | Description |
|---|---|---|---|
| docId | string | optional | An existing Foxit document ID returned by upload_file or a previous task. |
| file | object | optional | A file source provided as a public URL or Base64 payload. |
| password | string | required | The password used to open the protected document before Foxit removes it. |
/document/linearize
| Param | Type | Required | Description |
|---|---|---|---|
| docId | string | optional | An existing Foxit document ID returned by upload_file or a previous task. |
| file | object | optional | A file source provided as a public URL or Base64 payload. |
/document/flatten
| Param | Type | Required | Description |
|---|---|---|---|
| docId | string | optional | An existing Foxit document ID returned by upload_file or a previous task. |
| file | object | optional | A file source provided as a public URL or Base64 payload. |
| pageRange | string | optional | The optional page range, such as 1-30, 1,3,5, or all. |
/document/extract
| Param | Type | Required | Description |
|---|---|---|---|
| docId | string | optional | An existing Foxit document ID returned by upload_file or a previous task. |
| file | object | optional | A file source provided as a public URL or Base64 payload. |
| mode | string | required | Whether Foxit should extract text or embedded images. |
| pageRange | string | optional | The optional page range, such as 1-30, 1,3,5, or all. |
/document/pagesBasicInfo
| Param | Type | Required | Description |
|---|---|---|---|
| docId | string | optional | An existing Foxit document ID returned by upload_file or a previous task. |
| file | object | optional | A file source provided as a public URL or Base64 payload. |
| pageRange | string | optional | The optional page range, such as 1-30, 1,3,5, or all. |
/document/pagesIsScanned
| Param | Type | Required | Description |
|---|---|---|---|
| docId | string | optional | An existing Foxit document ID returned by upload_file or a previous task. |
| file | object | optional | A file source provided as a public URL or Base64 payload. |
| pageRange | string | optional | The optional page range, such as 1-30, 1,3,5, or all. |
/document/ocr
| Param | Type | Required | Description |
|---|---|---|---|
| docId | string | optional | An existing Foxit document ID returned by upload_file or a previous task. |
| file | object | optional | A file source provided as a public URL or Base64 payload. |
| lang | string | optional | The OCR language used by Foxit. |
| outputFormat | string | optional | The OCR output format returned by Foxit. |
/document/office2image
| Param | Type | Required | Description |
|---|---|---|---|
| docId | string | optional | An existing Foxit document ID returned by upload_file or a previous task. |
| file | object | optional | A file source provided as a public URL or Base64 payload. |
| format | string | required | The input Office document format that Foxit should convert to images. |
| dpi | integer | optional | The output image DPI between 1 and 1000. |
| destImgSuffix | string | optional | The image file suffix Foxit should generate for each page. |
/document/watermark
| Param | Type | Required | Description |
|---|---|---|---|
| docId | string | optional | An existing Foxit document ID returned by upload_file or a previous task. |
| file | object | optional | A file source provided as a public URL or Base64 payload. |
| imageDocId | string | optional | An existing Foxit document ID for the watermark image when type is imageObject. |
| imageFile | object | optional | A file source provided as a public URL or Base64 payload. |
| pageRange | string | optional | The optional page range, such as 1-30, 1,3,5, or all. |
| type | string | optional | Whether Foxit should use a text watermark or an image watermark. |
| position | integer | optional | The watermark anchor position between 0 and 8. |
| offsetX | number | optional | The horizontal watermark offset in points. |
| offsetY | number | optional | The vertical watermark offset in points. |
| flagOnTopOfPage | integer | optional | Whether the watermark stays above page content where 1=true and 0=false. |
| flagNoPrint | integer | optional | Whether the watermark is excluded from printing where 1=true and 0=false. |
| flagInvisible | integer | optional | Whether the watermark is invisible where 1=true and 0=false. |
| scaleX | number | optional | The horizontal watermark scale factor. |
| scaleY | number | optional | The vertical watermark scale factor. |
| rotation | number | optional | The watermark rotation angle. |
| opacity | integer | optional | The watermark opacity between 0 and 100. |
| font | object | optional | The text watermark font configuration. |