Error opening PDF invoice (attach invoice plugin) in Adobe Acrobat

  • Posts: 189
  • Thank you received: 11
  • Hikashop Business
8 months 1 week ago #359720

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 5.0.3
-- PHP version -- : 8.2

When I get an email with a generated invoice, the invoice will give an error when opening in Adobe Acrobat. After some inspection it looks like there is something wrong with fonts not loaded. As far as I can see is the main problem the footer. Also on the bottom left there is a link to TCPDF embedded which needs some kind of Chinese font.

If you need an invoice PDF I'll sent it by email due to privacy reasons.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
8 months 1 week ago #359722

Hi,

Which version of the PDF invoice plugin are you using ? What did you select in the "font" setting of the plugin ?
In the code of the plugin, we use the function sefDefaultFont of the HTML2PDF library in order to set the font that you selected in the settings of the plugin. And it's then the job of HTML2PDF to include the font to the PDF. So I'm afraid there is not much we can do as we don't have control on this from the plugin's end.
Did you add custom CSS to the attachinvoice/invoice.php layout file where you change the font in CSS ? That might explain why it's looking for a different font ?

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

Time to create page: 0.057 seconds
Powered by Kunena Forum