<style>
@page { margin: 100px 50px; }
.header { position: fixed; top: -100px; left: -50px; right: -50px; height: 100px; background-color: blue; }
</style>
<div class="header">...</div>
Hi Brian,
Thanks for your support. I tried your techniqe and its really working, but still have a situation like paging in footer.
I know it might be difficult but may be you have solution.
My exact problem is I have 3 pages of document in that
1) first two pages are separated with page group and page data will be static so i can identify pages.
2) third page having dynamic description so it might be content overlapping and may be it can be dividing in two or three pages.
I have to set page number in footer like:
Page 1 of 2, Page 2 of 2
Please help me if you have any suggestions.
--
You received this message because you are subscribed to the Google Groups "dompdf" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dompdf+unsubscribe@googlegroups.com.
To post to this group, send email to dom...@googlegroups.com.
Visit this group at https://groups.google.com/group/dompdf.
For more options, visit https://groups.google.com/d/optout.
<html>
<head>
<style>
@page {
margin: 150px 50px;
}
.header {
position: fixed;
top: -50px;
left: 0px;
right: 0px;
height: 50px;
overflow: hidden;
background-color: orange;
}
</style>
</head>
<body>
<div class="header">...</div>
<!-- content goes here -->
</body>
</html>
<html>
<head>
<style>
@page {
margin: 150px 50px;
}
body {
border: 2px solid black;
}
.footer {
position: fixed;
bottom: -50px;
left: 0px;
right: 0px;
height: 50px;
overflow: hidden;
background-color: orange;
}
.pagenum:after {
content: counter(page);
}
</style>
</head>
<body>
<div class="footer">
Page <span class="pagenum"></span>
</div>
<!-- content goes here -->
</body>
</html>
$dompdf->loadHtml($html);
$dompdf->render();
$font = $dompdf->getFontMetrics->getFont("Arial", "bold");
$pdf->page_text(770, 580, "Page {PAGE_NUM} of {PAGE_COUNT}", $font, 10, array(0, 0, 0));
$dompdf->stream();
Hi Brian,
Thanks for your support. I tried your techniqe and its really working, but still have a situation like paging in footer.
I know it might be difficult but may be you have solution.
My exact problem is I have 3 pages of document in that
1) first two pages are separated with page group and page data will be static so i can identify pages.
2) third page having dynamic description so it might be content overlapping and may be it can be dividing in two or three pages.I have to set page number in footer like:
Page 1 of 2, Page 2 of 2Please help me if you have any suggestions.
--
You received this message because you are subscribed to the Google Groups "dompdf" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dompdf+unsubscribe@googlegroups.com.
To post to this group, send email to dom...@googlegroups.com.
Visit this group at https://groups.google.com/group/dompdf.
For more options, visit https://groups.google.com/d/optout.
Hi Brian,
Can you please help me regarding above issue.Thanks in advance.
Thanks & RegardsPriyank Khunt
To unsubscribe from this group and stop receiving emails from it, send an email to dompdf+un...@googlegroups.com.