-
Notifications
You must be signed in to change notification settings - Fork 1
/
pdfsg.h
43 lines (43 loc) · 2.58 KB
/
pdfsg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
struct pdf_doc *pdf_newdoc(const char *filename);
int pdf_newpage(struct pdf_doc *pdf, float width, float height, const char *label);
void pdf_setinfo(struct pdf_doc *pdf, const char *info);
int pdf_setfont(struct pdf_doc *pdf, const char *font);
int pdf_enddoc(struct pdf_doc *pdf);
void pdf_endgroup(struct pdf_doc *pdf);
int pdf_newgroup(struct pdf_doc *pdf);
void pdf_addgroup(struct pdf_doc *pdf, int p, int g);
void pdf_concat(struct pdf_doc *pdf, float a, float b, float c, float d, float x, float y);
void pdf_moveto(struct pdf_doc *pdf, float x1, float y1);
void pdf_lineto(struct pdf_doc *pdf, float x1, float y1);
void pdf_curveto(struct pdf_doc *pdf, float x1, float y1, float x2, float y2, float x3, float y3);
void pdf_conicto(struct pdf_doc *pdf, float x1, float y1, float x2, float y2);
void pdf_rectangle(struct pdf_doc *pdf, float x, float y, float width, float height);
void pdf_closepath(struct pdf_doc *pdf);
void pdf_fill(struct pdf_doc *pdf);
void pdf_stroke(struct pdf_doc *pdf);
void pdf_fillstroke(struct pdf_doc *pdf);
void pdf_setopacity(struct pdf_doc *pdf, float v);
void pdf_setfill(struct pdf_doc *pdf, float r, float g, float b);
void pdf_setstroke(struct pdf_doc *pdf, float r, float g, float b);
void pdf_setgray(struct pdf_doc *pdf, float f, float s);
void pdf_setlinewidth(struct pdf_doc *pdf, float w);
void pdf_setlinejoin(struct pdf_doc *pdf, int v);
void pdf_setlinecap(struct pdf_doc *pdf, int v);
void pdf_setmiterlimit(struct pdf_doc *pdf, int v);
void pdf_setdash(struct pdf_doc *pdf, float a[], int n, int d);
void pdf_clip(struct pdf_doc *pdf);
void pdf_save(struct pdf_doc *pdf);
void pdf_restore(struct pdf_doc *pdf);
void pdf_setcolor(struct pdf_doc *pdf, float r, float g, float b, float a);
void pdf_scale(struct pdf_doc *pdf, float x, float y);
void pdf_translate(struct pdf_doc *pdf, float x, float y);
void pdf_rotate(struct pdf_doc *pdf, float angle);
void pdf_line(struct pdf_doc *pdf, float x1, float y1, float x2, float y2);
void pdf_triangle(struct pdf_doc *pdf, float x1, float y1, float x2, float y2, float x3, float y3);
void pdf_quad(struct pdf_doc *pdf, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4);
void pdf_polyline(struct pdf_doc *pdf, float x[], float y[], int n);
void pdf_polygon(struct pdf_doc *pdf, float x[], float y[], int n);
void pdf_ellipse(struct pdf_doc *pdf, float x, float y, float xr, float yr);
void pdf_circle(struct pdf_doc *pdf, float x, float y, float r);
void pdf_text(struct pdf_doc *pdf, const char *text, int font, float size, float x, float y, float angle);
void pdf_addraw(struct pdf_doc *pdf, const char *code);