wpdf

package
v0.0.549 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BackgroundFill        = true
	BackgroundTransparent = false
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PDFBlendMode added in v0.0.494

type PDFBlendMode string
const (
	BlendNormal     PDFBlendMode = "Normal"
	BlendMultiply   PDFBlendMode = "Multiply"
	BlendScreen     PDFBlendMode = "Screen"
	BlendOverlay    PDFBlendMode = "Overlay"
	BlendDarken     PDFBlendMode = "Darken"
	BlendLighten    PDFBlendMode = "Lighten"
	BlendColorDodge PDFBlendMode = "ColorDodge"
	BlendColorBurn  PDFBlendMode = "ColorBurn"
	BlendHardLight  PDFBlendMode = "HardLight"
	BlendSoftLight  PDFBlendMode = "SoftLight"
	BlendDifference PDFBlendMode = "Difference"
	BlendExclusion  PDFBlendMode = "Exclusion"
	BlendHue        PDFBlendMode = "Hue"
	BlendSaturation PDFBlendMode = "Saturation"
	BlendColor      PDFBlendMode = "Color"
	BlendLuminosity PDFBlendMode = "Luminosity"
)

type PDFBorder

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 PDFCellOpt

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

func NewPDFCellOpt

func NewPDFCellOpt() *PDFCellOpt

func (*PDFCellOpt) Align

func (opt *PDFCellOpt) Align(v PDFTextAlign) *PDFCellOpt

func (*PDFCellOpt) Alpha added in v0.0.494

func (opt *PDFCellOpt) Alpha(alpha float64, blendMode PDFBlendMode) *PDFCellOpt

func (*PDFCellOpt) AutoWidth

func (opt *PDFCellOpt) AutoWidth() *PDFCellOpt

func (*PDFCellOpt) AutoWidthPaddingX added in v0.0.461

func (opt *PDFCellOpt) AutoWidthPaddingX(v float64) *PDFCellOpt

func (*PDFCellOpt) Bold

func (opt *PDFCellOpt) Bold() *PDFCellOpt

func (*PDFCellOpt) Border

func (opt *PDFCellOpt) Border(v PDFBorder) *PDFCellOpt

func (*PDFCellOpt) BorderColor added in v0.0.460

func (opt *PDFCellOpt) BorderColor(cr, cg, cb int) *PDFCellOpt

func (*PDFCellOpt) BorderColorHex added in v0.0.460

func (opt *PDFCellOpt) BorderColorHex(c uint32) *PDFCellOpt

func (*PDFCellOpt) Copy added in v0.0.494

func (opt *PDFCellOpt) Copy() *PDFCellOpt

func (*PDFCellOpt) Debug added in v0.0.496

func (opt *PDFCellOpt) Debug(v bool) *PDFCellOpt

func (*PDFCellOpt) FillBackground

func (opt *PDFCellOpt) FillBackground(v bool) *PDFCellOpt

func (*PDFCellOpt) FillColor added in v0.0.460

func (opt *PDFCellOpt) FillColor(cr, cg, cb int) *PDFCellOpt

func (*PDFCellOpt) FillColorHex added in v0.0.460

func (opt *PDFCellOpt) FillColorHex(c uint32) *PDFCellOpt

func (*PDFCellOpt) Font

func (opt *PDFCellOpt) Font(fontName PDFFontFamily, fontStyle PDFFontStyle, fontSize float64) *PDFCellOpt

func (*PDFCellOpt) FontName

func (opt *PDFCellOpt) FontName(v PDFFontFamily) *PDFCellOpt

func (*PDFCellOpt) FontSize

func (opt *PDFCellOpt) FontSize(v float64) *PDFCellOpt

func (*PDFCellOpt) FontStyle

func (opt *PDFCellOpt) FontStyle(v PDFFontStyle) *PDFCellOpt

func (*PDFCellOpt) Height

func (opt *PDFCellOpt) Height(v float64) *PDFCellOpt

func (*PDFCellOpt) Italic

func (opt *PDFCellOpt) Italic() *PDFCellOpt
func (opt *PDFCellOpt) Link(v int) *PDFCellOpt

func (*PDFCellOpt) LinkStr

func (opt *PDFCellOpt) LinkStr(v string) *PDFCellOpt

func (*PDFCellOpt) LnAfter

func (opt *PDFCellOpt) LnAfter(v float64) *PDFCellOpt

func (*PDFCellOpt) LnPos

