Windows
ComPDFKit PDF SDK
Guides

Extract Image

 

To extract images from a PDF document, use function CPDFDocument.ExtractImage(string pageRange, string filePath).

The code below will grab all images from the first page of the given PDF document:

 

CPDFDocument document = CPDFDocument.InitWithFilePath("filePath");
document.ExtractImage("1-10", "saveFolderPath");