GNOME Bugzilla – Bug 787018
WebKit2 doesn’t support direct printing of PDF reports.
Last modified: 2018-06-29 23:58:52 UTC
which means that the direct export to PDF via the toolbar will no longer work. From a reply from John Ralls by email: Kit2 doesn’t expose the necessary API to do it separately. They expose the functionality from the print dialog instead. We need to: 1, remove the export to PDF actions and 2, document that users should use “print” instead.
Or (again from John Ralls) 3, Wire the export to PDF button to create a GtkPrintSettings object with the file format, directory, and filename before calling gtk_print_operation_run_dialog()
I'd strongly prefer option 3 here.
I agree. I've mostly got this working but it's not saving the last used path yet, so the default is always $HOME/$jobname.pdf The export to PDF button does the same as print does currently, (with webkit2), it just takes the user to the print dialog where they can choose to "print" to file or a printer. It could probably be removed, as long it's a documented feature.
Created attachment 358929 [details] [review] Work so far
The PDF filename is pre-set to the invoice number as before and currently defaults to the user's $HOME directory. Ideally it should remember the last print-to location. I've removed the pdf button because the print dialog gives the same options anyway.
*** Bug 794915 has been marked as a duplicate of this bug. ***
*** Bug 794941 has been marked as a duplicate of this bug. ***
The print icon and the export to pdf icon both do the same thing! I AM NOT TRYING TO EXPORT TO PDF, I AM TRYING TO PRINT A REPORT! How do I do that without a working print icon? I want to print, NOT export!
We are not deaf, there is no need for squalling!
*** Bug 795104 has been marked as a duplicate of this bug. ***
*** Bug 795592 has been marked as a duplicate of this bug. ***
But 794941, bug 795104 and bug 795592 are not duplicates. I have marked the latter two as duplicates of the first one. This bug 787018 will remain focussed on the webkit2 issue only.
Comment on attachment 358929 [details] [review] Work so far Obsoleted this patch as it's based on Gnu make not cmake. I'll have to re-do this.
Created attachment 371868 [details] [review] Replacement patch for work so far with cmake. Replacement patch for work so far. Selecting file form the print menu pre-populates the filename with the invoice number and defaults location to the users $HOME directory. I'd like it to default to the last used dir. Also print dialog doesn't close after printing(saving) now. Although it does after re-saving, after accepting file overwrite.(?)
*** Bug 796510 has been marked as a duplicate of this bug. ***
GnuCash bug tracking has moved to a new Bugzilla host. The new URL for this bug is https://bugs.gnucash.org/show_bug.cgi?id=787018. Please continue processing the bug there and please update any external references or bookmarks.