I am trying to convert a dynamically generated page using html2pdf and I get this error:
Warning: Cannot modify header information - headers already sent by (output started at /home/renal_prescRequest_review.php:78) in /home/test/html2pdf/_tcpdf_5.0.002/tcpdf.php on line 6141
TCPDF ERROR: Some data has already been output to browser, can't send PDF file...
I do not fully understand the reason for this error.
Actually I would like my program to download the contents of the page as PDF.