func (opt *PDFCellOpt) LnPos(v PDFTextBreak) *PDFCellOpt

func (*PDFCellOpt) TextColor added in v0.0.460

func (opt *PDFCellOpt) TextColor(cr, cg, cb int) *PDFCellOpt

func (*PDFCellOpt) TextColorHex added in v0.0.460

func (opt *PDFCellOpt) TextColorHex(c uint32) *PDFCellOpt

func (*PDFCellOpt) ToMulti added in v0.0.494

func (opt *PDFCellOpt) ToMulti() *PDFMultiCellOpt

func (*PDFCellOpt) Width

func (opt *PDFCellOpt) Width(v float64) *PDFCellOpt

func (*PDFCellOpt) X

func (opt *PDFCellOpt) X(v float64) *PDFCellOpt

type PDFColor

type PDFColor struct {
	R int
	G int
	B int
}

type PDFFontFamily

type PDFFontFamily string
const (
	FontCourier      PDFFontFamily = "courier"
	FontHelvetica    PDFFontFamily = "helvetica"
	FontTimes        PDFFontFamily = "times"
	FontZapfDingbats PDFFontFamily = "zapfdingbats"
	FontSymbol       PDFFontFamily = "symbol"
)

type PDFFontStyle

type PDFFontStyle string
const (
	Normal     PDFFontStyle = ""
	Bold       PDFFontStyle = "B"
	Italic     PDFFontStyle = "I"
	BoldItalic PDFFontStyle = "IB"
)

type PDFImageOpt

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

func NewPDFImageOpt

func NewPDFImageOpt() *PDFImageOpt

func (*PDFImageOpt) AllowNegativePosition

func (opt *PDFImageOpt) AllowNegativePosition(v bool) *PDFImageOpt

func (*PDFImageOpt) Alpha added in v0.0.494

func (opt *PDFImageOpt) Alpha(alpha float64, blendMode PDFBlendMode) *PDFImageOpt

func (*PDFImageOpt) Compression added in v0.0.451

func (opt *PDFImageOpt) Compression(v imageext.ImageCompresson) *PDFImageOpt

func (*PDFImageOpt) Crop added in v0.0.451

func (opt *PDFImageOpt) Crop(cropX float64, cropY float64, cropWidth float64, cropHeight float64) *PDFImageOpt

func (*PDFImageOpt) Debug added in v0.0.494

func (opt *PDFImageOpt) Debug(v bool) *PDFImageOpt

func (*PDFImageOpt) FillColor added in v0.0.451

func (opt *PDFImageOpt) FillColor(v color.Color) *PDFImageOpt

func (*PDFImageOpt) Flow

func (opt *PDFImageOpt) Flow(v bool) *PDFImageOpt

func (*PDFImageOpt) Height

func (opt *PDFImageOpt) Height(v float64) *PDFImageOpt

func (*PDFImageOpt) ImageFit added in v0.0.451

func (opt *PDFImageOpt) ImageFit(v imageext.ImageFit) *PDFImageOpt

func (*PDFImageOpt) ImageType

func (opt *PDFImageOpt) ImageType(v string) *PDFImageOpt
func (opt *PDFImageOpt) Link(v int) *PDFImageOpt

func (*PDFImageOpt) LinkStr

func (opt *PDFImageOpt) LinkStr(v string) *PDFImageOpt

func (*PDFImageOpt) ReEncodePixelPerMM added in v0.0.451

func (opt *PDFImageOpt) ReEncodePixelPerMM(v float64) *PDFImageOpt

func (*PDFImageOpt) ReadDpi

func (opt *PDFImageOpt) ReadDpi(v bool) *PDFImageOpt

func (*PDFImageOpt) Width

func (opt *PDFImageOpt) Width(v float64) *PDFImageOpt

func (*PDFImageOpt) X

func (opt *PDFImageOpt) X(v float64) *PDFImageOpt

func (*PDFImageOpt) Y

func (opt *PDFImageOpt) Y(v float64) *PDFImageOpt

type PDFImageRef

type PDFImageRef struct {
	Info  *gofpdf.ImageInfoType
	Name  string
	Bin   []byte
	Image *image.Image
	Mime  string
}

type PDFImageRegisterOpt

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

func NewPDFImageRegisterOpt

func NewPDFImageRegisterOpt() *PDFImageRegisterOpt

func (*PDFImageRegisterOpt) AllowNegativePosition

