Issue
I am generating pdf from html with 79mm width it is not working width:79mm
<style type="text/css" media="print">
@page {
width: 79mm;
page-break-inside: avoid;
}
</style>
and I am using with size so have to fix height then page breaks when dynamic values are more size: 79mm 250mm;
<style type="text/css" media="print">
@page {
size: 79mm 250mm;
page-break-inside: avoid;
}
</style>
Solution
I have solved this problem by defining width and height in page size
@page {
size: 79mm 270mm;
}
Answered By - Prem Signh
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.