PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
ComPDF Conversion SDK provides an API for converting PDFs to images. Integrate ComPDF Conversion SDK to your apps to convert PDF into images easily.
In ComPDF Conversion SDK, supported image formats include:
Supported image color modes in ComPDF Conversion SDK include:
The SDK supports setting image scaling. The default scaling is 1.0, which maintains the original PDF page size. If you want to double the image size, you can set Scaling to 2.0; similarly, to reduce the image size by half, set Scaling to 0.5.
The SDK supports an option called PathEnhance for enhancing the display of image paths. This option can be enabled when you want to enhance the display effect of paths within the PDF page.
Do not enable the PathEnhance option (original PDF rendering effect):

Enable the PathEnhance option:

Scaling value results in images with higher resolution, but it also increases memory usage and slows down the conversion.Scaling value does not necessarily equate to higher clarity; the clarity also depends on the original image resolution in the document.This sample demonstrates how to convert from a PDF to Image file.
ImageOptions *options = [[ImageOptions alloc] init];
options.Type = ImageTypePNG;
options.Scaling = 2.0;
options.PathEnhance = YES;
[CPDFConversion startPDFToImage:@"input.pdf" password:@"password" outputPath:@"path/output" options:options];