func (opt *PDFImageRegisterOpt) AllowNegativePosition(v bool) *PDFImageRegisterOpt

func (*PDFImageRegisterOpt) ImageType

func (opt *PDFImageRegisterOpt) ImageType(v string) *PDFImageRegisterOpt

func (*PDFImageRegisterOpt) Name

func (*PDFImageRegisterOpt) ReadDpi

func (opt *PDFImageRegisterOpt) ReadDpi(v bool) *PDFImageRegisterOpt

type PDFLineCapStyle added in v0.0.494

type PDFLineCapStyle string
const (
	CapButt   PDFLineCapStyle = "butt"
	CapRound  PDFLineCapStyle = "round"
	CapSquare PDFLineCapStyle = "square"
)

type PDFLineOpt added in v0.0.494

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

func NewPDFLineOpt added in v0.0.494

func NewPDFLineOpt() *PDFLineOpt

func (*PDFLineOpt) Alpha added in v0.0.494

func (opt *PDFLineOpt) Alpha(alpha float64, blendMode PDFBlendMode) *PDFLineOpt

func (*PDFLineOpt) CapButt added in v0.0.494

func (opt *PDFLineOpt) CapButt() *PDFLineOpt

func (*PDFLineOpt) CapRound added in v0.0.494

func (opt *PDFLineOpt) CapRound() *PDFLineOpt

func (*PDFLineOpt) CapSquare added in v0.0.494

func (opt *PDFLineOpt) CapSquare() *PDFLineOpt

func (*PDFLineOpt) Debug added in v0.0.496

func (opt *PDFLineOpt) Debug(v bool) *PDFLineOpt

func (*PDFLineOpt) DrawColor added in v0.0.494

func (opt *PDFLineOpt) DrawColor(cr, cg, cb int) *PDFLineOpt

func (*PDFLineOpt) DrawColorHex added in v0.0.494

func (opt *PDFLineOpt) DrawColorHex(c uint32) *PDFLineOpt

func (*PDFLineOpt) LineWidth added in v0.0.494

func (opt *PDFLineOpt) LineWidth(v float64) *PDFLineOpt

type PDFMargins

type PDFMargins struct {
	Left  float64
	Top   float64
	Right float64
}

type PDFMultiCellOpt

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

func NewPDFMultiCellOpt

func NewPDFMultiCellOpt() *PDFMultiCellOpt

func (*PDFMultiCellOpt) Align

func (*PDFMultiCellOpt) Alpha added in v0.0.494

func (opt *PDFMultiCellOpt) Alpha(alpha float64, blendMode PDFBlendMode) *PDFMultiCellOpt

func (*PDFMultiCellOpt) Bold

func (opt *PDFMultiCellOpt) Bold() *PDFMultiCellOpt

func (*PDFMultiCellOpt) Border

func (opt *PDFMultiCellOpt) Border(v PDFBorder) *PDFMultiCellOpt

func (*PDFMultiCellOpt) BorderColor added in v0.0.460

func (opt *PDFMultiCellOpt) BorderColor(cr, cg, cb int) *PDFMultiCellOpt

func (*PDFMultiCellOpt) BorderColorHex added in v0.0.460

func (opt *PDFMultiCellOpt) BorderColorHex(c uint32) *PDFMultiCellOpt

func (*PDFMultiCellOpt) Copy added in v0.0.496

func (opt *PDFMultiCellOpt) Copy() *PDFMultiCellOpt

func (*PDFMultiCellOpt) Debug added in v0.0.496

func (opt *PDFMultiCellOpt) Debug(v bool) *PDFMultiCellOpt

func (*PDFMultiCellOpt) FillBackground

func (opt *PDFMultiCellOpt) FillBackground(v bool) *PDFMultiCellOpt

func (*PDFMultiCellOpt) FillColor added in v0.0.460

func (opt *PDFMultiCellOpt) FillColor(cr, cg, cb int) *PDFMultiCellOpt

func (*PDFMultiCellOpt) FillColorHex added in v0.0.460

func (opt *PDFMultiCellOpt) FillColorHex(c uint32) *PDFMultiCellOpt

func (*PDFMultiCellOpt) Font

func (opt *PDFMultiCellOpt) Font(fontName PDFFontFamily, fontStyle PDFFontStyle, fontSize float64) *PDFMultiCellOpt

func (*PDFMultiCellOpt) FontName

