Thanks @pixlapps, i actually found a working solution that did everything i wanted for the particular project i was working on, but it was a while back, and was a pain in the @$$ to setup just right. I think it was called FPDF, but i seem to recall i had to try get everything to PHP first by posting all values inside a hidden form to my php script, anyway it was a pain.
So further information for stuff like this is always welcomed.
Lol, Middle Earth of Load Shedding, I wonder how many countries worth of Wappler users have to endure 2 to 4 hours power cuts sometimes twice a day, I eventually bit the bullet and got a petrol 7.5kva generator to go with my inverters. Silly country, honestly.