2 from pdflib_py
import *
5 PDF_open_file(p
, "textarea.pdf")
7 PDF_set_parameter(p
, "usercoordinates", "true")
9 PDF_set_info(p
, "Creator", "smalltext.py")
10 PDF_begin_page(p
, 612, 3000)
11 font
= PDF_load_font(p
, "Courier", "host", "")
13 PDF_setfont(p
, font
, 12.0)
15 # the idea is to overflow the placetext matrix once, so that
16 # we have at least two different ty values
17 for y
in range(3000 / 9):
18 PDF_set_text_pos(p
, 0, y
*9);
19 text
= "".join([md5
.md5(str(i
+j
*732849)).hexdigest() for j
in range(3)])