gpt4 book ai didi

symfony - 使用 KnpSnappyBundle 生成 jpg 时没有资源

转载 作者:行者123 更新时间:2023-12-02 16:07:00 26 4
gpt4 key购买 nike

这似乎是一个已知问题,但我找不到解决方案:

使用 KnpSnappyBundle 生成 jpg/pdf 时,未加载 css 文件。 Here is a discussion在 Google 群组中,但没有提供答案。

有没有人找到解决这个问题的方法?

最佳答案

回答有点晚了,但我遇到了同样的问题,我使用 Assets 的绝对路径解决了它,如下所示:

<link rel="stylesheet" href="{{ app.request.scheme ~'://' ~ app.request.httpHost ~ asset('bundles/factura/css/all.css') }}">

希望对你有帮助

关于symfony - 使用 KnpSnappyBundle 生成 jpg 时没有资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10526157/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com