Answer the question
In order to leave comments, you need to log in
How to form a header block at the bottom of each page when generating a PDF file in PHP?
From the html form of the document, I form the pdf like this:
.head-res{background: linear-gradient(to top, #fefcea, #c6c6c6);font-weight:bold;}
</style>".$p[18]."<table style='border:0px;margin: 0 auto;clear:both;margin-top:600px;font-size:12px'><tr><td align=right><b>Колонтитул</b><td style='border-left:1px solid red'><b>Колонтитул</b></table>";
$fd=fopen("pdf/$p0.html",'w');
fwrite($fd,$p[18],strlen($p[18]));
fclose($fd);
exec('xvfb-run wkhtmltopdf https://test.com/pdf/'.$p0.'.html pdf/'.$p0.'.pdf');
print "<style>body{margin:0px}</style> <object width=100% height=100% data=pdf/$p0.pdf></object> ";
margin-top:600px;
, but this is not an option. I read that to implement a footer pressed at the bottom, which will be on each created page using html / css, will not work.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question