When generating a PDF with additional files they are not applied in the result. It is obvious with Images, after the generation there is just the default no image icon and an outline where the image should have been. I've used the area bricks and templates from the demo project. But CSS Files are also not applied correctly as visible in the screenshots
I've implemented a possible solution for the assets function and will create a pull request and link it to this issue. But I actually don't really like that solution as it is a little bit hacky so any input would be appreciated. With the implemented changes the pdf is generated correctly with all images and styles:
When generating a PDF with additional files they are not applied in the result. It is obvious with Images, after the generation there is just the default no image icon and an outline where the image should have been. I've used the area bricks and templates from the demo project. But CSS Files are also not applied correctly as visible in the screenshots
PDF Page in Editor
Resulted PDF
I think this is because Gotenberg cannot handle additional files that are not sent via the api. At least I understand the documentation the way that all additional files need to be send via the assets part
I've implemented a possible solution for the assets function and will create a pull request and link it to this issue. But I actually don't really like that solution as it is a little bit hacky so any input would be appreciated. With the implemented changes the pdf is generated correctly with all images and styles: