Hey, I am very very very very bad at PHP and I am trying to improve.
But anyway, I found a great script which turns a HTML page into a PDF, but the problem is it turns the whole page, with layout etc, into the pdf, which looks really bad with all the navigation etc, on it.
I am trying to come up with a function to only include in the pdf the actual things I want, if you understand me.
This is the original code:
<?php
require('html_to_pdf.inc.php');
$htmltopdf = new HTML_TO_PDF();
//$htmltopdf->useURL(HKC_USE_EASYW); // default HKC_USE_ABC other HKC_USE_EASYW
$htmltopdf->saveFile("abc.pdf");
$htmltopdf->downloadFile("abc.pdf");
//$result = $htmltopdf->convertHTML("<b>MY TEST</b>");
$result = $htmltopdf->convertURL("$value");
if($result==false)
echo $htmltopdf->error();
?>
and so far this is all i managed to work out myself,
$beginingofcontent = "<!--top-->";
$finishofcontent = "<!--bottom-->";
LOL, i know i am bad, but I am not asking for someone to code it for me, I am just asking on someone to give me tips on how and where to look, any help would be really great.
Thanks