Page 1 of 1

Problem with PDF attach on email

Posted: 05 May 2021, 18:08
by vitoricciardi
Hi
I configured the program to send an email when the order is created by the customer, the email, in addition to the order in HTML, has attached the pdf. The email is sent (even if it does not show me the images of the document) the PDF file is generated and correctly attached to the email but it is created wrong and I cannot open it.
I have Phoca PDF component and plugin
Thank You

Re: Problem with PDF attach on email

Posted: 07 May 2021, 11:42
by Jan
Hi, it can happen, that e.g. some error message is rendered before the PDF document header.

Try to download the PDF and open it in text editor, mostly there are two kinds of problems:

- error message is rendered in first row and it prevents from displaying the PDF because of wrong header
- or instead of PDF the html document including error message is rendered "into" PDF document.

Jan

Re: Problem with PDF attach on email

Posted: 10 May 2021, 08:35
by vitoricciardi
I opened a pdf order with notepad and I see only the "1" number.

Re: Problem with PDF attach on email

Posted: 12 May 2021, 13:16
by Jan
Hi, the PDF only includes one string "1"?

This looks like some debug, etc. which is stopped after some value?

Do you get the same when you enable displaying PHP errors and enable debug mode in Joomla! global configuration?

Jan