- last update
over 1 year ago 54 pass - @rowrowrowrow opened merge request.
- last update
about 1 year ago 54 pass
I think that It would be nice if there si posible to add page numbers in footer for dompdf.
My suggestion is that there is an option in the configuration (check box) if you want to have page number or no.
Also to have a drop-down list to position page number (center, left, right)
Or maybe It is better to create a template entity-print-footer.html.twig where you would stype your page number.
Because dompdf is:
dompdf is an HTML to PDF converter. At its heart, dompdf is (mostly) CSS2.1 compliant HTML layout and rendering engine written in PHP. It is a style-driven renderer: it will download and read external stylesheets, inline style tags, and the style attributes of individual HTML elements. It also supports most presentational HTML attributes.
it's probably best that its done through template.
$dompdf = new DOMPDF();
$domdpf->load_html($html);
$dompdf->render();
$font = Font_Metrics::get_font("helvetica", "bold");
$dompdf->get_canvas()->page_text(72, 18, "Header: {PAGE_NUM} of {PAGE_COUNT}", $font, 6, array(0,0,0));
$dompdf->stream();
What do you think of my idea?
Active
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.