Skip to content

Extract All Images from PDF

This operation extracts images from the specified pages of the PDF document provided.

POST /api/v1/Pdf/PdfExtractAllImages
NameTypeRequiredDefaultDescription
FileContentstringYes-Base64-encoded PDF content
StartPageintegerNo1Page number from which to begin extraction
EndPageintegerNoLast pagePage number on which to end extraction
PagesstringNo-Comma separated list of pages or page ranges (e.g., “1,3,5-7”)
NameTypeDescription
imagesarrayArray of images extracted from the PDF, each containing:
images[].filenamestringName of the image file
images[].fileContentstringBase64-encoded image content

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.

  • 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