Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wkhtmltopdf #4

Open
evansadji opened this issue Mar 5, 2023 · 2 comments
Open

wkhtmltopdf #4

evansadji opened this issue Mar 5, 2023 · 2 comments

Comments

@evansadji
Copy link

wkhtml2pdf needs to be updated, it still doesn't display the right way... like a missing logo, box etc...
is there a way of adding appropriate wkhtmltopdf in docker ?

@minhng92
Copy link
Owner

minhng92 commented Mar 7, 2023

Hi @evansadji ,

Adding report.url with value "http://127.0.0.1:8069" to system parameters fixes the issue for me (missing logo, box).

In production server, beside adding report.url we should add web.base.url.freeze = True to prevent changing web.base.url

image

@minhng92
Copy link
Owner

minhng92 commented Mar 7, 2023

If you want to update wkhtml2pdf or install additional package to docker container, please do the following steps:

  1. Uncomment the following line in docker-compose.yml
# - ./entrypoint.sh:/entrypoint.sh
  1. Modify entrypoint.sh by adding your custom installations
  2. Recreate the docker container
docker-compose down
docker-compose up  -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants