Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4826 Представления

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.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
окт. 17
5116
1
июл. 24
9115
0
янв. 16
3425
PDF reports Решено
5
июл. 25
2242
Wrong PDF Format Решено
2
мар. 24
2753