In pdflib
:
$font = $p->load_font("Helvetica", "unicode", "");
$p->setfont($font, 12);
$p->set_text_pos(100, 100);
$p->show('My text');
First arguments of set_text_pos($x, $y)
tells library where to position bottom-left corner of text element.
Question. How can I change the origin of text to be top-left corner, so that "My text" string appears below 100x100 coordinate?