So I got into a problem of printing PDF Student ID card, I have tried several way and tried to make it look as I wanted to.
- First, the gap between student id card is really big. I want to make it smaller, by mistake I changed the heading of "stylesheet" to "pdf", so it works.
- Second, I want the letter "Address" should be above the address of each student, so I swapped the line. It works too.
- Third, I want to make the DOB have a separate line, so i delete "display: flex" on the code and it works to.
- Last, My country (Vietnam) mostly use A4 paper size, so I change the inside code to 2 colums of Student ID Card so it would fit the paper.
If anyone get problem with the create Student ID card to print in PDF but still want to keep the Size of Student ID card that they want. (my one is 60 mm x 90mm) (it's so ridiculous that the person who code this make vertical become horizontal and vice versa.)
Here is the code (it too long so I can't post the code directly here).
drive.google.com
I just want to share my experience when I use Infix edu. Hope somebody will need this. By the way, if you want to print in A4, the
Grid gap in Generate ID Card is
35. So it will be fit like 8 student id cards a page.
this is the result of PDF print with A4 size
