forked from johnfercher/maroto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
consts.go
101 lines (87 loc) · 2.47 KB
/
consts.go
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
package consts
const (
// DefaultMaxGridSum represents the max value from a cell grid width.
DefaultMaxGridSum float64 = 12.0
// DefaultLineWidth represents the default line width in gofpdf.
DefaultLineWidth float64 = 0.1
)
const (
// Arial represents an arial Font.
Arial string = "arial"
// Helvetica represents a helvetica Font.
Helvetica string = "helvetica"
// Symbol represents a symbol Font.
Symbol string = "symbol"
// ZapBats represents a zapfdingbats Font.
ZapBats string = "zapfdingbats"
// Courier represents a courier Font.
Courier string = "courier"
)
// Align is arRepresentation of a column align.
type Align string
const (
// Left represents a left horizontal align.
Left Align = "L"
// Right represents a right horizontal align.
Right Align = "R"
// Center represents a center horizontal and/or vertical align.
Center Align = "C"
// Top represents a top vertical align.
Top Align = "T"
// Bottom represents a bottom vertical align.
Bottom Align = "B"
// Middle represents a middle align (from gofpdf).
Middle Align = "M"
)
// Orientation is a representation of a page orientation.
type Orientation string
const (
// Portrait represents the portrait orientation.
Portrait Orientation = "P"
// Landscape represents the landscape orientation.
Landscape Orientation = "L"
)
// PageSize is a representation of an page size.
type PageSize string
const (
// A3 represents DIN/ISO A3 page size.
A3 PageSize = "A3"
// A4 represents DIN/ISO A4 page size.
A4 PageSize = "A4"
// A5 represents DIN/ISO A5 page size.
A5 PageSize = "A5"
// Letter represents US Letter page size.
Letter PageSize = "Letter"
// Legal represents US Legal page size.
Legal PageSize = "Legal"
)
// Style is a representation of a style Font.
type Style string
const (
// Normal represents a normal style.
Normal Style = ""
// Bold represents a bold style.
Bold Style = "B"
// Italic represents a italic style.
Italic Style = "I"
// BoldItalic represents a bold and italic style.
BoldItalic Style = "BI"
)
// Extension is a representation of a Image extension.
type Extension string
const (
// Jpg represents a jpg extension.
Jpg Extension = "jpg"
// Png represents a png extension.
Png Extension = "png"
)
// LineStyle is a representation of a line style.
type LineStyle string
const (
// Solid represents a solid style.
Solid LineStyle = "solid"
// Dashed represents a dashed style.
Dashed LineStyle = "dashed"
// Dotted represents a dotted style.
Dotted LineStyle = "dotted"
)