Confused about "types" and page sizes

Re: Confused about "types" and page sizes

by Raymond Fürst -
Number of replies: 0
The page size is defined in type/mytype/certificate.php
There is a line $pdf = new PDF or TCPDF that gets "A4" or "letter" as a parameter.
This sets up the page size of the resulting pdf.

However, each line of text has its own positioning coordinates, and all lines must fit to the paper size in question.

Some functions come in two forms, e.g. draw_frame and draw_frame_letter.

Do you create a new type from scratch or do you evolve the standard types delivered with the module?

Compare the standard letter_portrait with unicode_portrait. You see that all lines have 20+ on their x-coordinates.