Chrome PDF Generator issues (Print_designer)

I understand, that since print designer V1.5.0 we have the option to use chrome for pdf generation instead of wkhtmltopdf.
We run V1.5.2, is there anything we need to change in order to use chrome, or is this now enabled by default?

@maharshivpatel Any hint to documentation is appreciated.

used custom print format is uses wkhtmltopdf

PDF generation using Chrome was added due to the technical limitations of wkhtmltopdf.

Personally, I recommend using Chrome for PDF generation.

You can change here:

Thanks for all the replies, unfortunately I don’t see the option using chrome as PDF generator.

Our Server ist running:

Installed Apps

ERPNext: v16.0.0-dev

Framework: v16.0.0-dev

Print Designer: v1.5.2

is there anything else we need to do in order to activate the chrome option?

Try bench setup-chrome
And bench migrate

hmm, seems thats not it

I’m not saying this is the only problem, but you do have a version mismatch between Frappe, ERPNext, and Print Designer. If you are using develop branch for the first two, then Print Designer’s develop branch should be used as well. Hopefully that’s all it is.

Changed to dev branch, unfortunately still the same problem.

ReportLab has a pdfgen module since long time, used in big projects.

thanks for bringing this up, I think this information is more relevant to the developer in case they wanna integrate it into frappe. In my case fixing the issue would probably be better

this comment its relevant today?

1 Like

If you mean the docker dependencies mentioned in the article, yes. You need to make sure those packages are part of your build as you create an image with the print_designer app.

Errored out saying no such command ‘setup-chrome’
I am using bench 5.25.9

That means you don’t have the print_designer app in your bench. If you’re on docker, you need it part of your image build. If not on docker, you need to bench get-app. Then, regardless of your environment, you need to install it to your site.