[GNC] Income/Expense report to pdf broken
Elliot Huntington
elliot.huntington at gmail.com
Tue Mar 25 01:53:28 EDT 2025
I don't know how GnuCash is loading the GtkWebKitWebView, but I wonder if
this stack overflow thread might be helpful?
https://stackoverflow.com/q/71734719/328275
On Mon, Mar 24, 2025 at 11:49 PM Elliot Huntington <
elliot.huntington at gmail.com> wrote:
> Okay. Thank you for referencing the bug ticket. That's helpful. I don't
> have Gnome Web installed, and I'm not using the Gnome desktop environment.
> Sorry I didn't try that specific browser. I really appreciate you John. The
> work around you provided is really useful. Thank you.
>
> On Mon, Mar 24, 2025 at 10:26 PM John Ralls <jralls at ceridwen.us> wrote:
>
>> Maybe because Chrome isn’t WebKit. That’s why I asked you to try Gnome
>> Web, which is WebKit.
>>
>> You’re not the only one with this problem, see
>> https://bugs.gnucash.org/show_bug.cgi?id=799461
>>
>> Regards,
>> John Ralls
>>
>> On Mar 24, 2025, at 20:12, Elliot Huntington <elliot.huntington at gmail.com>
>> wrote:
>>
>> Thank you for your response John. I am assuming that when you say to
>> "save the report to HTML and open it with a normal browser" you mean to
>> "Export" and choose the HTML format. So that's what I just tried to do and
>> yes. That worked. I exported the Income/Expense Barchart to HTML. Then I
>> opened the html document in Chrome, and the chart data rendered just fine.
>> Then I opted to print that page inside google chrome and save to PDF. The
>> outcome was to have a successfully generated PDF document with the proper
>> chart data inside it.
>>
>> Any ideas why it is necessary to perform this intermediate step to save
>> as HTML and then use Chrome to generate the PDF instead of just having the
>> PDF generation work directly from within GnuCash?
>>
>> On Mon, Mar 24, 2025 at 8:55 PM John Ralls <jralls at ceridwen.us> wrote:
>>
>>> The graphs are implemented with JavaScript, meaning that the browser (in
>>> the case of GnuCash’s report tabs, a GtkWebkitWebView.
>>>
>>> If you save the report to HTML and open it with a normal browser does it
>>> print to PDF correctly? What if it’s Gnome Web, aka Eclipse?
>>>
>>> Regards,
>>> John Ralls
>>>
>>>
>>> > On Mar 24, 2025, at 19:36, Elliot Huntington <
>>> elliot.huntington at gmail.com> wrote:
>>> >
>>> > Hello,
>>> >
>>> > I'm running Arch Linux with GnuCash.
>>> >
>>> > Version: 5.10
>>> > Build ID: 5.10-unknown-commit(2025-02-08)
>>> >
>>> > When I go to: "Reports -> Income & Expense -> Income & Expense Bar
>>> Chart"
>>> > I'm successfully able to see the report data just fine. However, when I
>>> > select the option to "Make Pdf" and proceed to save the report to a
>>> > PDF document on my computer, the report does not export properly to a
>>> > PDF document. It does generate a PDF document. But if I leave the
>>> printer
>>> > settings at the default (meaning portrait mode) then the top half of
>>> the
>>> > generated PDF document appears solid black and the bottom half of the
>>> > document appears solid white. The same happens if I just print the
>>> report.
>>> > Besides the page margins, the top half of the page is black and the
>>> bottom
>>> > half is white. If I change the print settings to be in landscape mode,
>>> both
>>> > the exported PDF document (and the page printed from my printer) both
>>> > appear solid white. Nothing prints in the report at all.
>>> >
>>> > Now, If I generate other reports and export those to PDF, they work
>>> fine.
>>> > For example I am able to successfully export the Income Statement,
>>> Equity
>>> > Statement, Balance Sheet, and Cash Flow reports to PDF documents. They
>>> > export just fine, and the print just fine.
>>> >
>>> > Maybe this has something to do with reports that print charts. I don't
>>> > understand why the Income & Expense Bar Chart report will render fine
>>> in
>>> > the application, but exporting it to a PDF document is broken.
>>> >
>>> > Any ideas?
>>> >
>>> > Thank you,
>>> > Elliot
>>> > _______________________________________________
>>> > gnucash-user mailing list
>>> > gnucash-user at gnucash.org
>>> > To update your subscription preferences or to unsubscribe:
>>> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
>>> > -----
>>> > Please remember to CC this list on all your replies.
>>> > You can do this by using Reply-To-List or Reply-All.
>>>
>>>
>>
More information about the gnucash-user
mailing list