Images not present in PDF export
Closed this issue · 7 comments
When i try to export a page using the Export to PDF, the images are not present, but there is only the name of the images
how to include the images directly into the PDF file ?
thank you for your help
Embedded images are working fine for me with my MinIO object storage and no special configuration of PDF export. What image settings are you using? What PDF export settings are you using?
Thank you for your response, but i do not have any ideas about that, i just installed a docker serveur with the last solidnerd container on it, but i have not done any different configuration inside the bookstack container, so i think i am using the normap dompdf exporter... how can i change the image configuration ? where should i check that ? thank you in advance for your help
Image settings would be configured in the container environment as described in the Bookstack documentation.
You're using the dompdf exporter if you haven't set anything else.
Unfortunately, I've just tested a fresh docker compose up to see whether I can reproduce the issue and image exports worked fine for me. Is there anything in the Laravel log? Can you show an example export, both as a PDF and as a screenshot to illustrate the difference?
You can see the instructions for viewing the error log on the Bookstack documentation. To view that file in the container, you can run docker compose exec bookstack bash to get a shell in the container, then look at the files from logs there.
On PDF export, BookStack will attempt to embed images within the document during the conversion process.
It will only do this for images it can identify that the user has access to.
The following things can prevent images being included in PDF exports:
- Permissions preventing the exporting user seeing the pages the images were uploaded to.
- Images being from external resources.
- Images not being recognized as BookStack images.
- This can often be caused by URL changes since the images were uploaded, or slight misalignment between the
APP_URLconfigured and the actual URL in use.
- This can often be caused by URL changes since the images were uploaded, or slight misalignment between the
Ok, found out, the problem is comming from : This can often be caused by URL changes since the images were uploaded, or slight misalignment between the APP_URL configured and the actual URL in use
i am trying to found out a solution to the problem
@homeopatix BookStack provides a command for changing existing URLs in the database:
https://www.bookstackapp.com/docs/admin/commands/#update-system-url
This can be used to update & align stored image URLs in content.
Magnifique, this command did the jobs and every things is now working smooth as expected, thank you very much for your help,
i close the issue