跳至內容
選單
此問題已被標幟
1 回覆
4904 瀏覽次數

Hello!


I try to build my own report ... but when I print, I get an empty PDF.

When I print as HTML, he show the lines.


Other reports are printing normal.


Any idea where I can look?


Thank you  

頭像
捨棄
最佳答案

I have an idea. Make sure that in your report template you at least have the following three div's:

<div class="header"></div>
<div class="page"><!-- content in here --></div>
<div class="footer"></div>

If your report template doesn't have these div's, it will display in HTML, but not in PDF, because wkhtmltopdf needs to know where to find the header and footer of a report.

I hope that this fixes your problem. Please comment if this isn't the solution.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
10月 17
5148
1
7月 24
9186
0
1月 16
3484
PDF reports 已解決
5
7月 25
2363
2
3月 24
2897