Documentation ¶
Overview ¶
Code generated by PDFlexgo; DO NOT EDIT.
Code generated by PDFlexgo; DO NOT EDIT.
Index ¶
- Constants
- type AbstractElement
- type Align
- type BlockElement
- func (block *BlockElement) AlignContent(alignContent flex.Align) *BlockElement
- func (block *BlockElement) AlignItems(alignItems flex.Align) *BlockElement
- func (block *BlockElement) AlignSelf(alignSelf flex.Align) *BlockElement
- func (block *BlockElement) AspectRatio(aspectRatio float64) *BlockElement
- func (block *BlockElement) BackgroundColor(color string) *BlockElement
- func (block *BlockElement) Border(top float64, right float64, bottom float64, left float64) *BlockElement
- func (block *BlockElement) BorderAll(border float64) *BlockElement
- func (block *BlockElement) BorderAllColor(color string) *BlockElement
- func (block *BlockElement) BorderAllWidth(border float64) *BlockElement
- func (block *BlockElement) BorderBottom(border float64) *BlockElement
- func (block *BlockElement) BorderBottomColor(color string) *BlockElement
- func (block *BlockElement) BorderBottomWidth(width float64) *BlockElement
- func (block *BlockElement) BorderColor(top string, right string, bottom string, left string) *BlockElement
- func (block *BlockElement) BorderHorizontal(border float64) *BlockElement
- func (block *BlockElement) BorderHorizontalColor(color string) *BlockElement
- func (block *BlockElement) BorderHorizontalWidth(horizontal float64) *BlockElement
- func (block *BlockElement) BorderLeft(border float64) *BlockElement
- func (block *BlockElement) BorderLeftColor(color string) *BlockElement
- func (block *BlockElement) BorderLeftWidth(width float64) *BlockElement
- func (block *BlockElement) BorderRight(border float64) *BlockElement
- func (block *BlockElement) BorderRightColor(color string) *BlockElement
- func (block *BlockElement) BorderRightWidth(width float64) *BlockElement
- func (block *BlockElement) BorderTop(border float64) *BlockElement
- func (block *BlockElement) BorderTopColor(color string) *BlockElement
- func (block *BlockElement) BorderTopWidth(width float64) *BlockElement
- func (block *BlockElement) BorderVertical(border float64) *BlockElement
- func (block *BlockElement) BorderVerticalColor(color string) *BlockElement
- func (block *BlockElement) BorderVerticalWidth(vertical float64) *BlockElement
- func (block *BlockElement) BorderWidth(top float64, right float64, bottom float64, left float64) *BlockElement
- func (block *BlockElement) Children(children ...Element) *BlockElement
- func (block *BlockElement) Direction(direction Direction) *BlockElement
- func (block *BlockElement) Display(overflow Display) *BlockElement
- func (block *BlockElement) Flex(flex float64) *BlockElement
- func (block *BlockElement) FlexAuto() *BlockElement
- func (block *BlockElement) FlexBasis(basis float64) *BlockElement
- func (block *BlockElement) FlexBasisAuto() *BlockElement
- func (block *BlockElement) FlexBasisPercent(percent float64) *BlockElement
- func (block *BlockElement) FlexDirection(direction FlexDirection) *BlockElement
- func (block *BlockElement) FlexGrow(grow float64) *BlockElement
- func (block *BlockElement) FlexNone() *BlockElement
- func (block *BlockElement) FlexShrink(shrink float64) *BlockElement
- func (block *BlockElement) FlexWrap(wrap Wrap) *BlockElement
- func (block *BlockElement) GetAlignContent() flex.Align
- func (block *BlockElement) GetAlignItems() flex.Align
- func (block *BlockElement) GetAlignSelf() flex.Align
- func (block *BlockElement) GetDirection() Direction
- func (block *BlockElement) GetDisplay() Display
- func (block *BlockElement) GetFlex() float64
- func (block *BlockElement) GetFlexDirection() FlexDirection
- func (block *BlockElement) GetFlexGrow() float64
- func (block *BlockElement) GetFlexShrink() float64
- func (block *BlockElement) GetFlexWrap() Wrap
- func (block *BlockElement) GetHeight() float64
- func (block *BlockElement) GetJustifyContent() Justify
- func (block *BlockElement) GetMarginBottom() float64
- func (block *BlockElement) GetMarginLeft() float64
- func (block *BlockElement) GetMarginRight() float64
- func (block *BlockElement) GetMarginTop() float64
- func (block *BlockElement) GetOverflow() Overflow
- func (block *BlockElement) GetPaddingBottom() float64
- func (block *BlockElement) GetPaddingLeft() float64
- func (block *BlockElement) GetPaddingRight() float64
- func (block *BlockElement) GetPaddingTop() float64
- func (block *BlockElement) GetPositionBottom() float64
- func (block *BlockElement) GetPositionLeft() float64
- func (block *BlockElement) GetPositionRight() float64
- func (block *BlockElement) GetPositionTop() float64
- func (block *BlockElement) GetPositionType() PositionType
- func (block *BlockElement) GetWidth() float64
- func (block *BlockElement) Height(height float64) *BlockElement
- func (block *BlockElement) HeightAuto() *BlockElement
- func (block *BlockElement) HeightPercent(percent float64) *BlockElement
- func (block *BlockElement) JustifyContent(justifyContent Justify) *BlockElement
- func (block *BlockElement) Margin(top float64, right float64, bottom float64, left float64) *BlockElement
- func (block *BlockElement) MarginAll(margin float64) *BlockElement
- func (block *BlockElement) MarginBottom(margin float64) *BlockElement
- func (block *BlockElement) MarginHorizontal(margin float64) *BlockElement
- func (block *BlockElement) MarginLeft(margin float64) *BlockElement
- func (block *BlockElement) MarginPercent(top float64, right float64, bottom float64, left float64) *BlockElement
- func (block *BlockElement) MarginPercentAll(percent float64) *BlockElement
- func (block *BlockElement) MarginPercentBottom(percent float64) *BlockElement
- func (block *BlockElement) MarginPercentHorizontal(percent float64) *BlockElement
- func (block *BlockElement) MarginPercentLeft(percent float64) *BlockElement
- func (block *BlockElement) MarginPercentRight(percent float64) *BlockElement
- func (block *BlockElement) MarginPercentTop(percent float64) *BlockElement
- func (block *BlockElement) MarginPercentVertical(percent float64) *BlockElement
- func (block *BlockElement) MarginRight(margin float64) *BlockElement
- func (block *BlockElement) MarginTop(margin float64) *BlockElement
- func (block *BlockElement) MarginVertical(margin float64) *BlockElement
- func (block *BlockElement) MaxHeight(maxHeight float64) *BlockElement
- func (block *BlockElement) MaxHeightPercent(percent float64) *BlockElement
- func (block *BlockElement) MaxWidth(maxWidth float64) *BlockElement
- func (block *BlockElement) MaxWidthPercent(percent float64) *BlockElement
- func (block *BlockElement) MinHeight(minHeight float64) *BlockElement
- func (block *BlockElement) MinHeightPercent(percent float64) *BlockElement
- func (block *BlockElement) MinWidth(minWidth float64) *BlockElement
- func (block *BlockElement) MinWidthPercent(percent float64) *BlockElement
- func (block *BlockElement) Overflow(overflow Overflow) *BlockElement
- func (block *BlockElement) Padding(top float64, right float64, bottom float64, left float64) *BlockElement
- func (block *BlockElement) PaddingAll(padding float64) *BlockElement
- func (block *BlockElement) PaddingBottom(padding float64) *BlockElement
- func (block *BlockElement) PaddingHorizontal(padding float64) *BlockElement
- func (block *BlockElement) PaddingLeft(padding float64) *BlockElement
- func (block *BlockElement) PaddingPercent(top float64, right float64, bottom float64, left float64) *BlockElement
- func (block *BlockElement) PaddingPercentAll(percent float64) *BlockElement
- func (block *BlockElement) PaddingPercentBottom(percent float64) *BlockElement
- func (block *BlockElement) PaddingPercentHorizontal(percent float64) *BlockElement
- func (block *BlockElement) PaddingPercentLeft(percent float64) *BlockElement
- func (block *BlockElement) PaddingPercentRight(percent float64) *BlockElement
- func (block *BlockElement) PaddingPercentTop(percent float64) *BlockElement
- func (block *BlockElement) PaddingPercentVertical(percent float64) *BlockElement
- func (block *BlockElement) PaddingRight(padding float64) *BlockElement
- func (block *BlockElement) PaddingTop(padding float64) *BlockElement
- func (block *BlockElement) PaddingVertical(padding float64) *BlockElement
- func (block *BlockElement) Position(top float64, right float64, bottom float64, left float64) *BlockElement
- func (block *BlockElement) PositionAll(position float64) *BlockElement
- func (block *BlockElement) PositionBottom(position float64) *BlockElement
- func (block *BlockElement) PositionHorizontal(position float64) *BlockElement
- func (block *BlockElement) PositionLeft(position float64) *BlockElement
- func (block *BlockElement) PositionPercent(top float64, right float64, bottom float64, left float64) *BlockElement
- func (block *BlockElement) PositionPercentAll(percent float64) *BlockElement
- func (block *BlockElement) PositionPercentBottom(percent float64) *BlockElement
- func (block *BlockElement) PositionPercentHorizontal(percent float64) *BlockElement
- func (block *BlockElement) PositionPercentLeft(percent float64) *BlockElement
- func (block *BlockElement) PositionPercentRight(percent float64) *BlockElement
- func (block *BlockElement) PositionPercentTop(percent float64) *BlockElement
- func (block *BlockElement) PositionPercentVertical(percent float64) *BlockElement
- func (block *BlockElement) PositionRight(position float64) *BlockElement
- func (block *BlockElement) PositionTop(position float64) *BlockElement
- func (block *BlockElement) PositionType(position PositionType) *BlockElement
- func (block *BlockElement) PositionVertical(position float64) *BlockElement
- func (block *BlockElement) Width(width float64) *BlockElement
- func (block *BlockElement) WidthAuto() *BlockElement
- func (block *BlockElement) WidthPercent(percent float64) *BlockElement
- type Direction
- type Display
- type Edge
- type Element
- type FlexDirection
- type FontStyle
- type ImageElement
- type Justify
- type Orientation
- type Overflow
- type Page
- func (page *Page) BorderAllColor(color string) *Page
- func (page *Page) BorderAllWidth(border float64) *Page
- func (page *Page) BorderBottomColor(color string) *Page
- func (page *Page) BorderBottomWidth(width float64) *Page
- func (page *Page) BorderColor(top string, right string, bottom string, left string) *Page
- func (page *Page) BorderHorizontalColor(color string) *Page
- func (page *Page) BorderHorizontalWidth(horizontal float64) *Page
- func (page *Page) BorderLeftColor(color string) *Page
- func (page *Page) BorderLeftWidth(width float64) *Page
- func (page *Page) BorderRightColor(color string) *Page
- func (page *Page) BorderRightWidth(width float64) *Page
- func (page *Page) BorderTopColor(color string) *Page
- func (page *Page) BorderTopWidth(width float64) *Page
- func (page *Page) BorderVerticalColor(color string) *Page
- func (page *Page) BorderVerticalWidth(vertical float64) *Page
- func (page *Page) BorderWidth(top float64, right float64, bottom float64, left float64) *Page
- func (page *Page) Children(children ...Element) *Page
- func (page *Page) FlexDirection(direction FlexDirection) *Page
- func (page *Page) Height(height float64) *Page
- func (page *Page) Margin(top float64, right float64, bottom float64, left float64) *Page
- func (page *Page) MarginAll(margin float64) *Page
- func (page *Page) MarginBottom(margin float64) *Page
- func (page *Page) MarginHorizontal(horizontal float64) *Page
- func (page *Page) MarginLeft(margin float64) *Page
- func (page *Page) MarginRight(margin float64) *Page
- func (page *Page) MarginTop(margin float64) *Page
- func (page *Page) MarginVertical(vertical float64) *Page
- func (page *Page) Orientation(orientation Orientation) *Page
- func (page *Page) Size(size Size) *Page
- func (page *Page) Unit(unit Unit) *Page
- func (page *Page) Width(width float64) *Page
- type Pdf
- func (pdf *Pdf) AddFont(family string, style FontStyle, filePath string) *Pdf
- func (pdf *Pdf) AddFontFromBytes(family string, style FontStyle, bytes []byte) *Pdf
- func (pdf *Pdf) FontBlack() *Pdf
- func (pdf *Pdf) FontBlackItalic() *Pdf
- func (pdf *Pdf) FontBold() *Pdf
- func (pdf *Pdf) FontBoldItalic() *Pdf
- func (pdf *Pdf) FontColor(color string) *Pdf
- func (pdf *Pdf) FontExtraBold() *Pdf
- func (pdf *Pdf) FontExtraBoldItalic() *Pdf
- func (pdf *Pdf) FontExtraLight() *Pdf
- func (pdf *Pdf) FontExtraLightItalic() *Pdf
- func (pdf *Pdf) FontFamily(family string) *Pdf
- func (pdf *Pdf) FontLight() *Pdf
- func (pdf *Pdf) FontLightItalic() *Pdf
- func (pdf *Pdf) FontMedium() *Pdf
- func (pdf *Pdf) FontMediumItalic() *Pdf
- func (pdf *Pdf) FontRegular() *Pdf
- func (pdf *Pdf) FontRegularItalic() *Pdf
- func (pdf *Pdf) FontSemiBold() *Pdf
- func (pdf *Pdf) FontSemiBoldItalic() *Pdf
- func (pdf *Pdf) FontSize(size float64) *Pdf
- func (pdf *Pdf) FontThin() *Pdf
- func (pdf *Pdf) FontThinItalic() *Pdf
- func (pdf *Pdf) Output(writer io.Writer) error
- func (pdf *Pdf) OutputFileAndClose(filePath string) error
- func (pdf *Pdf) Pages(pages ...*Page) *Pdf
- func (pdf *Pdf) Render() *Pdf
- type PositionType
- type Size
- type TextElement
- func (text *TextElement) Black() *TextElement
- func (text *TextElement) BlackItalic() *TextElement
- func (text *TextElement) Bold() *TextElement
- func (text *TextElement) BoldItalic() *TextElement
- func (text *TextElement) Color(color string) *TextElement
- func (text *TextElement) Content(content string) *TextElement
- func (text *TextElement) ExtraBold() *TextElement
- func (text *TextElement) ExtraBoldItalic() *TextElement
- func (text *TextElement) ExtraLight() *TextElement
- func (text *TextElement) ExtraLightItalic() *TextElement
- func (text *TextElement) FontFamily(family string) *TextElement
- func (text *TextElement) Light() *TextElement
- func (text *TextElement) LightItalic() *TextElement
- func (text *TextElement) LineHeight(height float64) *TextElement
- func (text *TextElement) Medium() *TextElement
- func (text *TextElement) MediumItalic() *TextElement
- func (text *TextElement) Regular() *TextElement
- func (text *TextElement) RegularItalic() *TextElement
- func (text *TextElement) SemiBold() *TextElement
- func (text *TextElement) SemiBoldItalic() *TextElement
- func (text *TextElement) Size(size float64) *TextElement
- func (text *TextElement) Thin() *TextElement
- func (text *TextElement) ThinItalic() *TextElement
- type TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) Black() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) BlackItalic() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) Bold() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) BoldItalic() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) Color(color string) *TextMultiFormatCreator
- func (constructor *TextMultiFormatCreator) Create() *TextMultiFormatElement
- func (creator *TextMultiFormatCreator) ExtraBold() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) ExtraBoldItalic() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) ExtraLight() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) ExtraLightItalic() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) FontFamily(family string) *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) Light() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) LightItalic() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) LineHeight(height float64) *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) Medium() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) MediumItalic() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) Regular() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) RegularItalic() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) SemiBold() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) SemiBoldItalic() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) Size(size float64) *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) Thin() *TextMultiFormatCreator
- func (creator *TextMultiFormatCreator) ThinItalic() *TextMultiFormatCreator
- type TextMultiFormatElement
- func (element *TextMultiFormatElement) Black() *TextMultiFormatElement
- func (element *TextMultiFormatElement) BlackItalic() *TextMultiFormatElement
- func (element *TextMultiFormatElement) Bold() *TextMultiFormatElement
- func (element *TextMultiFormatElement) BoldItalic() *TextMultiFormatElement
- func (element *TextMultiFormatElement) Color(color string) *TextMultiFormatElement
- func (element *TextMultiFormatElement) Content(text string) *TextMultiFormatElement
- func (element *TextMultiFormatElement) ExtraBold() *TextMultiFormatElement
- func (element *TextMultiFormatElement) ExtraBoldItalic() *TextMultiFormatElement
- func (element *TextMultiFormatElement) ExtraLight() *TextMultiFormatElement
- func (element *TextMultiFormatElement) ExtraLightItalic() *TextMultiFormatElement
- func (element *TextMultiFormatElement) FontFamily(family string) *TextMultiFormatElement
- func (element *TextMultiFormatElement) Light() *TextMultiFormatElement
- func (element *TextMultiFormatElement) LightItalic() *TextMultiFormatElement
- func (element *TextMultiFormatElement) Medium() *TextMultiFormatElement
- func (element *TextMultiFormatElement) MediumItalic() *TextMultiFormatElement
- func (element *TextMultiFormatElement) Regular() *TextMultiFormatElement
- func (element *TextMultiFormatElement) RegularItalic() *TextMultiFormatElement
- func (element *TextMultiFormatElement) SemiBold() *TextMultiFormatElement
- func (element *TextMultiFormatElement) SemiBoldItalic() *TextMultiFormatElement
- func (element *TextMultiFormatElement) Size(size float64) *TextMultiFormatElement
- func (element *TextMultiFormatElement) Thin() *TextMultiFormatElement
- func (element *TextMultiFormatElement) ThinItalic() *TextMultiFormatElement
- type Unit
- type Wrap
Constants ¶
View Source
const ( FontFamilyCourier = "Courier" FontFamilyHelvetica = "Helvetica" FontFamilyArial = "Arial" FontFamilyTime = "Times" FontFamilySymbol = "Symbol" )
View Source
const DefaultFlexDirection = FlexDirectionRow
View Source
const DefaultFontColor = "#000000"
Font Color
View Source
const DefaultFontFamily = FontFamilyHelvetica
View Source
const DefaultFontSize = 11.0
Font Size
View Source
const DefaultFontStyle = FontStyleRegular
View Source
const DefaultOrientation = OrientationPortrait
View Source
const DefaultSize = SizeA4
View Source
const DefaultUnit = UnitPt
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractElement ¶
type AbstractElement struct {
// contains filtered or unexported fields
}
func (*AbstractElement) X ¶
func (elem *AbstractElement) X() float32
func (*AbstractElement) Y ¶
func (elem *AbstractElement) Y() float32
type BlockElement ¶
type BlockElement struct { AbstractElement // contains filtered or unexported fields }
func Block ¶
func Block() *BlockElement
func (*BlockElement) AlignContent ¶
func (block *BlockElement) AlignContent(alignContent flex.Align) *BlockElement
func (*BlockElement) AlignItems ¶
func (block *BlockElement) AlignItems(alignItems flex.Align) *BlockElement
func (*BlockElement) AlignSelf ¶
func (block *BlockElement) AlignSelf(alignSelf flex.Align) *BlockElement
func (*BlockElement) AspectRatio ¶
func (block *BlockElement) AspectRatio(aspectRatio float64) *BlockElement
func (*BlockElement) BackgroundColor ¶
func (block *BlockElement) BackgroundColor(color string) *BlockElement
func (*BlockElement) Border ¶
func (block *BlockElement) Border(top float64, right float64, bottom float64, left float64) *BlockElement
func (*BlockElement) BorderAll ¶
func (block *BlockElement) BorderAll(border float64) *BlockElement
func (*BlockElement) BorderAllColor ¶
func (block *BlockElement) BorderAllColor(color string) *BlockElement
func (*BlockElement) BorderAllWidth ¶
func (block *BlockElement) BorderAllWidth(border float64) *BlockElement
func (*BlockElement) BorderBottom ¶
func (block *BlockElement) BorderBottom(border float64) *BlockElement
func (*BlockElement) BorderBottomColor ¶
func (block *BlockElement) BorderBottomColor(color string) *BlockElement
func (*BlockElement) BorderBottomWidth ¶
func (block *BlockElement) BorderBottomWidth(width float64) *BlockElement
func (*BlockElement) BorderColor ¶
func (block *BlockElement) BorderColor(top string, right string, bottom string, left string) *BlockElement
func (*BlockElement) BorderHorizontal ¶
func (block *BlockElement) BorderHorizontal(border float64) *BlockElement
func (*BlockElement) BorderHorizontalColor ¶
func (block *BlockElement) BorderHorizontalColor(color string) *BlockElement
func (*BlockElement) BorderHorizontalWidth ¶
func (block *BlockElement) BorderHorizontalWidth(horizontal float64) *BlockElement
func (*BlockElement) BorderLeft ¶
func (block *BlockElement) BorderLeft(border float64) *BlockElement
func (*BlockElement) BorderLeftColor ¶
func (block *BlockElement) BorderLeftColor(color string) *BlockElement
func (*BlockElement) BorderLeftWidth ¶
func (block *BlockElement) BorderLeftWidth(width float64) *BlockElement
func (*BlockElement) BorderRight ¶
func (block *BlockElement) BorderRight(border float64) *BlockElement
func (*BlockElement) BorderRightColor ¶
func (block *BlockElement) BorderRightColor(color string) *BlockElement
func (*BlockElement) BorderRightWidth ¶
func (block *BlockElement) BorderRightWidth(width float64) *BlockElement
func (*BlockElement) BorderTop ¶
func (block *BlockElement) BorderTop(border float64) *BlockElement
func (*BlockElement) BorderTopColor ¶
func (block *BlockElement) BorderTopColor(color string) *BlockElement
func (*BlockElement) BorderTopWidth ¶
func (block *BlockElement) BorderTopWidth(width float64) *BlockElement
func (*BlockElement) BorderVertical ¶
func (block *BlockElement) BorderVertical(border float64) *BlockElement
func (*BlockElement) BorderVerticalColor ¶
func (block *BlockElement) BorderVerticalColor(color string) *BlockElement
func (*BlockElement) BorderVerticalWidth ¶
func (block *BlockElement) BorderVerticalWidth(vertical float64) *BlockElement
func (*BlockElement) BorderWidth ¶
func (block *BlockElement) BorderWidth(top float64, right float64, bottom float64, left float64) *BlockElement
func (*BlockElement) Children ¶
func (block *BlockElement) Children(children ...Element) *BlockElement
func (*BlockElement) Direction ¶
func (block *BlockElement) Direction(direction Direction) *BlockElement
func (*BlockElement) Display ¶
func (block *BlockElement) Display(overflow Display) *BlockElement
func (*BlockElement) Flex ¶
func (block *BlockElement) Flex(flex float64) *BlockElement
func (*BlockElement) FlexAuto ¶
func (block *BlockElement) FlexAuto() *BlockElement
func (*BlockElement) FlexBasis ¶
func (block *BlockElement) FlexBasis(basis float64) *BlockElement
func (*BlockElement) FlexBasisAuto ¶
func (block *BlockElement) FlexBasisAuto() *BlockElement
func (*BlockElement) FlexBasisPercent ¶
func (block *BlockElement) FlexBasisPercent(percent float64) *BlockElement
func (*BlockElement) FlexDirection ¶
func (block *BlockElement) FlexDirection(direction FlexDirection) *BlockElement
func (*BlockElement) FlexGrow ¶
func (block *BlockElement) FlexGrow(grow float64) *BlockElement
func (*BlockElement) FlexNone ¶
func (block *BlockElement) FlexNone() *BlockElement
func (*BlockElement) FlexShrink ¶
func (block *BlockElement) FlexShrink(shrink float64) *BlockElement
func (*BlockElement) FlexWrap ¶
func (block *BlockElement) FlexWrap(wrap Wrap) *BlockElement
func (*BlockElement) GetAlignContent ¶
func (block *BlockElement) GetAlignContent() flex.Align
func (*BlockElement) GetAlignItems ¶
func (block *BlockElement) GetAlignItems() flex.Align
func (*BlockElement) GetAlignSelf ¶
func (block *BlockElement) GetAlignSelf() flex.Align
func (*BlockElement) GetDirection ¶
func (block *BlockElement) GetDirection() Direction
func (*BlockElement) GetDisplay ¶
func (block *BlockElement) GetDisplay() Display
func (*BlockElement) GetFlex ¶
func (block *BlockElement) GetFlex() float64
func (*BlockElement) GetFlexDirection ¶
func (block *BlockElement) GetFlexDirection() FlexDirection
func (*BlockElement) GetFlexGrow ¶
func (block *BlockElement) GetFlexGrow() float64
func (*BlockElement) GetFlexShrink ¶
func (block *BlockElement) GetFlexShrink() float64
func (*BlockElement) GetFlexWrap ¶
func (block *BlockElement) GetFlexWrap() Wrap
func (*BlockElement) GetHeight ¶
func (block *BlockElement) GetHeight() float64
func (*BlockElement) GetJustifyContent ¶
func (block *BlockElement) GetJustifyContent() Justify
func (*BlockElement) GetMarginBottom ¶
func (block *BlockElement) GetMarginBottom() float64
func (*BlockElement) GetMarginLeft ¶
func (block *BlockElement) GetMarginLeft() float64
func (*BlockElement) GetMarginRight ¶
func (block *BlockElement) GetMarginRight() float64
func (*BlockElement) GetMarginTop ¶
func (block *BlockElement) GetMarginTop() float64
func (*BlockElement) GetOverflow ¶
func (block *BlockElement) GetOverflow() Overflow
func (*BlockElement) GetPaddingBottom ¶
func (block *BlockElement) GetPaddingBottom() float64
func (*BlockElement) GetPaddingLeft ¶
func (block *BlockElement) GetPaddingLeft() float64
func (*BlockElement) GetPaddingRight ¶
func (block *BlockElement) GetPaddingRight() float64
func (*BlockElement) GetPaddingTop ¶
func (block *BlockElement) GetPaddingTop() float64
func (*BlockElement) GetPositionBottom ¶
func (block *BlockElement) GetPositionBottom() float64
func (*BlockElement) GetPositionLeft ¶
func (block *BlockElement) GetPositionLeft() float64
func (*BlockElement) GetPositionRight ¶
func (block *BlockElement) GetPositionRight() float64
func (*BlockElement) GetPositionTop ¶
func (block *BlockElement) GetPositionTop() float64
func (*BlockElement) GetPositionType ¶
func (block *BlockElement) GetPositionType() PositionType
func (*BlockElement) GetWidth ¶
func (block *BlockElement) GetWidth() float64
func (*BlockElement) Height ¶
func (block *BlockElement) Height(height float64) *BlockElement
func (*BlockElement) HeightAuto ¶
func (block *BlockElement) HeightAuto() *BlockElement
func (*BlockElement) HeightPercent ¶
func (block *BlockElement) HeightPercent(percent float64) *BlockElement
func (*BlockElement) JustifyContent ¶
func (block *BlockElement) JustifyContent(justifyContent Justify) *BlockElement
func (*BlockElement) Margin ¶
func (block *BlockElement) Margin(top float64, right float64, bottom float64, left float64) *BlockElement
func (*BlockElement) MarginAll ¶
func (block *BlockElement) MarginAll(margin float64) *BlockElement
func (*BlockElement) MarginBottom ¶
func (block *BlockElement) MarginBottom(margin float64) *BlockElement
func (*BlockElement) MarginHorizontal ¶
func (block *BlockElement) MarginHorizontal(margin float64) *BlockElement
func (*BlockElement) MarginLeft ¶
func (block *BlockElement) MarginLeft(margin float64) *BlockElement
func (*BlockElement) MarginPercent ¶
func (block *BlockElement) MarginPercent(top float64, right float64, bottom float64, left float64) *BlockElement
func (*BlockElement) MarginPercentAll ¶
func (block *BlockElement) MarginPercentAll(percent float64) *BlockElement
func (*BlockElement) MarginPercentBottom ¶
func (block *BlockElement) MarginPercentBottom(percent float64) *BlockElement
func (*BlockElement) MarginPercentHorizontal ¶
func (block *BlockElement) MarginPercentHorizontal(percent float64) *BlockElement
func (*BlockElement) MarginPercentLeft ¶
func (block *BlockElement) MarginPercentLeft(percent float64) *BlockElement
func (*BlockElement) MarginPercentRight ¶
func (block *BlockElement) MarginPercentRight(percent float64) *BlockElement
func (*BlockElement) MarginPercentTop ¶
func (block *BlockElement) MarginPercentTop(percent float64) *BlockElement
func (*BlockElement) MarginPercentVertical ¶
func (block *BlockElement) MarginPercentVertical(percent float64) *BlockElement
func (*BlockElement) MarginRight ¶
func (block *BlockElement) MarginRight(margin float64) *BlockElement
func (*BlockElement) MarginTop ¶
func (block *BlockElement) MarginTop(margin float64) *BlockElement
func (*BlockElement) MarginVertical ¶
func (block *BlockElement) MarginVertical(margin float64) *BlockElement
func (*BlockElement) MaxHeight ¶
func (block *BlockElement) MaxHeight(maxHeight float64) *BlockElement
func (*BlockElement) MaxHeightPercent ¶
func (block *BlockElement) MaxHeightPercent(percent float64) *BlockElement
func (*BlockElement) MaxWidth ¶
func (block *BlockElement) MaxWidth(maxWidth float64) *BlockElement
func (*BlockElement) MaxWidthPercent ¶
func (block *BlockElement) MaxWidthPercent(percent float64) *BlockElement
func (*BlockElement) MinHeight ¶
func (block *BlockElement) MinHeight(minHeight float64) *BlockElement
func (*BlockElement) MinHeightPercent ¶
func (block *BlockElement) MinHeightPercent(percent float64) *BlockElement
func (*BlockElement) MinWidth ¶
func (block *BlockElement) MinWidth(minWidth float64) *BlockElement
func (*BlockElement) MinWidthPercent ¶
func (block *BlockElement) MinWidthPercent(percent float64) *BlockElement
func (*BlockElement) Overflow ¶
func (block *BlockElement) Overflow(overflow Overflow) *BlockElement
func (*BlockElement) Padding ¶
func (block *BlockElement) Padding(top float64, right float64, bottom float64, left float64) *BlockElement
func (*BlockElement) PaddingAll ¶
func (block *BlockElement) PaddingAll(padding float64) *BlockElement
func (*BlockElement) PaddingBottom ¶
func (block *BlockElement) PaddingBottom(padding float64) *BlockElement
func (*BlockElement) PaddingHorizontal ¶
func (block *BlockElement) PaddingHorizontal(padding float64) *BlockElement
func (*BlockElement) PaddingLeft ¶
func (block *BlockElement) PaddingLeft(padding float64) *BlockElement
func (*BlockElement) PaddingPercent ¶
func (block *BlockElement) PaddingPercent(top float64, right float64, bottom float64, left float64) *BlockElement
func (*BlockElement) PaddingPercentAll ¶
func (block *BlockElement) PaddingPercentAll(percent float64) *BlockElement
func (*BlockElement) PaddingPercentBottom ¶
func (block *BlockElement) PaddingPercentBottom(percent float64) *BlockElement
func (*BlockElement) PaddingPercentHorizontal ¶
func (block *BlockElement) PaddingPercentHorizontal(percent float64) *BlockElement
func (*BlockElement) PaddingPercentLeft ¶
func (block *BlockElement) PaddingPercentLeft(percent float64) *BlockElement
func (*BlockElement) PaddingPercentRight ¶
func (block *BlockElement) PaddingPercentRight(percent float64) *BlockElement
func (*BlockElement) PaddingPercentTop ¶
func (block *BlockElement) PaddingPercentTop(percent float64) *BlockElement
func (*BlockElement) PaddingPercentVertical ¶
func (block *BlockElement) PaddingPercentVertical(percent float64) *BlockElement
func (*BlockElement) PaddingRight ¶
func (block *BlockElement) PaddingRight(padding float64) *BlockElement
func (*BlockElement) PaddingTop ¶
func (block *BlockElement) PaddingTop(padding float64) *BlockElement
func (*BlockElement) PaddingVertical ¶
func (block *BlockElement) PaddingVertical(padding float64) *BlockElement
func (*BlockElement) Position ¶
func (block *BlockElement) Position(top float64, right float64, bottom float64, left float64) *BlockElement
func (*BlockElement) PositionAll ¶
func (block *BlockElement) PositionAll(position float64) *BlockElement
func (*BlockElement) PositionBottom ¶
func (block *BlockElement) PositionBottom(position float64) *BlockElement
func (*BlockElement) PositionHorizontal ¶
func (block *BlockElement) PositionHorizontal(position float64) *BlockElement
func (*BlockElement) PositionLeft ¶
func (block *BlockElement) PositionLeft(position float64) *BlockElement
func (*BlockElement) PositionPercent ¶
func (block *BlockElement) PositionPercent(top float64, right float64, bottom float64, left float64) *BlockElement
func (*BlockElement) PositionPercentAll ¶
func (block *BlockElement) PositionPercentAll(percent float64) *BlockElement
func (*BlockElement) PositionPercentBottom ¶
func (block *BlockElement) PositionPercentBottom(percent float64) *BlockElement
func (*BlockElement) PositionPercentHorizontal ¶
func (block *BlockElement) PositionPercentHorizontal(percent float64) *BlockElement
func (*BlockElement) PositionPercentLeft ¶
func (block *BlockElement) PositionPercentLeft(percent float64) *BlockElement
func (*BlockElement) PositionPercentRight ¶
func (block *BlockElement) PositionPercentRight(percent float64) *BlockElement
func (*BlockElement) PositionPercentTop ¶
func (block *BlockElement) PositionPercentTop(percent float64) *BlockElement
func (*BlockElement) PositionPercentVertical ¶
func (block *BlockElement) PositionPercentVertical(percent float64) *BlockElement
func (*BlockElement) PositionRight ¶
func (block *BlockElement) PositionRight(position float64) *BlockElement
func (*BlockElement) PositionTop ¶
func (block *BlockElement) PositionTop(position float64) *BlockElement
func (*BlockElement) PositionType ¶
func (block *BlockElement) PositionType(position PositionType) *BlockElement
func (*BlockElement) PositionVertical ¶
func (block *BlockElement) PositionVertical(position float64) *BlockElement
func (*BlockElement) Width ¶
func (block *BlockElement) Width(width float64) *BlockElement
func (*BlockElement) WidthAuto ¶
func (block *BlockElement) WidthAuto() *BlockElement
func (*BlockElement) WidthPercent ¶
func (block *BlockElement) WidthPercent(percent float64) *BlockElement
type Edge ¶
type Edge int
Edge
const ( EdgeLeft Edge = Edge(flex.EdgeLeft) EdgeTop Edge = Edge(flex.EdgeTop) EdgeRight Edge = Edge(flex.EdgeRight) EdgeBottom Edge = Edge(flex.EdgeBottom) EdgeStart Edge = Edge(flex.EdgeStart) EdgeEnd Edge = Edge(flex.EdgeEnd) EdgeHorizontal Edge = Edge(flex.EdgeHorizontal) EdgeVertical Edge = Edge(flex.EdgeVertical) EdgeAll Edge = Edge(flex.EdgeAll) )
type FlexDirection ¶
type FlexDirection int
FlexDirection
const ( FlexDirectionColumn FlexDirection = iota FlexDirectionColumnReverse FlexDirectionRow FlexDirectionRowReverse )
type FontStyle ¶
type FontStyle string
Font Style
const ( FontStyleThin FontStyle = "Thin" FontStyleExtraLight FontStyle = "ExtraLight" FontStyleLight FontStyle = "Light" FontStyleRegular FontStyle = "Regular" FontStyleMedium FontStyle = "Medium" FontStyleSemiBold FontStyle = "SemiBold" FontStyleBold FontStyle = "Bold" FontStyleExtraBold FontStyle = "ExtraBold" FontStyleBlack FontStyle = "Black" FontStyleThinItalic FontStyle = "ThinItalic" FontStyleExtraLightItalic FontStyle = "ExtraLightItalic" FontStyleLightItalic FontStyle = "LightItalic" FontStyleRegularItalic FontStyle = "RegularItalic" FontStyleMediumItalic FontStyle = "MediumItalic" FontStyleSemiBoldItalic FontStyle = "SemiBoldItalic" FontStyleBoldItalic FontStyle = "BoldItalic" FontStyleExtraBoldItalic FontStyle = "ExtraBoldItalic" FontStyleBlackItalic FontStyle = "BlackItalic" )
type ImageElement ¶
type ImageElement struct { AbstractElement // contains filtered or unexported fields }
func Image ¶
func Image() *ImageElement
func (*ImageElement) FromFile ¶
func (image *ImageElement) FromFile(filePath string) *ImageElement
type Orientation ¶
type Orientation string
Orientation
const ( OrientationPortrait Orientation = "P" OrientationLandscape Orientation = "L" )
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
func (*Page) BorderAllColor ¶
func (*Page) BorderAllWidth ¶
func (*Page) BorderBottomColor ¶
func (*Page) BorderBottomWidth ¶
func (*Page) BorderColor ¶
func (*Page) BorderHorizontalColor ¶
func (*Page) BorderHorizontalWidth ¶
func (*Page) BorderLeftColor ¶
func (*Page) BorderLeftWidth ¶
func (*Page) BorderRightColor ¶
func (*Page) BorderRightWidth ¶
func (*Page) BorderTopColor ¶
func (*Page) BorderTopWidth ¶
func (*Page) BorderVerticalColor ¶
func (*Page) BorderVerticalWidth ¶
func (*Page) BorderWidth ¶
func (*Page) FlexDirection ¶
func (page *Page) FlexDirection(direction FlexDirection) *Page
func (*Page) MarginBottom ¶
func (*Page) MarginHorizontal ¶
func (*Page) MarginLeft ¶
func (*Page) MarginRight ¶
func (*Page) MarginVertical ¶
func (*Page) Orientation ¶
func (page *Page) Orientation(orientation Orientation) *Page
type Pdf ¶
type Pdf struct {
// contains filtered or unexported fields
}
func (*Pdf) AddFontFromBytes ¶
func (*Pdf) FontBlackItalic ¶
func (*Pdf) FontBoldItalic ¶
func (*Pdf) FontExtraBold ¶
func (*Pdf) FontExtraBoldItalic ¶
func (*Pdf) FontExtraLight ¶
func (*Pdf) FontExtraLightItalic ¶
func (*Pdf) FontFamily ¶
func (*Pdf) FontLightItalic ¶
func (*Pdf) FontMedium ¶
func (*Pdf) FontMediumItalic ¶
func (*Pdf) FontRegular ¶
func (*Pdf) FontRegularItalic ¶
func (*Pdf) FontSemiBold ¶
func (*Pdf) FontSemiBoldItalic ¶
func (*Pdf) FontThinItalic ¶
func (*Pdf) OutputFileAndClose ¶
type PositionType ¶
type PositionType int
PositionType
const ( PositionTypeRelative PositionType = iota PositionTypeAbsolute )
type TextElement ¶
type TextElement struct { AbstractElement // contains filtered or unexported fields }
func Text ¶
func Text() *TextElement
func (*TextElement) Black ¶
func (text *TextElement) Black() *TextElement
func (*TextElement) BlackItalic ¶
func (text *TextElement) BlackItalic() *TextElement
func (*TextElement) Bold ¶
func (text *TextElement) Bold() *TextElement
func (*TextElement) BoldItalic ¶
func (text *TextElement) BoldItalic() *TextElement
func (*TextElement) Color ¶
func (text *TextElement) Color(color string) *TextElement
func (*TextElement) Content ¶
func (text *TextElement) Content(content string) *TextElement
func (*TextElement) ExtraBold ¶
func (text *TextElement) ExtraBold() *TextElement
func (*TextElement) ExtraBoldItalic ¶
func (text *TextElement) ExtraBoldItalic() *TextElement
func (*TextElement) ExtraLight ¶
func (text *TextElement) ExtraLight() *TextElement
func (*TextElement) ExtraLightItalic ¶
func (text *TextElement) ExtraLightItalic() *TextElement
func (*TextElement) FontFamily ¶
func (text *TextElement) FontFamily(family string) *TextElement
func (*TextElement) Light ¶
func (text *TextElement) Light() *TextElement
func (*TextElement) LightItalic ¶
func (text *TextElement) LightItalic() *TextElement
func (*TextElement) LineHeight ¶
func (text *TextElement) LineHeight(height float64) *TextElement
func (*TextElement) Medium ¶
func (text *TextElement) Medium() *TextElement
func (*TextElement) MediumItalic ¶
func (text *TextElement) MediumItalic() *TextElement
func (*TextElement) Regular ¶
func (text *TextElement) Regular() *TextElement
func (*TextElement) RegularItalic ¶
func (text *TextElement) RegularItalic() *TextElement
func (*TextElement) SemiBold ¶
func (text *TextElement) SemiBold() *TextElement
func (*TextElement) SemiBoldItalic ¶
func (text *TextElement) SemiBoldItalic() *TextElement
func (*TextElement) Size ¶
func (text *TextElement) Size(size float64) *TextElement
func (*TextElement) Thin ¶
func (text *TextElement) Thin() *TextElement
func (*TextElement) ThinItalic ¶
func (text *TextElement) ThinItalic() *TextElement
type TextMultiFormatCreator ¶
type TextMultiFormatCreator struct {
// contains filtered or unexported fields
}
func TextMultiFormat ¶
func TextMultiFormat() *TextMultiFormatCreator
func (*TextMultiFormatCreator) Black ¶
func (creator *TextMultiFormatCreator) Black() *TextMultiFormatCreator
func (*TextMultiFormatCreator) BlackItalic ¶
func (creator *TextMultiFormatCreator) BlackItalic() *TextMultiFormatCreator
func (*TextMultiFormatCreator) Bold ¶
func (creator *TextMultiFormatCreator) Bold() *TextMultiFormatCreator
func (*TextMultiFormatCreator) BoldItalic ¶
func (creator *TextMultiFormatCreator) BoldItalic() *TextMultiFormatCreator
func (*TextMultiFormatCreator) Color ¶
func (creator *TextMultiFormatCreator) Color(color string) *TextMultiFormatCreator
func (*TextMultiFormatCreator) Create ¶
func (constructor *TextMultiFormatCreator) Create() *TextMultiFormatElement
func (*TextMultiFormatCreator) ExtraBold ¶
func (creator *TextMultiFormatCreator) ExtraBold() *TextMultiFormatCreator
func (*TextMultiFormatCreator) ExtraBoldItalic ¶
func (creator *TextMultiFormatCreator) ExtraBoldItalic() *TextMultiFormatCreator
func (*TextMultiFormatCreator) ExtraLight ¶
func (creator *TextMultiFormatCreator) ExtraLight() *TextMultiFormatCreator
func (*TextMultiFormatCreator) ExtraLightItalic ¶
func (creator *TextMultiFormatCreator) ExtraLightItalic() *TextMultiFormatCreator
func (*TextMultiFormatCreator) FontFamily ¶
func (creator *TextMultiFormatCreator) FontFamily(family string) *TextMultiFormatCreator
func (*TextMultiFormatCreator) Light ¶
func (creator *TextMultiFormatCreator) Light() *TextMultiFormatCreator
func (*TextMultiFormatCreator) LightItalic ¶
func (creator *TextMultiFormatCreator) LightItalic() *TextMultiFormatCreator
func (*TextMultiFormatCreator) LineHeight ¶
func (creator *TextMultiFormatCreator) LineHeight(height float64) *TextMultiFormatCreator
func (*TextMultiFormatCreator) Medium ¶
func (creator *TextMultiFormatCreator) Medium() *TextMultiFormatCreator
func (*TextMultiFormatCreator) MediumItalic ¶
func (creator *TextMultiFormatCreator) MediumItalic() *TextMultiFormatCreator
func (*TextMultiFormatCreator) Regular ¶
func (creator *TextMultiFormatCreator) Regular() *TextMultiFormatCreator
func (*TextMultiFormatCreator) RegularItalic ¶
func (creator *TextMultiFormatCreator) RegularItalic() *TextMultiFormatCreator
func (*TextMultiFormatCreator) SemiBold ¶
func (creator *TextMultiFormatCreator) SemiBold() *TextMultiFormatCreator
func (*TextMultiFormatCreator) SemiBoldItalic ¶
func (creator *TextMultiFormatCreator) SemiBoldItalic() *TextMultiFormatCreator
func (*TextMultiFormatCreator) Size ¶
func (creator *TextMultiFormatCreator) Size(size float64) *TextMultiFormatCreator
func (*TextMultiFormatCreator) Thin ¶
func (creator *TextMultiFormatCreator) Thin() *TextMultiFormatCreator
func (*TextMultiFormatCreator) ThinItalic ¶
func (creator *TextMultiFormatCreator) ThinItalic() *TextMultiFormatCreator
type TextMultiFormatElement ¶
type TextMultiFormatElement struct { AbstractElement // contains filtered or unexported fields }
func (*TextMultiFormatElement) Black ¶
func (element *TextMultiFormatElement) Black() *TextMultiFormatElement
func (*TextMultiFormatElement) BlackItalic ¶
func (element *TextMultiFormatElement) BlackItalic() *TextMultiFormatElement
func (*TextMultiFormatElement) Bold ¶
func (element *TextMultiFormatElement) Bold() *TextMultiFormatElement
func (*TextMultiFormatElement) BoldItalic ¶
func (element *TextMultiFormatElement) BoldItalic() *TextMultiFormatElement
func (*TextMultiFormatElement) Color ¶
func (element *TextMultiFormatElement) Color(color string) *TextMultiFormatElement
func (*TextMultiFormatElement) Content ¶
func (element *TextMultiFormatElement) Content(text string) *TextMultiFormatElement
func (*TextMultiFormatElement) ExtraBold ¶
func (element *TextMultiFormatElement) ExtraBold() *TextMultiFormatElement
func (*TextMultiFormatElement) ExtraBoldItalic ¶
func (element *TextMultiFormatElement) ExtraBoldItalic() *TextMultiFormatElement
func (*TextMultiFormatElement) ExtraLight ¶
func (element *TextMultiFormatElement) ExtraLight() *TextMultiFormatElement
func (*TextMultiFormatElement) ExtraLightItalic ¶
func (element *TextMultiFormatElement) ExtraLightItalic() *TextMultiFormatElement
func (*TextMultiFormatElement) FontFamily ¶
func (element *TextMultiFormatElement) FontFamily(family string) *TextMultiFormatElement
func (*TextMultiFormatElement) Light ¶
func (element *TextMultiFormatElement) Light() *TextMultiFormatElement
func (*TextMultiFormatElement) LightItalic ¶
func (element *TextMultiFormatElement) LightItalic() *TextMultiFormatElement
func (*TextMultiFormatElement) Medium ¶
func (element *TextMultiFormatElement) Medium() *TextMultiFormatElement
func (*TextMultiFormatElement) MediumItalic ¶
func (element *TextMultiFormatElement) MediumItalic() *TextMultiFormatElement
func (*TextMultiFormatElement) Regular ¶
func (element *TextMultiFormatElement) Regular() *TextMultiFormatElement
func (*TextMultiFormatElement) RegularItalic ¶
func (element *TextMultiFormatElement) RegularItalic() *TextMultiFormatElement
func (*TextMultiFormatElement) SemiBold ¶
func (element *TextMultiFormatElement) SemiBold() *TextMultiFormatElement
func (*TextMultiFormatElement) SemiBoldItalic ¶
func (element *TextMultiFormatElement) SemiBoldItalic() *TextMultiFormatElement
func (*TextMultiFormatElement) Size ¶
func (element *TextMultiFormatElement) Size(size float64) *TextMultiFormatElement
func (*TextMultiFormatElement) Thin ¶
func (element *TextMultiFormatElement) Thin() *TextMultiFormatElement
func (*TextMultiFormatElement) ThinItalic ¶
func (element *TextMultiFormatElement) ThinItalic() *TextMultiFormatElement
Source Files ¶
Click to show internal directories.
Click to hide internal directories.