func (opt *PDFMultiCellOpt) FontName(v PDFFontFamily) *PDFMultiCellOpt

func (*PDFMultiCellOpt) FontSize

func (opt *PDFMultiCellOpt) FontSize(v float64) *PDFMultiCellOpt

func (*PDFMultiCellOpt) FontStyle

func (opt *PDFMultiCellOpt) FontStyle(v PDFFontStyle) *PDFMultiCellOpt

func (*PDFMultiCellOpt) Height

func (opt *PDFMultiCellOpt) Height(v float64) *PDFMultiCellOpt

func (*PDFMultiCellOpt) Italic

func (opt *PDFMultiCellOpt) Italic() *PDFMultiCellOpt

func (*PDFMultiCellOpt) LnAfter

func (opt *PDFMultiCellOpt) LnAfter(v float64) *PDFMultiCellOpt

func (*PDFMultiCellOpt) TextColor added in v0.0.460

func (opt *PDFMultiCellOpt) TextColor(cr, cg, cb int) *PDFMultiCellOpt

func (*PDFMultiCellOpt) TextColorHex added in v0.0.460

func (opt *PDFMultiCellOpt) TextColorHex(c uint32) *PDFMultiCellOpt

func (*PDFMultiCellOpt) Width

func (opt *PDFMultiCellOpt) Width(v float64) *PDFMultiCellOpt

func (*PDFMultiCellOpt) X

type PDFOrientation

type PDFOrientation string
const (
	Portrait  PDFOrientation = "P"
	Landscape PDFOrientation = "L"
)

type PDFRectOpt

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

func NewPDFRectOpt

func NewPDFRectOpt() *PDFRectOpt

func (*PDFRectOpt) Alpha added in v0.0.494

func (opt *PDFRectOpt) Alpha(alpha float64, blendMode PDFBlendMode) *PDFRectOpt

func (*PDFRectOpt) Debug added in v0.0.496

func (opt *PDFRectOpt) Debug(v bool) *PDFRectOpt

func (*PDFRectOpt) DrawColor

func (opt *PDFRectOpt) DrawColor(cr, cg, cb int) *PDFRectOpt

func (*PDFRectOpt) DrawColorHex

func (opt *PDFRectOpt) DrawColorHex(c uint32) *PDFRectOpt

func (*PDFRectOpt) FillColor

func (opt *PDFRectOpt) FillColor(cr, cg, cb int) *PDFRectOpt

func (*PDFRectOpt) FillColorHex

func (opt *PDFRectOpt) FillColorHex(c uint32) *PDFRectOpt

func (*PDFRectOpt) LineWidth

func (opt *PDFRectOpt) LineWidth(v float64) *PDFRectOpt

func (*PDFRectOpt) RadiusBL

func (opt *PDFRectOpt) RadiusBL(radius float64) *PDFRectOpt

func (*PDFRectOpt) RadiusBR

func (opt *PDFRectOpt) RadiusBR(radius float64) *PDFRectOpt

func (*PDFRectOpt) RadiusTL

func (opt *PDFRectOpt) RadiusTL(radius float64) *PDFRectOpt

func (*PDFRectOpt) RadiusTR

func (opt *PDFRectOpt) RadiusTR(radius float64) *PDFRectOpt

func (*PDFRectOpt) Rounded

func (opt *PDFRectOpt) Rounded(radius float64) *PDFRectOpt

func (*PDFRectOpt) X

func (opt *PDFRectOpt) X(v float64) *PDFRectOpt

func (*PDFRectOpt) Y

func (opt *PDFRectOpt) Y(v float64) *PDFRectOpt

type PDFRectStyle

type PDFRectStyle string
const (
	RectFill        PDFRectStyle = "F"
	RectOutline     PDFRectStyle = "D"
	RectFillOutline PDFRectStyle = "FD"
)

type PDFSize

type PDFSize string
const (
	SizeA3      PDFSize = "A3"
	SizeA4      PDFSize = "A4"
	SizeA5      PDFSize = "A4"
	SizeLetter  PDFSize = "Letter"
	SizeLegal   PDFSize = "Legal"
	SizeTabloid PDFSize = "Tabloid"
)

type PDFTextAlign

type PDFTextAlign string
const (
	AlignLeft       PDFTextAlign = "L"
	AlignHorzCenter PDFTextAlign = "C"
	AlignRight      PDFTextAlign = "R"
)

type PDFTextBreak

