Extract All Images from PDF
PDF - Extract All Images
Section titled “PDF - Extract All Images”This operation extracts images from the specified pages of the PDF document provided.
Endpoint
Section titled “Endpoint”POST /api/v1/Pdf/PdfExtractAllImagesRequest Parameters
Section titled “Request Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| FileContent | string | Yes | - | Base64-encoded PDF content |
| StartPage | integer | No | 1 | Page number from which to begin extraction |
| EndPage | integer | No | Last page | Page number on which to end extraction |
| Pages | string | No | - | Comma separated list of pages or page ranges (e.g., “1,3,5-7”) |
Response
Section titled “Response”| Name | Type | Description |
|---|---|---|
| images | array | Array of images extracted from the PDF, each containing: |
| images[].filename | string | Name of the image file |
| images[].fileContent | string | Base64-encoded image content |
Implementation Details
Section titled “Implementation Details”The operation scans through the specified pages of the PDF document and identifies all embedded images. It then extracts these images and returns them as separate files.
Usage Notes
Section titled “Usage Notes”- If both page ranges and specific pages are provided, they will be combined
- The operation can extract various image formats embedded in PDFs (JPEG, PNG, etc.)
- Image quality depends on the original images embedded in the PDF
- Filename format follows the pattern of “image_pageNumber_imageIndex” with appropriate extension
Credit Cost
Cost: 1 credit(s) per 5 pages
Note: Cost depends on the number of pages in the document