Certificates / Invoices formatting

  • Ira Weintraub
  • Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
More
1 week 3 days 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.

More
1 week 3 days 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.

Moderators: Tuan Pham Ngoc