PdfConverter

Overview

PdfConverter is a class in Aspose.PDF FOSS for Python. Inherits from: _BoundFacade.

Rendering the bound document’s pages, one image at a time.

This class declares 6 methods for PdfConverter objects in Python programs. Available methods include: __init__, dispose, do_convert, get_next_image, has_next_image, save_as_tiff. Public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package. Properties: resolution.

Properties

NameTypeAccessDescription
resolutionfloatRead/WriteThe resolution pages are rendered at, in dots per inch.

Methods

SignatureDescription
__init__()Calls init on this PdfConverter instance.
do_convert(page_numbers: Any, image_format: str, quality: int, mode: str, lossless: bool, method: int, threshold: int, dither: bool) → boolRender pages as PNG/JPEG/TIFF or optional WebP for get_next_image.
has_next_image() → boolWhether another rendered page is waiting.
get_next_image(destination: Any) → AnyThe next rendered page’s bytes, written to destination if given.
save_as_tiff(destination: Any, page_numbers: Any) → boolRender the pages named into one multi-page TIFF file.
dispose()Release the rendered images along with the document.

See Also