I migrated our Invoice Ninja 4 Install to 5 and tried to create our invoice Template.
I used the normal “Plain” Design to start and tried to insert out background image(we have one with a watermark).
In the CSS Section in Body I added the following:
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: Arial, Helvetica, sans-serif;
font-size: “$font_size”;
zoom: 80%;
background-image: url(‘https://SERVER/images/Watermark.jpg’);
background-repeat: no-repeat;
background-size: 100% 100%;
}
In HTML Preview Mode the watermark is correctly displayed and everything is working in the “normal” mode and in Invoices it is not visible.
We use the NINJA_HOSTED_PDF=true PDF creator.
Does anyone fixed this issue I only changed the CSS body section doesnt changed anything other then that from the Plain template.
Phantomjs with local binary results in cant open PDF on invoice ninja but in the log I see that the PDF is succesfully created in https://Server/tmp_pdf/string under that URL I can open the PDF so with watermark
Ninja_Hosted = no watermark
snappdf = is working so I will use the snappdf if the other thigs are also working with is (mail invoice …)
If you need to debug the ninja hosted I will still be available for this thread otherwise we can close it.
I found a bug I wanted to only display the postal code and the city so I used
$client.postal_code $client.city
the postal code works but with the city variable I get
Tst GmbH.city
in the PDF instead of the actuall city.
Other Variables that uses city are working
for example
$client.postal_city_state
$client.city_state_postal
so maybe the $client.city variable is not implemented ?