Certificates / Invoices formatting

  • Ira Weintraub
  • Topic Author
  • Offline
  • New Member
  • New Member
More
5 years 2 months ago #122056 by Ira Weintraub
Certificates / Invoices formatting was created by Ira Weintraub
Anyone have any suggestions in regards to formatting the html certificates or invoices to appear correctly on the PDF? Having a particular issue with not be able to use absolute posting, as well as font size discrepancies.

Thank you.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
5 years 2 months ago #122062 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Certificates / Invoices formatting
Hello Ira

Sadly, PDF, unlike HTML, has very limited support for css. The library which we are using (TCPDF) does not have a clear documentation about it.

So you can only use basic HTML tags like table, tr, td to build the layout of the invoices/certificate

Maybe look at this example tcpdf.org/examples/example_061/ to see basic css supported by the library to see whether it can be used for your need

In the future, when we can raise minimum PHP requirement to 5.6, we will use a better library for advance css support, but for now, we will have to use what provided in TCPDF

Tuan

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

More
4 years 11 months ago #124988 by E-volve.nl
Replied by E-volve.nl on topic Certificates / Invoices formatting

Tuan Pham Ngoc wrote: Hello Ira


In the future, when we can raise minimum PHP requirement to 5.6, we will use a better library for advance css support, but for now, we will have to use what provided in TCPDF

Tuan


In the future ... minimum PHP 5.6 ?? I think for security reasons alone u should set minimum requirement to 7.1.
Plus, the PDF ticket option with this limitations on styling, is almost useless..

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
4 years 11 months ago #124993 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Certificates / Invoices formatting
5.6 would be the right option for now as not all customers are running on PHP 7. We can only raise minimum requirement to PHP 7.1 (or 7.2) when we drop support for Joomla 3 (maybe in about 2 years).

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc