Hi @fkardame
I just want to say I’m very thankful for you being there.
I am no expert as I don’t have a background coding.
But I figured out some things, in v14 at least.
Différent things but might not be related.
-
When the HTML gets converted to pdf, erpnext is using gkhtmltopdf. The problem is gkhtmltopdf works with JavaScript but not with js from what I read. It use very basic JavaScript, so depending on the JavaScript version, it will fails to execute the code because most likely of syntax error or elements that aren’t present with the compatibility version of JavaScript inside gkhtmltopdf. The thing is I don’t know which version of JavaScript gkhtmltopdf uses and if there is a way to change gkhtmltopdf for another HTML to pdf, and replacing it in erpnext.
-
Some CSS code will not be compatible with gkhtmltopdf. Making it not displaying the barcode… (not sure why)
So I think, we either need to use basic JavaScript coding in the HTML print format (jinja? Js?) to fit the compatibility of the JavaScript version of gkhtmltopdf. Either we replace gkhtmltopdf with something equivalent.
Since I don’t have programming skills, it takes me weeks to just figure out some simple codes.
I see erpnext still includes jsbarcode.js in their install, but what is the use of it if we can’t use it in pdf?
In summary :
1- the print view and choosing print format. Everything words but just no barcode. By everything I mean all HTML and css code for other non related barcode fields such as item name, item code etc…
2- the full page view button in print view option has everything working. Barcode displays and all is working.
3- the pdf generated has 2 things not working : 1- some css working 2- no barcode displayed.
The good thing is I can still print with option 2, however, I have like 500 items and more, I can’t print 1 label per page, and also to click on every single item to print 1 by 1 is not efficient. And I don’t know how I can print the selection of some items or all items.
The item list page where I CAn select can only generate pdf but no option for full page. So that is even worse, as the pdf can’t even view display and also has css not loading up.
I saw in ur other posts, that u also can’t get it to work. So I am not sure, should we give up? What is your alternative solution?