type PDFTextBreak int
const (
	BreakToRight    PDFTextBreak = 0
	BreakToNextLine PDFTextBreak = 1
	BreakToBelow    PDFTextBreak = 2
)

type TableBuilder added in v0.0.494

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

func (*TableBuilder) AddRow added in v0.0.494

func (b *TableBuilder) AddRow(cells ...TableCell) *TableBuilder

func (*TableBuilder) AddRowDefaultStyle added in v0.0.494

func (b *TableBuilder) AddRowDefaultStyle(cells ...string) *TableBuilder

func (*TableBuilder) AddRowWithStyle added in v0.0.494

func (b *TableBuilder) AddRowWithStyle(style *TableCellStyleOpt, cells ...string) *TableBuilder

func (*TableBuilder) Build added in v0.0.494

func (b *TableBuilder) Build()

func (*TableBuilder) BuildRow added in v0.0.500

func (b *TableBuilder) BuildRow() *TableRowBuilder

func (*TableBuilder) Debug added in v0.0.496

func (b *TableBuilder) Debug(v bool) *TableBuilder

func (*TableBuilder) DefaultStyle added in v0.0.494

func (b *TableBuilder) DefaultStyle(s *TableCellStyleOpt) *TableBuilder

func (*TableBuilder) PadX added in v0.0.494

func (b *TableBuilder) PadX(v float64) *TableBuilder

func (*TableBuilder) PadY added in v0.0.494

func (b *TableBuilder) PadY(v float64) *TableBuilder

func (*TableBuilder) RowCount added in v0.0.494

func (b *TableBuilder) RowCount() int

func (*TableBuilder) Widths added in v0.0.494

func (b *TableBuilder) Widths(v ...string) *TableBuilder

type TableCell added in v0.0.494

type TableCell struct {
	Content string
	Style   TableCellStyleOpt
}

type TableCellStyleOpt added in v0.0.494

type TableCellStyleOpt struct {
	PDFCellOpt
	// contains filtered or unexported fields
}

func NewTableCellStyleOpt added in v0.0.501

func NewTableCellStyleOpt() *TableCellStyleOpt

func (*TableCellStyleOpt) Align added in v0.0.500

func (*TableCellStyleOpt) Alpha added in v0.0.500

func (o *TableCellStyleOpt) Alpha(alpha float64, blendMode PDFBlendMode) *TableCellStyleOpt

func (*TableCellStyleOpt) AutoWidth added in v0.0.500

func (o *TableCellStyleOpt) AutoWidth() *TableCellStyleOpt

func (*TableCellStyleOpt) AutoWidthPaddingX added in v0.0.500

func (o *TableCellStyleOpt) AutoWidthPaddingX(v float64) *TableCellStyleOpt

func (*TableCellStyleOpt) Bold added in v0.0.500

func (*TableCellStyleOpt) Border added in v0.0.500

func (*TableCellStyleOpt) BorderColor added in v0.0.500

func (o *TableCellStyleOpt) BorderColor(cr, cg, cb int) *TableCellStyleOpt

func (*TableCellStyleOpt) BorderColorHex added in v0.0.500

func (o *TableCellStyleOpt) BorderColorHex(c uint32) *TableCellStyleOpt

func (*TableCellStyleOpt) CellStyle added in v0.0.500

func (*TableCellStyleOpt) Debug added in v0.0.500

func (*TableCellStyleOpt) Ellipsize added in v0.0.494

func (o *TableCellStyleOpt) Ellipsize(v bool) *TableCellStyleOpt

func (*TableCellStyleOpt) FillBackground added in v0.0.500

func (o *TableCellStyleOpt) FillBackground(v bool) *TableCellStyleOpt

func (*TableCellStyleOpt) FillColor added in v0.0.500

func (o *TableCellStyleOpt) FillColor(cr, cg, cb int) *TableCellStyleOpt

func (*TableCellStyleOpt) FillColorHex added in v0.0.500

func (o *TableCellStyleOpt) FillColorHex(c uint32) *TableCellStyleOpt

func (*TableCellStyleOpt) FillHeight added in v0.0.500

func (o *TableCellStyleOpt) FillHeight(b bool) *TableCellStyleOpt

func (*TableCellStyleOpt) Font added in v0.0.500

func (o *TableCellStyleOpt) Font(fontName PDFFontFamily, fontStyle PDFFontStyle, fontSize float64) *TableCellStyleOpt

