Go to print/12312312312312312

You will get

Warning: Cannot use a scalar value as an array in print_pdf_generate_path() (line 98 of sites/all/modules/print/print_pdf/print_pdf.pages.inc).
Warning: Cannot use a scalar value as an array in print_pdf_generate_path() (line 99 of sites/all/modules/print/print_pdf/print_pdf.pages.inc).
Warning: Cannot use a scalar value as an array in print_pdf_generate_path() (line 100 of sites/all/modules/print/print_pdf/print_pdf.pages.inc).
Warning: Cannot use a scalar value as an array in print_pdf_generate_path() (line 103 of sites/all/modules/print/print_pdf/print_pdf.pages.inc).
Notice: Undefined index: scheme in _print_pdf_dompdf() (line 206 of sites/all/modules/print/print_pdf/print_pdf.pages.inc).
Notice: Undefined index: host in _print_pdf_dompdf() (line 207 of sites/all/modules/print/print_pdf/print_pdf.pages.inc).

And a blank pdf will print.

Comments

alinikkhah created an issue. See original summary.

alinikkhah’s picture

This patch gets rid of the warnings and avoids printing a blank pdf.