PrintCompositor.newFromView

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 propertyPrintCompositor:tab-width, propertyPrintCompositor:highlight-syntax, propertyPrintCompositor:wrap-mode, propertyPrintCompositor:body-font-name and propertyPrintCompositor:print-line-numbers.

Parameters

view gtksource.view.View

a #GtkSourceView to get configuration from.

Return Value

Type: gtksource.print_compositor.PrintCompositor

a new print compositor object.