func (*TableCellStyleOpt) FontName added in v0.0.500

func (*TableCellStyleOpt) FontSize added in v0.0.500

func (*TableCellStyleOpt) FontStyle added in v0.0.500

func (*TableCellStyleOpt) Height added in v0.0.500

func (*TableCellStyleOpt) Italic added in v0.0.500

func (o *TableCellStyleOpt) Italic() *TableCellStyleOpt

func (*TableCellStyleOpt) LinkStr added in v0.0.500

func (*TableCellStyleOpt) LnAfter added in v0.0.500

func (*TableCellStyleOpt) LnPos added in v0.0.500

func (*TableCellStyleOpt) MinWidth added in v0.0.494

func (*TableCellStyleOpt) MultiCell added in v0.0.494

func (o *TableCellStyleOpt) MultiCell(v bool) *TableCellStyleOpt

func (*TableCellStyleOpt) PaddingHorz added in v0.0.494

func (o *TableCellStyleOpt) PaddingHorz(v float64) *TableCellStyleOpt

func (*TableCellStyleOpt) TextColor added in v0.0.500

func (o *TableCellStyleOpt) TextColor(cr, cg, cb int) *TableCellStyleOpt

func (*TableCellStyleOpt) TextColorHex added in v0.0.500

func (o *TableCellStyleOpt) TextColorHex(c uint32) *TableCellStyleOpt

func (*TableCellStyleOpt) Width added in v0.0.500

func (*TableCellStyleOpt) X added in v0.0.500

type TableRowBuilder added in v0.0.500

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

func (*TableRowBuilder) BuildRow added in v0.0.500

func (r *TableRowBuilder) BuildRow() *TableBuilder

func (*TableRowBuilder) Cell added in v0.0.500

func (r *TableRowBuilder) Cell(cell string) *TableRowBuilder

func (*TableRowBuilder) CellObject added in v0.0.500

func (r *TableRowBuilder) CellObject(cell TableCell) *TableRowBuilder

func (*TableRowBuilder) CellObjects added in v0.0.500

func (r *TableRowBuilder) CellObjects(cells ...TableCell) *TableRowBuilder

func (*TableRowBuilder) CellWithStyle added in v0.0.500

func (r *TableRowBuilder) CellWithStyle(cell string, style *TableCellStyleOpt) *TableRowBuilder

func (*TableRowBuilder) Cells added in v0.0.500

func (r *TableRowBuilder) Cells(cells ...string) *TableRowBuilder

func (*TableRowBuilder) RowStyle added in v0.0.500

func (r *TableRowBuilder) RowStyle(style *TableCellStyleOpt) *TableRowBuilder

type WPDFBuilder

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

func NewPDFBuilder

func NewPDFBuilder(orientation PDFOrientation, size PDFSize, unicode bool) *WPDFBuilder

func (*WPDFBuilder) AddPage

func (b *WPDFBuilder) AddPage()

func (*WPDFBuilder) Bookmark added in v0.0.498

func (b *WPDFBuilder) Bookmark(txtStr string, level int, y float64)

func (*WPDFBuilder) Build

func (b *WPDFBuilder) Build() ([]byte, error)

func (*WPDFBuilder) Cell

func (b *WPDFBuilder) Cell(txt string, opts ...*PDFCellOpt)

func (*WPDFBuilder) Debug added in v0.0.496

func (b *WPDFBuilder) Debug(v bool)

func (*WPDFBuilder) FPDF added in v0.0.453

func (b *WPDFBuilder) FPDF() *gofpdf.Fpdf

func (*WPDFBuilder) GetDrawColor

func (b *WPDFBuilder) GetDrawColor() (cr, cg, cb int)

func (*WPDFBuilder) GetFillColor

func (b *WPDFBuilder) GetFillColor() (cr, cg, cb int)

func (*WPDFBuilder) GetFontFamily added in v0.0.494

func (b *WPDFBuilder) GetFontFamily() PDFFontStyle

func (*WPDFBuilder) GetFontSize added in v0.0.494

func (b *WPDFBuilder) GetFontSize() float64

func (*WPDFBuilder) GetFontStyle added in v0.0.494

func (b *WPDFBuilder) GetFontStyle() float64

func (*WPDFBuilder) GetLineWidth

func (b *WPDFBuilder) GetLineWidth() float64

func (*WPDFBuilder) GetMarginBottom

func (b *WPDFBuilder) GetMarginBottom() float64

