11
pdfOut_begin_pdf(pdf);
14
int font_obj=pdfOut_add_xref(pdf);
15
pdfOut_printf(pdf,"%d 0 obj\n"
17
" /Subtype /Type1\n" // /TrueType,/Type3
23
const int PageWidth=595,PageLength=842;
24
int cobj=pdfOut_add_xref(pdf);
25
const char buf[]="BT /a 10 Tf (abc) Tj ET";
26
pdfOut_printf(pdf,"%d 0 obj\n"
33
,cobj,strlen(buf),buf);
35
int obj=pdfOut_add_xref(pdf);
36
pdfOut_printf(pdf,"%d 0 obj\n"
39
" /MediaBox [0 0 %d %d]\n"
41
" /Resources << /Font << /a %d 0 R >> >>\n"
44
,obj,PageWidth,PageLength,cobj,font_obj); // TODO: into pdf->
45
pdfOut_add_page(pdf,obj);
46
pdfOut_finish_pdf(pdf);