Skip to content

Commit

Permalink
Debug printing
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Maksimov committed Sep 29, 2021
1 parent ea03bc1 commit c67a2bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions norka/services/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def __init__(self, path: str, document: Document):

def on_load_changed(self, webview: WebKit2.WebView, event: WebKit2.LoadEvent):
# When html is fully loaded then setup PrintOperation and print to PDF.
print('PDFPrinter event: ', event)
if event == WebKit2.LoadEvent.FINISHED:
print_settings = Gtk.PrintSettings()
print_settings.set(Gtk.PRINT_SETTINGS_OUTPUT_BASENAME, self.basename)
Expand Down

0 comments on commit c67a2bc

Please sign in to comment.