[GNC] HELP! Invoice Stylesheet, how to? V4.8

Robert Heller heller at deepsoft.com
Sat Jul 1 11:03:14 EDT 2023


At Sat, 1 Jul 2023 09:36:19 -0500 adrien.monteleone at lusfiber.net wrote:

> 
> Ah, you want TWO images. (Your own logo, plus the PayPal logo)
> 
> My guess would be a custom report (via Scheme) or maybe via CSS as I 
> mentioned with a :before or :after pseudo class that inserts the image 
> somewhere but I haven't tested that approach with GnuCash. (I can't see 
> why it wouldn't work though)

There is the Wiki page on custom reports, but I'll have to check it out.  I 
did this once before back in the days of 1.x and/or 2.x (don't remember when 
exactly).  I have the old code lying around -- guessing I can probably 
adapt/update it.

> 
> You won't find instructions anywhere in the GnuCash documentation for 
> this, you'll just need to tinker and do studying outside a la Scheme and 
> CSS/HTML.

Not really a problem for me.  I am proficent in Lisp (Scheme is just a Lisp 
variant).  I know HTML and CSS as well.

> 
> An alternative might be to make a logo image that has both yours and the 
> PayPal logo in it with a white or transparent background so they appear 
> as separate images - maybe one to the left, the other to the right, for 
> example, and then place and size the image so it looks reasonable in the 
> header.

My "header" image is the full width of the page (this is working properly). 
The other is a "button" image that goes somewhere below the invoice content 
(exactly where depends on how much space the invoice content takes up -- eg 
how many line items are in the invoice).

> 
> Regards,
> Adrien
> 
> On 7/1/23 7:17 AM, Robert Heller wrote:
> > I've already gotten the header set up, but there does not seem to be a place
> > to put the other image.  I think I need to create a new image location.  I did
> > that in the older versions with some Scheme code.  I'm guessing I need to do
> > something similar, but it is not clear how to do that.
> 
> _______________________________________________
> 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.
> 
>                                                                                          
> 

-- 
Robert Heller             -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller at deepsoft.com       -- Webhosting Services
                                                                                                                  


More information about the gnucash-user mailing list