pdflexgo

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 7 Imported by: 0

README

PDFlexGo

Expiremental

Documentation

Overview

Code generated by PDFlexgo; DO NOT EDIT.

Code generated by PDFlexgo; DO NOT EDIT.

Index

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 Align

type Align string

Align

const (
	AlignStart  Align = "start"
	AlignEnd    Align = "end"
	AlignCenter Align = "center"
)

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 Direction

type Direction int

Direction

const (
	DirectionInherit Direction = iota
	DirectionLTR
	DirectionRTL
)

type Display

type Display int

Display

const (
	DisplayFlex Display = iota
	DisplayNone
)

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 Element

type Element interface {
	X() float32
	Y() float32
	// contains filtered or unexported methods
}

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 Justify

type Justify int

Justify

const (
	JustifyFlexStart Justify = iota
	JustifyCenter
	JustifyFlexEnd
	JustifySpaceBetween
	JustifySpaceAround
)

type Orientation

type Orientation string

Orientation

const (
	OrientationPortrait  Orientation = "P"
	OrientationLandscape Orientation = "L"
)

type Overflow

type Overflow int

Overflow

const (
	OverflowVisible Overflow = iota
	OverflowHidden
	OverflowScroll
)

type Page

type Page struct {
	// contains filtered or unexported fields
}

func NewPage

func NewPage() *Page

func (*Page) BorderAllColor

func (page *Page) BorderAllColor(color string) *Page

func (*Page) BorderAllWidth

func (page *Page) BorderAllWidth(border float64) *Page

func (*Page) BorderBottomColor

func (page *Page) BorderBottomColor(color string) *Page

func (*Page) BorderBottomWidth

func (page *Page) BorderBottomWidth(width float64) *Page

func (*Page) BorderColor

func (page *Page) BorderColor(top string, right string, bottom string, left string) *Page

func (*Page) BorderHorizontalColor

func (page *Page) BorderHorizontalColor(color string) *Page

func (*Page) BorderHorizontalWidth

func (page *Page) BorderHorizontalWidth(horizontal float64) *Page

func (*Page) BorderLeftColor

func (page *Page) BorderLeftColor(color string) *Page

func (*Page) BorderLeftWidth

func (page *Page) BorderLeftWidth(width float64) *Page

func (*Page) BorderRightColor

func (page *Page) BorderRightColor(color string) *Page

func (*Page) BorderRightWidth

func (page *Page) BorderRightWidth(width float64) *Page

func (*Page) BorderTopColor

func (page *Page) BorderTopColor(color string) *Page

func (*Page) BorderTopWidth

func (page *Page) BorderTopWidth(width float64) *Page

func (*Page) BorderVerticalColor

func (page *Page) BorderVerticalColor(color string) *Page

func (*Page) BorderVerticalWidth

func (page *Page) BorderVerticalWidth(vertical float64) *Page

func (*Page) BorderWidth

func (page *Page) BorderWidth(top float64, right float64, bottom float64, left float64) *Page

func (*Page) Children

func (page *Page) Children(children ...Element) *Page

func (*Page) FlexDirection

func (page *Page) FlexDirection(direction FlexDirection) *Page

func (*Page) Height

func (page *Page) Height(height float64) *Page

func (*Page) Margin

func (page *Page) Margin(top float64, right float64, bottom float64, left float64) *Page

func (*Page) MarginAll

func (page *Page) MarginAll(margin float64) *Page

func (*Page) MarginBottom

func (page *Page) MarginBottom(margin float64) *Page

func (*Page) MarginHorizontal

func (page *Page) MarginHorizontal(horizontal float64) *Page

func (*Page) MarginLeft

func (page *Page) MarginLeft(margin float64) *Page

func (*Page) MarginRight

func (page *Page) MarginRight(margin float64) *Page

func (*Page) MarginTop

func (page *Page) MarginTop(margin float64) *Page

func (*Page) MarginVertical

func (page *Page) MarginVertical(vertical float64) *Page

func (*Page) Orientation

func (page *Page) Orientation(orientation Orientation) *Page

func (*Page) Size

func (page *Page) Size(size Size) *Page

func (*Page) Unit

func (page *Page) Unit(unit Unit) *Page

func (*Page) Width

func (page *Page) Width(width float64) *Page

type Pdf

type Pdf struct {
	// contains filtered or unexported fields
}

func NewPdf

func NewPdf() *Pdf

func (*Pdf) AddFont

func (pdf *Pdf) AddFont(family string, style FontStyle, filePath string) *Pdf

func (*Pdf) AddFontFromBytes

func (pdf *Pdf) AddFontFromBytes(family string, style FontStyle, bytes []byte) *Pdf

func (*Pdf) FontBlack

func (pdf *Pdf) FontBlack() *Pdf

