2 from pdflib_py
import *
4 PDF_open_file(p
, "smalltext.pdf")
6 PDF_set_parameter(p
, "usercoordinates", "true")
8 PDF_set_info(p
, "Creator", "smalltext.py")
9 PDF_begin_page(p
, 612, 200)
10 font
= PDF_load_font(p
, "Helvetica", "host", "")
12 PDF_setfont(p
, font
, 6.0)
13 PDF_set_text_pos(p
, 40, 100);PDF_show(p
, "'")
14 PDF_set_text_pos(p
, 80, 100);PDF_show(p
, "i")
15 PDF_set_text_pos(p
, 120, 100);PDF_show(p
, "l")
16 PDF_set_text_pos(p
, 160, 100);PDF_show(p
, "-")
18 PDF_setfont(p
, font
, 9.0)
19 PDF_set_text_pos(p
, 40, 50);PDF_show(p
, "|")
20 PDF_set_text_pos(p
, 80, 50);PDF_show(p
, "i")
21 PDF_set_text_pos(p
, 120, 50);PDF_show(p
, "l")
22 PDF_set_text_pos(p
, 160, 50);PDF_show(p
, "-")