use poppler version of jbig2stream (fixes segv)
[swftools.git] / spec / smalltext.py
blob45fa2d784e4d1f848f94dcf7ae481cf7697e5d84
1 from sys import *
2 from pdflib_py import *
3 p = PDF_new()
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, "-")
24 PDF_end_page(p)
25 PDF_close(p)
26 PDF_delete(p);