__init__ constructor

On this page

init

Initializes a new PreviewOptions instance. The output stream will be closed after use.

def __init__(self, create_page_stream):
    ...
Parameter Type Description
create_page_stream CreatePageStream Creates a stream for a specific page preview.

init

Initializes a new PreviewOptions instance, causing the output stream to be returned to the client for further use.

def __init__(self, create_page_stream, release_page_stream):
    ...
Parameter Type Description
create_page_stream CreatePageStream Creates a stream for a specific page preview.
release_page_stream ReleasePageStream Notifies that the page preview generation is done and gets output stream.

See Also

On this page