func (*Pdf) FontBlackItalic

func (pdf *Pdf) FontBlackItalic() *Pdf

func (*Pdf) FontBold

func (pdf *Pdf) FontBold() *Pdf

func (*Pdf) FontBoldItalic

func (pdf *Pdf) FontBoldItalic() *Pdf

func (*Pdf) FontColor

func (pdf *Pdf) FontColor(color string) *Pdf

func (*Pdf) FontExtraBold

func (pdf *Pdf) FontExtraBold() *Pdf

func (*Pdf) FontExtraBoldItalic

func (pdf *Pdf) FontExtraBoldItalic() *Pdf

func (*Pdf) FontExtraLight

func (pdf *Pdf) FontExtraLight() *Pdf

func (*Pdf) FontExtraLightItalic

func (pdf *Pdf) FontExtraLightItalic() *Pdf

func (*Pdf) FontFamily

func (pdf *Pdf) FontFamily(family string) *Pdf

func (*Pdf) FontLight

func (pdf *Pdf) FontLight() *Pdf

func (*Pdf) FontLightItalic

func (pdf *Pdf) FontLightItalic() *Pdf

func (*Pdf) FontMedium

func (pdf *Pdf) FontMedium() *Pdf

func (*Pdf) FontMediumItalic

func (pdf *Pdf) FontMediumItalic() *Pdf

func (*Pdf) FontRegular

func (pdf *Pdf) FontRegular() *Pdf

func (*Pdf) FontRegularItalic

func (pdf *Pdf) FontRegularItalic() *Pdf

func (*Pdf) FontSemiBold

func (pdf *Pdf) FontSemiBold() *Pdf

func (*Pdf) FontSemiBoldItalic

func (pdf *Pdf) FontSemiBoldItalic() *Pdf

func (*Pdf) FontSize

func (pdf *Pdf) FontSize(size float64) *Pdf

func (*Pdf) FontThin

func (pdf *Pdf) FontThin() *Pdf

func (*Pdf) FontThinItalic

func (pdf *Pdf) FontThinItalic() *Pdf

func (*Pdf) Output

func (pdf *Pdf) Output(writer io.Writer) error

func (*Pdf) OutputFileAndClose

func (pdf *Pdf) OutputFileAndClose(filePath string) error

func (*Pdf) Pages

func (pdf *Pdf) Pages(pages ...*Page) *Pdf

func (*Pdf) Render

func (pdf *Pdf) Render() *Pdf

type PositionType

type PositionType int

PositionType

const (
	PositionTypeRelative PositionType = iota
	PositionTypeAbsolute
)

type Size

type Size string

Size

const (
	SizeA3      Size = "a3"
	SizeA4      Size = "a4"
	SizeA5      Size = "a5"
	SizeA6      Size = "a6"
	SizeA2      Size = "a2"
	SizeA1      Size = "a1"
	SizeLetter  Size = "letter"
	SizeLegal   Size = "legal"
	SizeTabloid Size = "tabloid"
)

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 (*TextMultiFormatCreator) BlackItalic

func (creator *TextMultiFormatCreator) BlackItalic() *TextMultiFormatCreator

func (*TextMultiFormatCreator) Bold

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 (*TextMultiFormatCreator) LightItalic

func (creator *TextMultiFormatCreator) LightItalic() *TextMultiFormatCreator

func (*TextMultiFormatCreator) LineHeight

func (creator *TextMultiFormatCreator) LineHeight(height float64) *TextMultiFormatCreator

func (*TextMultiFormatCreator) Medium

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 (*TextMultiFormatCreator) Thin

func (*TextMultiFormatCreator) ThinItalic

func (creator *TextMultiFormatCreator) ThinItalic() *TextMultiFormatCreator

type TextMultiFormatElement

type TextMultiFormatElement struct {
	AbstractElement
	// contains filtered or unexported fields
}

func (*TextMultiFormatElement) Black

func (*TextMultiFormatElement) BlackItalic

func (element *TextMultiFormatElement) BlackItalic() *TextMultiFormatElement

func (*TextMultiFormatElement) Bold

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 (*TextMultiFormatElement) LightItalic

func (element *TextMultiFormatElement) LightItalic() *TextMultiFormatElement

func (*TextMultiFormatElement) Medium

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 (*TextMultiFormatElement) Thin

func (*TextMultiFormatElement) ThinItalic

func (element *TextMultiFormatElement) ThinItalic() *TextMultiFormatElement

type Unit

type Unit string

Unit

const (
	UnitPt Unit = "pt"
	UnitMm Unit = "mm"
	UnitCm Unit = "cm"
	UnitIn Unit = "in"
)

type Wrap

type Wrap int

Wrap

const (
	WrapNoWrap Wrap = iota
	WrapWrap
	WrapWrapReverse
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL