PrintCompositor.from_view


Description:

[ CCode ( has_construct_function = false ) ]
public PrintCompositor.from_view (View view)

Creates a new print compositor that can be used to print the buffer associated with view.

This constructor sets some configuration properties to make the printed output match view as much as possible. The properties set are [property@PrintCompositor:tab-width], [property@PrintCompositor:highlight-syntax], [property@PrintCompositor:wrap-mode], [ property@PrintCompositor:body-font-name] and [property@PrintCompositor:print-line-numbers].

Parameters:

view

a View to get configuration from.

Returns:

a new print compositor object.