func (*WPDFBuilder) GetMarginLeft

func (b *WPDFBuilder) GetMarginLeft() float64

func (*WPDFBuilder) GetMarginRight

func (b *WPDFBuilder) GetMarginRight() float64

func (*WPDFBuilder) GetMarginTop

func (b *WPDFBuilder) GetMarginTop() float64

func (*WPDFBuilder) GetMargins

func (b *WPDFBuilder) GetMargins() (left, top, right, bottom float64)

func (*WPDFBuilder) GetPageHeight

func (b *WPDFBuilder) GetPageHeight() float64

func (*WPDFBuilder) GetPageSize

func (b *WPDFBuilder) GetPageSize() (width, height float64)

func (*WPDFBuilder) GetPageWidth

func (b *WPDFBuilder) GetPageWidth() float64

func (*WPDFBuilder) GetStringWidth

func (b *WPDFBuilder) GetStringWidth(str string, opts ...PDFCellOpt) float64

func (*WPDFBuilder) GetTextColor

func (b *WPDFBuilder) GetTextColor() (cr, cg, cb int)

func (*WPDFBuilder) GetWorkAreaWidth

func (b *WPDFBuilder) GetWorkAreaWidth() float64

func (*WPDFBuilder) GetX

func (b *WPDFBuilder) GetX() float64

func (*WPDFBuilder) GetXY

func (b *WPDFBuilder) GetXY() (x float64, y float64)

func (*WPDFBuilder) GetY

func (b *WPDFBuilder) GetY() float64

func (*WPDFBuilder) Image

func (b *WPDFBuilder) Image(img *PDFImageRef, opts ...*PDFImageOpt)

func (*WPDFBuilder) IncX added in v0.0.461

func (b *WPDFBuilder) IncX(dx float64)

func (*WPDFBuilder) Line added in v0.0.494

func (b *WPDFBuilder) Line(x1 float64, y1 float64, x2 float64, y2 float64, opts ...*PDFLineOpt)

func (*WPDFBuilder) Ln

func (b *WPDFBuilder) Ln(h float64)

func (*WPDFBuilder) MultiCell

func (b *WPDFBuilder) MultiCell(txt string, opts ...*PDFMultiCellOpt)

func (*WPDFBuilder) PageNo added in v0.0.494

func (b *WPDFBuilder) PageNo() int

func (*WPDFBuilder) Rect

func (b *WPDFBuilder) Rect(w float64, h float64, styleStr PDFRectStyle, opts ...*PDFRectOpt)

func (*WPDFBuilder) RegisterImage

func (b *WPDFBuilder) RegisterImage(bin []byte, opts ...*PDFImageRegisterOpt) *PDFImageRef

func (*WPDFBuilder) SetAutoPageBreak added in v0.0.494

func (b *WPDFBuilder) SetAutoPageBreak(auto bool, margin float64)

func (*WPDFBuilder) SetCellSpacing added in v0.0.454

func (b *WPDFBuilder) SetCellSpacing(h float64)

func (*WPDFBuilder) SetDrawColor

func (b *WPDFBuilder) SetDrawColor(cr, cg, cb int)

func (*WPDFBuilder) SetFillColor

func (b *WPDFBuilder) SetFillColor(cr, cg, cb int)

func (*WPDFBuilder) SetFont

func (b *WPDFBuilder) SetFont(fontName PDFFontFamily, fontStyle PDFFontStyle, fontSize float64)

func (*WPDFBuilder) SetFooterFunc added in v0.0.494

func (b *WPDFBuilder) SetFooterFunc(fnc func())

func (*WPDFBuilder) SetLineWidth

func (b *WPDFBuilder) SetLineWidth(w float64)

func (*WPDFBuilder) SetMargins

func (b *WPDFBuilder) SetMargins(v PDFMargins)

func (*WPDFBuilder) SetTextColor

func (b *WPDFBuilder) SetTextColor(cr, cg, cb int)

func (*WPDFBuilder) SetX

func (b *WPDFBuilder) SetX(x float64)

func (*WPDFBuilder) SetXY

func (b *WPDFBuilder) SetXY(x float64, y float64)

func (*WPDFBuilder) SetY

func (b *WPDFBuilder) SetY(y float64)

func (*WPDFBuilder) Table added in v0.0.494

func (b *WPDFBuilder) Table() *TableBuilder

Jump to

Keyboard shortcuts

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