PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
pdf2image.h File Reference

PDF to image conversion API. More...

#include <pdfsdk/core.h>

Go to the source code of this file.

Classes

struct  PDFConvertToImageParams
 Contains conversion-related parameters such as the system output folder, desired image type, desired file name, a flag indicating conversion success status, a custom callback procedure along with it's buffer and an image quality parameter. More...
 

Macros

#define PDF_PDF2IMAGE_API   PDFSDK_IMPORT_
 

Typedefs

typedef void(* PDFReplaceFileQuestionProc) (void *, const wchar_t *, bool *, bool *)
 

Functions

PDFSDK_IMPORT_ PDErrCode PDFSDK_CALLCONV PDFConvertToImage (PDDoc source, const PDPageRange *pageRange, const PDProgressMonitor *progress, void *progressData, const PDFConvertToImageParams *params)
 A function to covert all or specific pages of a PDF document into separate image files.
 

Detailed Description

PDF to image conversion API.

Function Documentation

◆ PDFConvertToImage()

PDFSDK_IMPORT_ PDErrCode PDFSDK_CALLCONV PDFConvertToImage ( PDDoc source,
const PDPageRange * pageRange,
const PDProgressMonitor * progress,
void * progressData,
const PDFConvertToImageParams * params )

A function to covert all or specific pages of a PDF document into separate image files.

Parameters
[in]sourceThe already opened PDF document to convert into image files.
[in]pageRangeA pointer to specific pages to convert. By passing a null pointer the whole document is converted and each and every page from the PDF document will be converted into a separate image file. To select specific pages, pass an array of the desired pages along with it's size.
See also
PDPageRange
Parameters
[in]progressA pointer to the progress monitor which will contain function pointers, which wrap the function calls to the functions of the user defined class which produces the progressData object. It may be null.
See also
PDProgressMonitor
Parameters
[in]progressDataThe address of a class that has to be user defined with a subset of the functions described in the PDProgressMonitor struct, omitting the first parameter (i.e. void* clientData). These will serve as callback functions for the conversion process. It may be null.
[in]paramsA pointer to the conversion parameters like the system output folder, desired image type, desired file name, a flag indicating conversion success status, a custom callback procedure along with it's buffer and an image quality parameter.