Recently upgraded site to use print 6.x-1.11 with dompdf 0.51

After uploading new files, I uploaded backup copy of print.css file and updated the new versions of print.pages.inc & print_pdf.pages.inc to include some customizations.

One customization is to enable the pdf footer (uncomment line 178 in print_pdf.pages.inc and edit the footer contents at line 387).

Everything seems to be working as before, except the footer does not print.
Is there something I am missing to enable the dompdf footer?

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

It never worked properly. That's why I disabled it.

Try dompdf 0.6, maybe it supports footers a little bit better (I haven't tested)

goldoak jp’s picture

It was working before the upgrade.

Not sure of the steps I did to get it working the first time.

Is there anything else that needs to be done to enable (besides the uncomment)?

goldoak jp’s picture

I tried using the newer version of dompdf but there was no change.

One thing I noticed, and seemed to spark something in the deep, dark recesses of my memory, was a slight difference in what I had previously and the new version of the print_pdf.pages.inc file.

On line 394, which begins the footer function, I have:
function theme_print_pdf_dompdf_footer(&$html) {

But the new version of the file has:
function theme_print_pdf_dompdf_footer($html) {

Seems to me, I found a post somewhere that suggested to add the "&". I have tried it both ways and neither works now.

Any other thoughts how to get this working again?
Thanks

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

The '&' was removed because of incompatibilities between PHP 5.3 and the rest.

I've verified that $html variable is correctly passed in and out of that function in it's current form (removing the comment from the theme call).. The problem is that dompdf simply doesn't care about the footer (at least in my case).

If you find a way to make it work, please reopen the issue.