summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Seidel <kevin@zahlz.com>2018-01-02 14:37:37 +0100
committerKevin Seidel <kevin@zahlz.com>2018-01-02 14:37:37 +0100
commitd0cda52642506c515aed23ac7468831de11ad465 (patch)
tree557afdc524d03af1d683e12b04a8d5cb6bc90535
parent7751c17f106d9d7d4c6c290b969ece1c8dab4371 (diff)
Add constants for Orientation, Alignment, ...
-rw-r--r--types.go76
1 files changed, 76 insertions, 0 deletions
diff --git a/types.go b/types.go
new file mode 100644
index 0000000..1d8918e
--- /dev/null
+++ b/types.go
@@ -0,0 +1,76 @@
+package gofpdf
+
+// Page orientation
+const (
+ // PageOrientationPortrait ...
+ PageOrientationPortrait = "P"
+ // PageOrientationLandscape ...
+ PageOrientationLandscape = "L"
+)
+
+// Size Unit
+const (
+ // UnitPoint ...
+ UnitPoint = "pt"
+ // UnitMillimeter ...
+ UnitMillimeter = "mm"
+ // UnitCentimeter
+ UnitCentimeter = "cm"
+ // UnitInch
+ UnitInch = "inch"
+)
+
+// Page size
+const (
+ // PageSizeA3 ...
+ PageSizeA3 = "A3"
+ // PageSizeA4 ...
+ PageSizeA4 = "A4"
+ // PageSizeA5 ...
+ PageSizeA5 = "A5"
+ // PageSizeLetter ...
+ PageSizeLetter = "Letter"
+ // PageSizeLegal ...
+ PageSizeLegal = "Legal"
+)
+
+// Border
+const (
+ // BorderNone ...
+ BorderNone = ""
+ // BorderFull ...
+ BorderFull = "1"
+ // BorderLeft ...
+ BorderLeft = "L"
+ // BorderTop ...
+ BorderTop = "T"
+ // BorderRight ...
+ BorderRight = "R"
+ // BorderBottom ...
+ BorderBottom = "B"
+)
+
+// LineBreak
+const (
+ LineBreakNone = 0
+ LineBreakNormal = 1
+ LineBreakBelow = 2
+)
+
+// Alignment
+const (
+ // AlignLeft ...
+ AlignLeft = "L"
+ // AlignRight ...
+ AlignRight = "R"
+ // AlignCenter ...
+ AlignCenter = "C"
+ // AlignTop ...
+ AlignTop = "T"
+ // AlignBottom ...
+ AlignBottom = "B"
+ // AlignMiddle ...
+ AlignMiddle = "M"
+ // AlignBaseline ...
+ AlignBaseline = "B"
+)