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
| Name | Type | Access | Description |
|---|---|---|---|
resolution | float | Read/Write | The resolution pages are rendered at, in dots per inch. |
Methods
| Signature | Description |
|---|---|
__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) → bool | Render pages as PNG/JPEG/TIFF or optional WebP for get_next_image. |
has_next_image() → bool | Whether another rendered page is waiting. |
get_next_image(destination: Any) → Any | The next rendered page’s bytes, written to destination if given. |
save_as_tiff(destination: Any, page_numbers: Any) → bool | Render the pages named into one multi-page TIFF file. |
dispose() | Release the rendered images along with the document. |