Invoice PDF prints off Black Page?

  • Posts: 496
  • Thank you received: 7
  • Hikashop Business
4 months 4 days ago #351932

-- HikaShop version -- : 4.7.2
-- Joomla version -- : 4.3.1
-- PHP version -- : 8
-- Browser(s) name and version -- : Firefox

Hi, Since updating to J4 and installing the new invoice PDF, when selecting multiple orders to print, it now prints a blank page between each order (see screen dumps) it did not previously do this?

Rgds



Attachments:
Last edit: 4 months 4 days ago by mohairbears.

Please Log in or Create an account to join the conversation.

  • Posts: 79892
  • Thank you received: 12704
  • MODERATOR
4 months 4 days ago #351942

Hi,

In the file plugins/hikashop/attachinvoice/attachinvoice.php there is the line:

$content = implode('<div style="page-break-before:always"></div>',$pdfContent);
It defines what separates the invoices.
In some cases, it's possible that the page break leads to an extra page between the invoices.
In that case, change the line to:
$content = implode('',$pdfContent);
and it should work like you expect it to.

Please Log in or Create an account to join the conversation.

  • Posts: 496
  • Thank you received: 7
  • Hikashop Business
3 months 4 weeks ago #352045

Hi, Yes that has fixed it.

Thank you

Please Log in or Create an account to join the conversation.

Time to create page: 0.076 seconds
Powered by Kunena Forum