Versions in this module Expand all Collapse all v0 v0.39.0 Aug 8, 2022 Changes in this version + func NewWrapper(pdf *gofpdf.Fpdf) *fpdf + type Fpdf interface + AddFont func(familyStr, styleStr, fileStr string) + AddFontFromBytes func(familyStr, styleStr string, jsonFileBytes, zFileBytes []byte) + AddFontFromReader func(familyStr, styleStr string, r io.Reader) + AddLayer func(name string, visible bool) (layerID int) + AddLink func() int + AddPage func() + AddPageFormat func(orientationStr string, size gofpdf.SizeType) + AddSpotColor func(nameStr string, c, m, y, k byte) + AddUTF8Font func(familyStr, styleStr, fileStr string) + AliasNbPages func(aliasStr string) + Arc func(x, y, rx, ry, degRotate, degStart, degEnd float64, styleStr string) + ArcTo func(x, y, rx, ry, degRotate, degStart, degEnd float64) + BeginLayer func(id int) + Beziergon func(points []gofpdf.PointType, styleStr string) + Bookmark func(txtStr string, level int, y float64) + Cell func(w, h float64, txtStr string) + CellFormat func(w, h float64, txtStr, borderStr string, ln int, alignStr string, fill bool, ...) + Cellf func(w, h float64, fmtStr string, args ...interface{}) + Circle func(x, y, r float64, styleStr string) + ClearError func() + ClipCircle func(x, y, r float64, outline bool) + ClipEllipse func(x, y, rx, ry float64, outline bool) + ClipEnd func() + ClipPolygon func(points []gofpdf.PointType, outline bool) + ClipRect func(x, y, w, h float64, outline bool) + ClipRoundedRect func(x, y, w, h, r float64, outline bool) + ClipText func(x, y float64, txtStr string, outline bool) + Close func() + ClosePath func() + CreateTemplate func(fn func(*gofpdf.Tpl)) gofpdf.Template + CreateTemplateCustom func(corner gofpdf.PointType, size gofpdf.SizeType, fn func(*gofpdf.Tpl)) gofpdf.Template + Curve func(x0, y0, cx, cy, x1, y1 float64, styleStr string) + CurveBezierCubic func(x0, y0, cx0, cy0, cx1, cy1, x1, y1 float64, styleStr string) + CurveBezierCubicTo func(cx0, cy0, cx1, cy1, x, y float64) + CurveCubic func(x0, y0, cx0, cy0, x1, y1, cx1, cy1 float64, styleStr string) + CurveTo func(cx, cy, x, y float64) + DrawPath func(styleStr string) + Ellipse func(x, y, rx, ry, degRotate float64, styleStr string) + EndLayer func() + Err func() bool + Error func() error + GetAlpha func() (alpha float64, blendModeStr string) + GetAutoPageBreak func() (auto bool, margin float64) + GetCellMargin func() float64 + GetConversionRatio func() float64 + GetDrawColor func() (int, int, int) + GetDrawSpotColor func() (name string, c, m, y, k byte) + GetFillColor func() (int, int, int) + GetFillSpotColor func() (name string, c, m, y, k byte) + GetFontDesc func(familyStr, styleStr string) gofpdf.FontDescType + GetFontSize func() (ptSize, unitSize float64) + GetImageInfo func(imageStr string) (info *gofpdf.ImageInfoType) + GetLineWidth func() float64 + GetMargins func() (left, top, right, bottom float64) + GetPageSize func() (width, height float64) + GetPageSizeStr func(sizeStr string) (size gofpdf.SizeType) + GetStringWidth func(s string) float64 + GetTextColor func() (int, int, int) + GetTextSpotColor func() (name string, c, m, y, k byte) + GetX func() float64 + GetXY func() (float64, float64) + GetY func() float64 + HTMLBasicNew func() (html gofpdf.HTMLBasicType) + Image func(imageNameStr string, x, y, w, h float64, flow bool, tp string, link int, ...) + ImageOptions func(imageNameStr string, x, y, w, h float64, flow bool, ...) + ImageTypeFromMime func(mimeStr string) (tp string) + Line func(x1, y1, x2, y2 float64) + LineTo func(x, y float64) + LinearGradient func(x, y, w, h float64, r1, g1, b1, r2, g2, b2 int, x1, y1, x2, y2 float64) + Link func(x, y, w, h float64, link int) + LinkString func(x, y, w, h float64, linkStr string) + Ln func(h float64) + MoveTo func(x, y float64) + MultiCell func(w, h float64, txtStr, borderStr, alignStr string, fill bool) + Ok func() bool + OpenLayerPane func() + Output func(w io.Writer) error + OutputAndClose func(w io.WriteCloser) error + OutputFileAndClose func(fileStr string) error + PageCount func() int + PageNo func() int + PageSize func(pageNum int) (wd, ht float64, unitStr string) + PointConvert func(pt float64) (u float64) + PointToUnitConvert func(pt float64) (u float64) + Polygon func(points []gofpdf.PointType, styleStr string) + RadialGradient func(x, y, w, h float64, r1, g1, b1, r2, g2, b2 int, x1, y1, x2, y2, r float64) + RawWriteBuf func(r io.Reader) + RawWriteStr func(str string) + Rect func(x, y, w, h float64, styleStr string) + RegisterAlias func(alias, replacement string) + RegisterImage func(fileStr, tp string) (info *gofpdf.ImageInfoType) + RegisterImageOptions func(fileStr string, options gofpdf.ImageOptions) (info *gofpdf.ImageInfoType) + RegisterImageOptionsReader func(imgName string, options gofpdf.ImageOptions, r io.Reader) (info *gofpdf.ImageInfoType) + RegisterImageReader func(imgName, tp string, r io.Reader) (info *gofpdf.ImageInfoType) + SVGBasicWrite func(sb *gofpdf.SVGBasicType, scale float64) + SetAcceptPageBreakFunc func(fnc func() bool) + SetAlpha func(alpha float64, blendModeStr string) + SetAuthor func(authorStr string, isUTF8 bool) + SetAutoPageBreak func(auto bool, margin float64) + SetCatalogSort func(flag bool) + SetCellMargin func(margin float64) + SetCompression func(compress bool) + SetCreationDate func(tm time.Time) + SetCreator func(creatorStr string, isUTF8 bool) + SetDashPattern func(dashArray []float64, dashPhase float64) + SetDisplayMode func(zoomStr, layoutStr string) + SetDrawColor func(r, g, b int) + SetDrawSpotColor func(nameStr string, tint byte) + SetError func(err error) + SetErrorf func(fmtStr string, args ...interface{}) + SetFillColor func(r, g, b int) + SetFillSpotColor func(nameStr string, tint byte) + SetFont func(familyStr, styleStr string, size float64) + SetFontLoader func(loader gofpdf.FontLoader) + SetFontLocation func(fontDirStr string) + SetFontSize func(size float64) + SetFontStyle func(styleStr string) + SetFontUnitSize func(size float64) + SetFooterFunc func(fnc func()) + SetFooterFuncLpi func(fnc func(lastPage bool)) + SetHeaderFunc func(fnc func()) + SetHeaderFuncMode func(fnc func(), homeMode bool) + SetHomeXY func() + SetJavascript func(script string) + SetKeywords func(keywordsStr string, isUTF8 bool) + SetLeftMargin func(margin float64) + SetLineCapStyle func(styleStr string) + SetLineJoinStyle func(styleStr string) + SetLineWidth func(width float64) + SetLink func(link int, y float64, page int) + SetMargins func(left, top, right float64) + SetPage func(pageNum int) + SetPageBox func(t string, x, y, wd, ht float64) + SetPageBoxRec func(t string, pb gofpdf.PageBox) + SetProtection func(actionFlag byte, userPassStr, ownerPassStr string) + SetRightMargin func(margin float64) + SetSubject func(subjectStr string, isUTF8 bool) + SetTextColor func(r, g, b int) + SetTextSpotColor func(nameStr string, tint byte) + SetTitle func(titleStr string, isUTF8 bool) + SetTopMargin func(margin float64) + SetX func(x float64) + SetXY func(x, y float64) + SetXmpMetadata func(xmpStream []byte) + SetY func(y float64) + SplitLines func(txt []byte, w float64) [][]byte + String func() string + Text func(x, y float64, txtStr string) + Transform func(tm gofpdf.TransformMatrix) + TransformBegin func() + TransformEnd func() + TransformMirrorHorizontal func(x float64) + TransformMirrorLine func(angle, x, y float64) + TransformMirrorPoint func(x, y float64) + TransformMirrorVertical func(y float64) + TransformRotate func(angle, x, y float64) + TransformScale func(scaleWd, scaleHt, x, y float64) + TransformScaleX func(scaleWd, x, y float64) + TransformScaleXY func(s, x, y float64) + TransformScaleY func(scaleHt, x, y float64) + TransformSkew func(angleX, angleY, x, y float64) + TransformSkewX func(angleX, x, y float64) + TransformSkewY func(angleY, x, y float64) + TransformTranslate func(tx, ty float64) + TransformTranslateX func(tx float64) + TransformTranslateY func(ty float64) + UnicodeTranslatorFromDescriptor func(cpStr string) (rep func(string) string) + UnitToPointConvert func(u float64) (pt float64) + UseTemplate func(t gofpdf.Template) + UseTemplateScaled func(t gofpdf.Template, corner gofpdf.PointType, size gofpdf.SizeType) + Write func(h float64, txtStr string) + WriteAligned func(width, lineHeight float64, textStr, alignStr string) + WriteLinkID func(h float64, displayStr string, linkID int) + WriteLinkString func(h float64, displayStr, targetStr string) + Writef func(h float64, fmtStr string, args ...interface{})