Versions in this module Expand all Collapse all v1 v1.0.1 Feb 27, 2023 v1.0.0 Feb 27, 2023 Changes in this version + func CreatePDFInProjectRootOutFolder(pdf *gofpdf.Fpdf, fileName string) error + type AlignmentType int + const AlignBottom + const AlignBottomLeft + const AlignBottomRight + const AlignCenter + const AlignLeft + const AlignRight + const AlignTop + const AlignTopLeft + const AlignTopRight + type BorderType int + const BorderBottom + const BorderBottomAndLeft + const BorderBottomAndRight + const BorderInside + const BorderLeft + const BorderNone + const BorderOpenBottom + const BorderOpenLeft + const BorderOpenRight + const BorderOpenTop + const BorderOutside + const BorderRight + const BorderTop + const BorderTopAndLeft + const BorderTopAndRight + const BorderUnset + const BorderX + const BorderY + type BoxType int + const BoxClosed + const BoxOpen + const BoxUnset + type CellType int + const CellMulti + const CellSingle + type ColumnType int + const ColCalc + const ColDyn + const ColFixed + type Doc struct + func NewA4() *Doc + func NewA4WithDefaults(setDetaultsFunc *func(*gofpdf.Fpdf)) *Doc + func (d *Doc) CFormat(w, h float64, txtStr, borderStr string, ln int, alignStr string, fill bool, ...) + func (d *Doc) Ellipsis() string + func (d *Doc) GetFontLineHeight() float64 + func (d *Doc) GetLineHeight() float64 + func (d *Doc) GetPrintHeight() float64 + func (d *Doc) GetPrintWidth() float64 + func (d *Doc) GetRemainingPrintHeight() float64 + func (d *Doc) MCell(w, h float64, txtStr, borderStr, alignStr string, fill bool) + func (d *Doc) SetLineHeight(lh float64) + func (d *Doc) VerticalLine(x1, x2, thickness float64) + func (d *Doc) VerticalLinePrintWidth() + func (doc *Doc) AddImage(dto *Image) (*gofpdf.ImageInfoType, error) + type DocTable struct + func NewDocTable(doc *Doc, cells [][]string, args ...interface{}) (*DocTable, error) + func (t *DocTable) Generate() error + func (t *DocTable) SetAllCellAligns(a AlignmentType) + func (t *DocTable) SetAllCellBorders(b bool) + func (t *DocTable) SetAllCellLineHeightFactors(f float64) + func (t *DocTable) SetAllCellPaddings(p Padding) + func (t *DocTable) SetAllCellStyleFuncs(f *func(gofpdf.Fpdf)) + func (t *DocTable) SetAllCellTypes(ct CellType) + func (t *DocTable) SetAllColFixedWidths(w float64) + func (t *DocTable) SetAllColGaps(g float64) + func (t *DocTable) SetAllColTypes(ct ColumnType) + func (t *DocTable) SetAllRowFixedHeights(f float64) + func (t *DocTable) SetAllRowGaps(g float64) + func (t *DocTable) SetAllRowTypes(rt RowType) + func (t *DocTable) SetCell(i, j int, str string) error + func (t *DocTable) SetCellAlingsPerColumn(a []AlignmentType) error + func (t *DocTable) SetCellPaddings(p [][]Padding) error + func (t *DocTable) SetCellPaddingsPerColumn(p []Padding) error + func (t *DocTable) SetCellStyleFuncsPerAlternateRows(f1, f2 *func(gofpdf.Fpdf)) + func (t *DocTable) SetCellStyleFuncsPerColumn(fs []*func(gofpdf.Fpdf)) error + func (t *DocTable) SetCellStyleFuncsPerRow(fs []*func(gofpdf.Fpdf)) error + func (t *DocTable) SetCellStyleFuncsRow(i int, f *func(gofpdf.Fpdf)) error + func (t *DocTable) SetCellType(i, j int, ct CellType) error + func (t *DocTable) SetCellTypesPerColumn(ct []CellType) error + func (t *DocTable) SetColFixedWidths(cFixedWidth []float64) error + func (t *DocTable) SetColGaps(g []float64) error + func (t *DocTable) SetColTypes(colTypes []ColumnType) error + func (t *DocTable) SetDefaults() + func (t *DocTable) SetHeadType(ht HeadType) + func (t *DocTable) SetRowFixedHeights(f []float64) error + func (t *DocTable) SetRowGaps(g []float64) error + func (t *DocTable) SetRowTypes(rt []RowType) error + type FillType int + const Fill + const FillGradientLinear + const FillGradientRadial + const FillNone + const FillUnset + type FlowType int + const FlowBlock + const FlowInline + const FlowNewline + const FlowUnset + type HAlignmentType int + const HAlignCenter + const HAlignLeft + const HAlignRight + const HAlignUnset + type HeadType int + const HeadFirstRow + const HeadNone + const HeadUnset + type Image struct + ImageUrl *string + type LayoutType string + const LayoutTypeDIN5008A + const LayoutTypeDIN5008B + type OrientationType int + const OrientationLandscape + const OrientationPortrait + const OrientationUnset + type Padding [4]float64 + type PositionType int + const PositionAbsolute + const PositionRelative + const PositionUnset + type RowType int + const RowCalc + const RowFixed + type UnitType int + const UnitCentimeter + const UnitInch + const UnitMillimeter + const UnitPoint + const UnitUnset + type VAlignmentType int + const VAlignBottom + const VAlignMiddle + const VAlignTop + const VAlignUnset