I want to show the html in pdf only on one page. But it makes it on multiple pages. I tried to add css modifications, but it didn't work eather. There are plently of options to choose, but cant find one that suits.
options avaliable https://github.com/mikehaertl/phpwkhtmltopdf http://wkhtmltopdf.org/usage/wkhtmltopdf.txt
php
$options = array(
'no-outline', // Make Chrome not complain
'margin-top' => 0,
'margin-right' => 0,
'margin-bottom' => 0,
'margin-left' => 0,
// Default page options
'disable-smart-shrinking',
'user-style-sheet' => PATH . '/assets/pdf.css',
);
pdf.css
table:first {
position: relative;
top: 1cm;
left: 1cm;
width: 2cm;
height: 1.6cm;
}
table {
font-size: 10px;
font-family: Arial;
}