Format of the membership card smaller than A7 landscape.

  • Lionel Charrier
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
5 years 5 months ago - 5 years 5 months ago #130542 by Lionel Charrier
Hi

How can I do to generate a membership card at credit card format ?

King Regards
Lionel
Last edit: 5 years 5 months ago by Lionel Charrier.

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

More
5 years 5 months ago #130564 by Tuan Pham Ngoc
Hi Lionel

Unfortunately, the extension uses TCPDF library to generate PDF. Only the following Page Format is supported: A4, A5, A6, A7. It's not possible to generate PDF in a custom format, so your request is not supported

Tuan
The following user(s) said Thank You: Lionel Charrier

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

More
5 years 5 months ago #130618 by Nicky Veitch
Had a similar question from a client. TCPDF is notoriously un-user-friendly. We ended up configuring the Member Card Settings tab as a table, with another table inside of that. The inner table has 3 columns, the 2 outer columns are fixed width 25% each and empty. The middle column 50% has the card layout surrounded by a border. (You could set whatever column widths you like). At the top we laid it out like an introductory letter "attached is your member card", so it looks like the membership card is "printed" on the letter at the bottom.

For the inner table we had to set this to make the border show up in the PDF output:
<table style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt;" border="1" cellspacing="0" cellpadding="2">

Cheers,
Nicky
The following user(s) said Thank You: Lionel Charrier

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