The printing SDK allows you to access Komodo's printing facilities
Methods
-
require("ko/printing").initWithWindow()
-
Set a contextual window for any further commands with this module. If no window is passed in then the main window is used.
-
require("ko/printing").print(view, preview, tofile, selectionOnly)
-
Print the given view (editor)
Parameters:
Name Type Description view
Object Editor view
preview
Boolean Whether to preview the print
tofile
Boolean Print to a file
selectionOnly
Boolean Only print the selection
-
require("ko/printing").printPreview(view, preview, tofile, selectionOnly)
-
Open a print preview of the current file or selection
Parameters:
Name Type Description view
Object Editor view
preview
Boolean Whether to preview the print
tofile
Boolean Print to a file
selectionOnly
Boolean Only print the selection
-
require("ko/printing").showPageSetup()
-
Open the print configuration dialog