pdf - pdf.go
1 package pdf // import "vimagination.zapto.org/pdf"
2
3 import "image"
4
5 type Page struct {
6 Style
7 Header, Footer Block
8 Contents []interface{}
9 }
10
11 type Block struct {
12 Style
13 Contents []interface{}
14 }
15
16 type Inline struct {
17 Style
18 Contents []interface{}
19 }
20
21 type Text string
22
23 type Image struct {
24 image.Image
25 }
26
27 type Link struct {
28 Reference string
29 Contents interface{}
30 }
31
32 type Anchor struct {
33 ID string
34 Contents interface{}
35 }