PrintCompositor.newFromView
gtksource.print_compositor.PrintCompositor newFromView(gtksource.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 #GtkSourcePrintCompositor:tab-width, #GtkSourcePrintCompositor:highlight-syntax, #GtkSourcePrintCompositor:wrap-mode, #GtkSourcePrintCompositor:body-font-name and #GtkSourcePrintCompositor:print-line-numbers.
Parameters
view | a #GtkSourceView to get configuration from. |
Returns
a new print compositor object.