PDF Styling Issues for Tickets - Need Help

  • Josh Gilson
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 3 months ago #130675 by Josh Gilson
PDF Styling Issues for Tickets - Need Help was created by Josh Gilson
Howdy, I'm trying to set a custom ticket look and everything I do doesn't really work. Emails all look fine, when I test the html with the inline styling it works, but once I put the code into the PDF ticket area, it doesn't load correctly.

Here's an example of code I tried that works perfect outside EB but when added it doesn't work: community.suitecrm.com/t/use-inline-styl...-pdf-templates/42481

What am I doing wrong? Is there a certain type of layout, template I should use?

I was trying to make something like this too (without success in EB): htmlpdfapi.com/blog/event_ticket_templates

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

More
6 years 3 months ago #130688 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic PDF Styling Issues for Tickets - Need Help
Hello

Unfortunately, working with PDF is quite difficult. The library which we are using in the extension is TCPDF. It does not have good documentation and the support for HTML or css is quite limitted

So you will have to try to build the layout yourself using basic HTML tag like table, tr, td... as in the sample ticket layout. Then try to download to see if it meets your need

We plan to switch to a better library in the next release with much better documentation and better HTML / CSS support mpdf.github.io/

However, it will take sometime for us (6 to 8 weeks) to have this new version completed

So for the time being, you would have to try to build the layout yourself (keep trying) until it meets your need (without good documentation, sorry)

Tuan
The following user(s) said Thank You: Josh Gilson

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

  • Josh Gilson
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 3 months ago #130704 by Josh Gilson
Replied by Josh Gilson on topic PDF Styling Issues for Tickets - Need Help
Thank you, a new and better option would be greatly welcomed. My project isn't going live for about 8 weeks, so it might work out. But I'll keep an eye out for this. :)

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

More
6 years 3 months ago #130714 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic PDF Styling Issues for Tickets - Need Help
OK. Thanks Josh
The following user(s) said Thank You: Josh Gilson

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

Moderators: Tuan Pham Ngoc