First of all I would like to thank developers for making the best html to pdf php library (I have tried html2pdf, tcpdf, wkhtmltopdf, princexml). It's easy to use and the resulting pdf looks exactly as html full of various CSS rules. I'd say the results are as good as you get with princexml which costs 495$ per single user. If I could make a small donation I would definitely do it :)
Anyway, here are few things I wanted to ask:
* I guess there is still no way to add total page count with simple CSS like you can do in princeXML (counter(pages))
* How do I skip cover page when using php script for inserting page numbers? I know I can insert page count with something like the following:
<script type='text/php'>
if ( isset($pdf) ) {
$font = Font_Metrics::get_font('helvetica', 'normal');
$size = 9;
$y = $pdf->get_height() - 24;
$x = $pdf->get_width() - 15 - Font_Metrics::get_text_width('1/1', $font, $size);
$pdf->page_text($x, $y, '{PAGE_NUM}/{PAGE_COUNT}', $font, $size);
}
</script>
The problem is that it also counts cover page and shows the page number on the cover page which I don't want it to do.
* I don't want to have the script mentioned in the previous question inside of html file as it will be edited by some other people. How could I add it using php code?
PS: there are some undefined variables in cpdf_adapter.cls (lines 820-831) ($_t, $x, $y, $text, $font, $size, $color, $word_space, $char_space, $angle, $code). Is this intentional?