pdftools_sdk.image2_pdf.converter

Classes

Converter()

The class to convert one or more images to a PDF document

class pdftools_sdk.image2_pdf.converter.Converter[source]

Bases: _NativeObject

The class to convert one or more images to a PDF document

__init__()[source]
convert(image: Document, out_stream: IOBase, profile: Profile, out_options: OutputOptions | None = None) Document[source]

Convert an image to a PDF document

Parameters:
Returns:

The resulting output PDF which can be used 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.pdf.document.Document

Raises:
convert_multiple(images: DocumentList, out_stream: IOBase, profile: Profile, out_options: OutputOptions | None = None) Document[source]

Convert a list of images to a PDF document

Parameters:
Returns:

The resulting output PDF which can be used 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.pdf.document.Document

Raises: