Ugh! Stuck at 72dpi due to WebKit?
I'm starting to think this will need to be a two step process for now by
merging a PDF file that has my logo with a GNC invoice formatted to have
blank space for the logo. Does anyone have suggestions on how I could
automate it into a single step operation?
I'm really appreciating everyone's help!
On 3/19/2025 5:54 PM, John Ralls wrote:
Unfortunately GnuCash’s report-printing facility (and invoices are a flavor of
report) is provided by WebKit, and WebKit thinks it’s printing an HTML page at
screen resolution. This is particularly severe on Windows where we’re forced to
use a very old version of WebKit from before HiDPI graphics were widely
available.
You might try exporting the invoice and opening the file with a different
browser to see if that gets you a higher DPI. You might also try printing to
PDF as PDFs are commonly at higher resolution than web pages.
Regards,
John Ralls
On Mar 19, 2025, at 10:51, Mark Iams-McGuire <m...@flairtones.com> wrote:
GNC appears to be controlling the invoice header size based on pixels. My invoice logo image should
come out to about 5" wide. At 300dpi its 1495px. To get the image to be 5" wide in the
GNC invoice output, I had to reduce it to 513px which becomes an unacceptable 72dpi image. I think
I used the "fancy" style sheet template to create my new renamed style sheet. I have
played around with all of the included style sheets with the same results. This is why I want to
find and adjust the come html code for GNC invoice output. BTW - I'm using GNC version 5.10
On 3/18/2025 7:37 PM, Jediator wrote:
If all you need is to adjust the logo image size/pixel resolution, you may want
to use an image editor to adjust the size before you load it to the build-in
style sheet editor. Which style sheet did you use in your invoice report?
-- ND
On 3/18/25 7:39 PM, Mark Iams-McGuire wrote:
Thanks ND,
Modifying the style sheet is my first desired approach. So far I have not been
able to find the right CSS file and/or html file to modify. GNC seems to have
file scattered everywhere.
On 3/18/2025 2:36 PM, Jediator wrote:
Although LaTex is quite powerful, but not without steep learning curve. An
easy way would be to modify or create your own CSS style sheet in GNC and
generate the report in HTML before you print...
-- ND
On 3/18/25 3:20 PM, Mark Iams-McGuire wrote:
I'm not familiar with LaTex but I may need to check it out since you're the
second person to mention it. I don't expect a lot of fancy graphics from
Gnucash, but it seems like throwing a simple not pixelated graphic should be
simple enough. The rest of the program works fine. I'm looking for simplicity
while still looking professional. Thanks.
On 3/18/2025 7:35 AM, Michael or Penny Novack via gnucash-user wrote:
On 3/18/2025 9:11 AM, Robert Heller wrote:
This probably does not help you much, but what I did was abandon using GnuCash
to generate *printed/printable PDF* invoices directly. Instead, I wrote a
simple Python script to extract the invoice information and generate a LaTeX
source file and then used LaTeX to create PDFs that I could send to my
customers.
That is how to do it. If you want "pretty printed" output, have gnucash "print"
to a file, and then use a full powered compositing program to modify that output to your heart's
content.
Think about it for a moment. Why should an accounting program include all the
capabilities of something like LaTex?
Michael D Novack
_______________________________________________
gnucash-user mailing list
gnucash-user@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.
_______________________________________________
gnucash-user mailing list
gnucash-user@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.
_______________________________________________
gnucash-user mailing list
gnucash-user@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.
_______________________________________________
gnucash-user mailing list
gnucash-user@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.
_______________________________________________
gnucash-user mailing list
gnucash-user@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.
_______________________________________________
gnucash-user mailing list
gnucash-user@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.