After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 787018 - WebKit2 doesn’t support direct printing of PDF reports.
WebKit2 doesn’t support direct printing of PDF reports.
Status: RESOLVED OBSOLETE
Product: GnuCash
Classification: Other
Component: General
git-master
Other All
: Normal normal
: future
Assigned To: gnucash-general-maint
gnucash-general-maint
: 794915 796510 (view as bug list)
Depends on:
Blocks: 778981
 
 
Reported: 2017-08-30 15:13 UTC by Mike Evans
Modified: 2018-06-29 23:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Work so far (9.69 KB, patch)
2017-09-01 12:26 UTC, Mike Evans
none Details | Review
Replacement patch for work so far with cmake. (10.38 KB, patch)
2018-05-09 18:41 UTC, Mike Evans
none Details | Review

Description Mike Evans 2017-08-30 15:13:44 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.
Comment 1 Mike Evans 2017-08-31 09:55:30 UTC
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()
Comment 2 Geert Janssens 2017-09-01 11:58:57 UTC
I'd strongly prefer option 3 here.
Comment 3 Mike Evans 2017-09-01 12:24:38 UTC
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.
Comment 4 Mike Evans 2017-09-01 12:26:58 UTC
Created attachment 358929 [details] [review]
Work so far
Comment 5 Mike Evans 2017-10-24 10:55:26 UTC
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.
Comment 6 John Ralls 2018-04-03 03:02:29 UTC
*** Bug 794915 has been marked as a duplicate of this bug. ***
Comment 7 Frank H. Ellenberger 2018-04-06 23:51:56 UTC
*** Bug 794941 has been marked as a duplicate of this bug. ***
Comment 8 occurs-60189 2018-04-07 18:28:41 UTC
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!
Comment 9 Frank H. Ellenberger 2018-04-09 07:41:19 UTC
We are not deaf, there is no need for squalling!
Comment 10 John Ralls 2018-04-09 14:40:47 UTC
*** Bug 795104 has been marked as a duplicate of this bug. ***
Comment 11 John Ralls 2018-04-27 02:54:56 UTC
*** Bug 795592 has been marked as a duplicate of this bug. ***
Comment 12 Geert Janssens 2018-04-27 13:57:33 UTC
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 13 Mike Evans 2018-05-09 15:24:15 UTC
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.
Comment 14 Mike Evans 2018-05-09 18:41:10 UTC
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.(?)
Comment 15 John Ralls 2018-06-07 19:52:49 UTC
*** Bug 796510 has been marked as a duplicate of this bug. ***
Comment 16 John Ralls 2018-06-29 23:58:52 UTC
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.