v0.0.450 wpdf
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 3m33s
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Failing after 3m33s
This commit is contained in:
80
wpdf/wpdfConstants.go
Normal file
80
wpdf/wpdfConstants.go
Normal file
@@ -0,0 +1,80 @@
|
||||
package wpdf
|
||||
|
||||
type PDFOrientation string
|
||||
|
||||
const (
|
||||
Portrait PDFOrientation = "P"
|
||||
Landscape PDFOrientation = "L"
|
||||
)
|
||||
|
||||
type PDFSize string
|
||||
|
||||
const (
|
||||
SizeA3 PDFSize = "A3"
|
||||
SizeA4 PDFSize = "A4"
|
||||
SizeA5 PDFSize = "A4"
|
||||
SizeLetter PDFSize = "Letter"
|
||||
SizeLegal PDFSize = "Legal"
|
||||
SizeTabloid PDFSize = "Tabloid"
|
||||
)
|
||||
|
||||
type PDFFontFamily string
|
||||
|
||||
const (
|
||||
FontCourier PDFFontFamily = "courier"
|
||||
FontHelvetica PDFFontFamily = "helvetica"
|
||||
FontTimes PDFFontFamily = "times"
|
||||
FontZapfDingbats PDFFontFamily = "zapfdingbats"
|
||||
FontSymbol PDFFontFamily = "symbol"
|
||||
)
|
||||
|
||||
type PDFFontStyle string
|
||||
|
||||
const (
|
||||
Normal PDFFontStyle = ""
|
||||
Bold PDFFontStyle = "B"
|
||||
Italic PDFFontStyle = "I"
|
||||
BoldItalic PDFFontStyle = "IB"
|
||||
)
|
||||
|
||||
type PDFBorder string
|
||||
|
||||
const (
|
||||
BorderNone PDFBorder = ""
|
||||
BorderFull PDFBorder = "1"
|
||||
BorderLeft PDFBorder = "L"
|
||||
BorderTop PDFBorder = "T"
|
||||
BorderRight PDFBorder = "R"
|
||||
BorderBottom PDFBorder = "B"
|
||||
BorderTLR PDFBorder = "TLR"
|
||||
BorderLR PDFBorder = "LR"
|
||||
)
|
||||
|
||||
type PDFTextBreak int
|
||||
|
||||
const (
|
||||
BreakToRight PDFTextBreak = 0
|
||||
BreakToNextLine PDFTextBreak = 1
|
||||
BreakToBelow PDFTextBreak = 2
|
||||
)
|
||||
|
||||
type PDFTextAlign string
|
||||
|
||||
const (
|
||||
AlignLeft PDFTextAlign = "L"
|
||||
AlignHorzCenter PDFTextAlign = "C"
|
||||
AlignRight PDFTextAlign = "R"
|
||||
)
|
||||
|
||||
type PDFRectStyle string
|
||||
|
||||
const (
|
||||
RectFill PDFRectStyle = "F"
|
||||
RectOutline PDFRectStyle = "D"
|
||||
RectFillOutline PDFRectStyle = "FD"
|
||||
)
|
||||
|
||||
const (
|
||||
BackgroundFill = true
|
||||
BackgroundTransparent = false
|
||||
)
|
Reference in New Issue
Block a user