pdftools_sdk.pdf2_image.converter

Classes

Converter()

The class to convert a PDF document to a rasterized image

class pdftools_sdk.pdf2_image.converter.Converter[source]

Bases: _NativeObject

The class to convert a PDF document to a rasterized image

__init__()[source]
convert_document(in_doc: Document, out_stream: IOBase, profile: Profile) MultiPageDocument[source]

Convert all pages of a PDF document to a rasterized image

Parameters:
Returns:

The output image document. The object can be used as input for further processing.

Note that, this object must be disposed before the output stream object (method argument outStream).

Return type:

pdftools_sdk.image.multi_page_document.MultiPageDocument

Raises:
convert_page(in_doc: Document, out_stream: IOBase, profile: Profile, page_number: int) Document[source]

Convert a single page of a PDF document to a rasterized image

Parameters:
Returns:

The image object allowing to open and read the output image and treat it as a new input for further processing.

Note that, this object must be disposed before the output stream object (method argument outStream).

Return type:

pdftools_sdk.image.document.Document

Raises: