canvas.text(50, 800, horse);
// true type
String fspec = "enc=utf-8; size=12; file=" + res_dir + "/fonts/DejaVuSans.ttf";
Font font_ttf = doc.font_load(fspec);
canvas.text_font(font_ttf);
canvas.text(50, 750, horse);
// finalize
doc.page_end();
doc.finalize_doc();
}
}