API V2

Extract Pages

Connector ID: Extract Pages

Pages of a document can be separated out and processed further, if you use this feature to extract pages. This feature of PDF4me shall help you to create short versions of documents and digital booklets, effortlessly.

  • Method: POST
  • Endpoint: /api/v2/Extract

Parameters

File ContentBase64, Required

The content of the input file

File NameString, Required

Source PDF file name with .pdf extension

Page NumbersString, Required
Default: 1
  • Specify page indices as comma-separated values or ranges to process (e.g. “0, 1, 2-” or “1, 2, 3-7”).
  • If not specified, the default configuration processes all pages. The input must be in string format.

Output

File ContentBinary

Output file content from PDF4me Extract action

File NameString

Output file name from PDF4me Extract action

Header
Content-Type:application/json
Authorization: Please copy key from the link.

Payload

{
  "docContent": "Please put PDF base64 content",
  "docName": "output.pdf",
  "pageNumbers": "1"
}

PDF4me api samples

CSharp(C#)
Java
JavaScript
Python
Salesforce
n8n
Google Script
AWS Lambda