C:\Program Files\
wkhtmltopdf\bin>
wkhtmltopdf.exe --page-width 188mm --page-height 2900mm -L 0 -R 0 "src.html" target.pdf
You can change the page length e.g. in the above code. it will not be cut like that, you can customize the table by inline styling to give it an outer border-style like in the below image. I have a long PDF and I've increased too much of that single page you can adjust the height accordingly.
You can see more help on this link.
https://wkhtmltopdf.org/usage/wkhtmltopdf.txt
Solution :::::
$snappy = new Pdf("\"C:\\Program Files\\wkhtmltopdf\\bin\\wkhtmltopdf.exe\"");
header('Content-Type: application/pdf');
snappy->setOption('page-width', '188m');
snappy->setOption('page-height', '2900m'); // large height Set what ever suits you// header('Content-Disposition: attachment; filename="file.pdf"'); // to download pdf
//uncomment if you want download also
echo $snappy->getOutput('http://www.github.com'); ## to get out put directly to the browser from a url
echo $snappy->getOutputFromHtml($html); ## to get out put directly to the browser from html
Thanks,
feel free to ask any questions.
thanks
Waqas Raza
Web developer
On Wednesday, 24 March 2021 at 17:54:42 UTC+5 Ambika Sharma wrote:
Hi,
Text get cut off when pdf has large data and it continue on next page, Is there any valid solution for this? Help will be appreciated .
Thanks
--