Versions in this module Expand all Collapse all v2 v2.17.3 Apr 20, 2020 Changes in this version + const AlignBaseline + const AlignBottom + const AlignCenter + const AlignLeft + const AlignMiddle + const AlignRight + const AlignTop + const BorderBottom + const BorderFull + const BorderLeft + const BorderNone + const BorderRight + const BorderTop + const CnProtectAnnotForms + const CnProtectCopy + const CnProtectModify + const CnProtectPrint + const FontFlagAllCap + const FontFlagFixedPitch + const FontFlagItalic + const FontFlagNonsymbolic + const FontFlagScript + const FontFlagSerif + const FontFlagSymbolic + const ForceBold + const LineBreakBelow + const LineBreakNone + const LineBreakNormal + const OrientationLandscape + const OrientationPortrait + const PageSizeA3 + const PageSizeA4 + const PageSizeA5 + const PageSizeLegal + const PageSizeLetter + const SmallCap + const UnitCentimeter + const UnitInch + const UnitMillimeter + const UnitPoint + func CompareBytes(sl1, sl2 []byte, printDiff bool) (err error) + func ComparePDFFiles(file1Str, file2Str string, printDiff bool) (err error) + func ComparePDFs(rdr1, rdr2 io.Reader, printDiff bool) (err error) + func MakeFont(fontFileStr, encodingFileStr, dstDirStr string, msgWriter io.Writer, ...) error + func SetDefaultCatalogSort(flag bool) + func SetDefaultCompression(compress bool) + func SetDefaultCreationDate(tm time.Time) + func SetDefaultModificationDate(tm time.Time) + func TickmarkPrecision(div float64) int + func Tickmarks(min, max float64) (list []float64, precision int) + func UTF8CutFont(inBuf []byte, cutset string) (outBuf []byte) + func UnicodeTranslator(r io.Reader) (f func(string) string, err error) + func UnicodeTranslatorFromFile(fileStr string) (f func(string) string, err error) + type Attachment struct + Content []byte + Description string + Filename string + type FontDescType struct + Ascent int + CapHeight int + Descent int + Flags int + FontBBox fontBoxType + ItalicAngle int + MissingWidth int + StemV int + type FontLoader interface + Open func(name string) (io.Reader, error) + type Fpdf struct + func New(orientationStr, unitStr, sizeStr, fontDirStr string) (f *Fpdf) + func NewCustom(init *InitType) (f *Fpdf) + func (f *Fpdf) AddAttachmentAnnotation(a *Attachment, x, y, w, h float64) + func (f *Fpdf) AddFont(familyStr, styleStr, fileStr string) + func (f *Fpdf) AddFontFromBytes(familyStr, styleStr string, jsonFileBytes, zFileBytes []byte) + func (f *Fpdf) AddFontFromReader(familyStr, styleStr string, r io.Reader) + func (f *Fpdf) AddLayer(name string, visible bool) (layerID int) + func (f *Fpdf) AddLink() int + func (f *Fpdf) AddPage() + func (f *Fpdf) AddPageFormat(orientationStr string, size SizeType) + func (f *Fpdf) AddSpotColor(nameStr string, c, m, y, k byte) + func (f *Fpdf) AddUTF8Font(familyStr, styleStr, fileStr string) + func (f *Fpdf) AddUTF8FontFromBytes(familyStr, styleStr string, utf8Bytes []byte) + func (f *Fpdf) AliasNbPages(aliasStr string) + func (f *Fpdf) Arc(x, y, rx, ry, degRotate, degStart, degEnd float64, styleStr string) + func (f *Fpdf) ArcTo(x, y, rx, ry, degRotate, degStart, degEnd float64) + func (f *Fpdf) BeginLayer(id int) + func (f *Fpdf) Beziergon(points []PointType, styleStr string) + func (f *Fpdf) Bookmark(txtStr string, level int, y float64) + func (f *Fpdf) Cell(w, h float64, txtStr string) + func (f *Fpdf) CellFormat(w, h float64, txtStr, borderStr string, ln int, alignStr string, fill bool, ...) + func (f *Fpdf) Cellf(w, h float64, fmtStr string, args ...interface{}) + func (f *Fpdf) Circle(x, y, r float64, styleStr string) + func (f *Fpdf) ClearError() + func (f *Fpdf) ClipCircle(x, y, r float64, outline bool) + func (f *Fpdf) ClipEllipse(x, y, rx, ry float64, outline bool) + func (f *Fpdf) ClipEnd() + func (f *Fpdf) ClipPolygon(points []PointType, outline bool) + func (f *Fpdf) ClipRect(x, y, w, h float64, outline bool) + func (f *Fpdf) ClipRoundedRect(x, y, w, h, r float64, outline bool) + func (f *Fpdf) ClipRoundedRectExt(x, y, w, h, rTL, rTR, rBR, rBL float64, outline bool) + func (f *Fpdf) ClipText(x, y float64, txtStr string, outline bool) + func (f *Fpdf) Close() + func (f *Fpdf) ClosePath() + func (f *Fpdf) CreateTemplate(fn func(*Tpl)) Template + func (f *Fpdf) CreateTemplateCustom(corner PointType, size SizeType, fn func(*Tpl)) Template + func (f *Fpdf) Curve(x0, y0, cx, cy, x1, y1 float64, styleStr string) + func (f *Fpdf) CurveBezierCubic(x0, y0, cx0, cy0, cx1, cy1, x1, y1 float64, styleStr string) + func (f *Fpdf) CurveBezierCubicTo(cx0, cy0, cx1, cy1, x, y float64) + func (f *Fpdf) CurveCubic(x0, y0, cx0, cy0, x1, y1, cx1, cy1 float64, styleStr string) + func (f *Fpdf) CurveTo(cx, cy, x, y float64) + func (f *Fpdf) DrawPath(styleStr string) + func (f *Fpdf) Ellipse(x, y, rx, ry, degRotate float64, styleStr string) + func (f *Fpdf) EndLayer() + func (f *Fpdf) Err() bool + func (f *Fpdf) Error() error + func (f *Fpdf) GetAlpha() (alpha float64, blendModeStr string) + func (f *Fpdf) GetAutoPageBreak() (auto bool, margin float64) + func (f *Fpdf) GetCellMargin() float64 + func (f *Fpdf) GetConversionRatio() float64 + func (f *Fpdf) GetDrawColor() (int, int, int) + func (f *Fpdf) GetDrawSpotColor() (name string, c, m, y, k byte) + func (f *Fpdf) GetFillColor() (int, int, int) + func (f *Fpdf) GetFillSpotColor() (name string, c, m, y, k byte) + func (f *Fpdf) GetFontDesc(familyStr, styleStr string) FontDescType + func (f *Fpdf) GetFontSize() (ptSize, unitSize float64) + func (f *Fpdf) GetImageInfo(imageStr string) (info *ImageInfoType) + func (f *Fpdf) GetLineWidth() float64 + func (f *Fpdf) GetMargins() (left, top, right, bottom float64) + func (f *Fpdf) GetPageSize() (width, height float64) + func (f *Fpdf) GetPageSizeStr(sizeStr string) (size SizeType) + func (f *Fpdf) GetStringSymbolWidth(s string) int + func (f *Fpdf) GetStringWidth(s string) float64 + func (f *Fpdf) GetTextColor() (int, int, int) + func (f *Fpdf) GetTextSpotColor() (name string, c, m, y, k byte) + func (f *Fpdf) GetX() float64 + func (f *Fpdf) GetXY() (float64, float64) + func (f *Fpdf) GetY() float64 + func (f *Fpdf) HTMLBasicNew() (html HTMLBasicType) + func (f *Fpdf) Image(imageNameStr string, x, y, w, h float64, flow bool, tp string, link int, ...) + func (f *Fpdf) ImageOptions(imageNameStr string, x, y, w, h float64, flow bool, options ImageOptions, ...) + func (f *Fpdf) ImageTypeFromMime(mimeStr string) (tp string) + func (f *Fpdf) ImportObjPos(objPos map[string]map[int]string) + func (f *Fpdf) ImportObjects(objs map[string][]byte) + func (f *Fpdf) ImportTemplates(tpls map[string]string) + func (f *Fpdf) LTR() + func (f *Fpdf) Line(x1, y1, x2, y2 float64) + func (f *Fpdf) LineTo(x, y float64) + func (f *Fpdf) LinearGradient(x, y, w, h float64, r1, g1, b1, r2, g2, b2 int, x1, y1, x2, y2 float64) + func (f *Fpdf) Link(x, y, w, h float64, link int) + func (f *Fpdf) LinkString(x, y, w, h float64, linkStr string) + func (f *Fpdf) Ln(h float64) + func (f *Fpdf) MoveTo(x, y float64) + func (f *Fpdf) MultiCell(w, h float64, txtStr, borderStr, alignStr string, fill bool) + func (f *Fpdf) Ok() bool + func (f *Fpdf) OpenLayerPane() + func (f *Fpdf) Output(w io.Writer) error + func (f *Fpdf) OutputAndClose(w io.WriteCloser) error + func (f *Fpdf) OutputFileAndClose(fileStr string) error + func (f *Fpdf) PageCount() int + func (f *Fpdf) PageNo() int + func (f *Fpdf) PageSize(pageNum int) (wd, ht float64, unitStr string) + func (f *Fpdf) PointConvert(pt float64) (u float64) + func (f *Fpdf) PointToUnitConvert(pt float64) (u float64) + func (f *Fpdf) Polygon(points []PointType, styleStr string) + func (f *Fpdf) RTL() + func (f *Fpdf) RadialGradient(x, y, w, h float64, r1, g1, b1, r2, g2, b2 int, x1, y1, x2, y2, r float64) + func (f *Fpdf) RawWriteBuf(r io.Reader) + func (f *Fpdf) RawWriteStr(str string) + func (f *Fpdf) Rect(x, y, w, h float64, styleStr string) + func (f *Fpdf) RegisterAlias(alias, replacement string) + func (f *Fpdf) RegisterImage(fileStr, tp string) (info *ImageInfoType) + func (f *Fpdf) RegisterImageOptions(fileStr string, options ImageOptions) (info *ImageInfoType) + func (f *Fpdf) RegisterImageOptionsReader(imgName string, options ImageOptions, r io.Reader) (info *ImageInfoType) + func (f *Fpdf) RegisterImageReader(imgName, tp string, r io.Reader) (info *ImageInfoType) + func (f *Fpdf) RoundedRect(x, y, w, h, r float64, corners string, stylestr string) + func (f *Fpdf) RoundedRectExt(x, y, w, h, rTL, rTR, rBR, rBL float64, stylestr string) + func (f *Fpdf) SVGBasicWrite(sb *SVGBasicType, scale float64) + func (f *Fpdf) SetAcceptPageBreakFunc(fnc func() bool) + func (f *Fpdf) SetAlpha(alpha float64, blendModeStr string) + func (f *Fpdf) SetAttachments(as []Attachment) + func (f *Fpdf) SetAuthor(authorStr string, isUTF8 bool) + func (f *Fpdf) SetAutoPageBreak(auto bool, margin float64) + func (f *Fpdf) SetCatalogSort(flag bool) + func (f *Fpdf) SetCellMargin(margin float64) + func (f *Fpdf) SetCompression(compress bool) + func (f *Fpdf) SetCreationDate(tm time.Time) + func (f *Fpdf) SetCreator(creatorStr string, isUTF8 bool) + func (f *Fpdf) SetDashPattern(dashArray []float64, dashPhase float64) + func (f *Fpdf) SetDisplayMode(zoomStr, layoutStr string) + func (f *Fpdf) SetDrawColor(r, g, b int) + func (f *Fpdf) SetDrawSpotColor(nameStr string, tint byte) + func (f *Fpdf) SetError(err error) + func (f *Fpdf) SetErrorf(fmtStr string, args ...interface{}) + func (f *Fpdf) SetFillColor(r, g, b int) + func (f *Fpdf) SetFillSpotColor(nameStr string, tint byte) + func (f *Fpdf) SetFont(familyStr, styleStr string, size float64) + func (f *Fpdf) SetFontLoader(loader FontLoader) + func (f *Fpdf) SetFontLocation(fontDirStr string) + func (f *Fpdf) SetFontSize(size float64) + func (f *Fpdf) SetFontStyle(styleStr string) + func (f *Fpdf) SetFontUnitSize(size float64) + func (f *Fpdf) SetFooterFunc(fnc func()) + func (f *Fpdf) SetFooterFuncLpi(fnc func(lastPage bool)) + func (f *Fpdf) SetHeaderFunc(fnc func()) + func (f *Fpdf) SetHeaderFuncMode(fnc func(), homeMode bool) + func (f *Fpdf) SetHomeXY() + func (f *Fpdf) SetJavascript(script string) + func (f *Fpdf) SetKeywords(keywordsStr string, isUTF8 bool) + func (f *Fpdf) SetLeftMargin(margin float64) + func (f *Fpdf) SetLineCapStyle(styleStr string) + func (f *Fpdf) SetLineJoinStyle(styleStr string) + func (f *Fpdf) SetLineWidth(width float64) + func (f *Fpdf) SetLink(link int, y float64, page int) + func (f *Fpdf) SetMargins(left, top, right float64) + func (f *Fpdf) SetModificationDate(tm time.Time) + func (f *Fpdf) SetPage(pageNum int) + func (f *Fpdf) SetPageBox(t string, x, y, wd, ht float64) + func (f *Fpdf) SetPageBoxRec(t string, pb PageBox) + func (f *Fpdf) SetProducer(producerStr string, isUTF8 bool) + func (f *Fpdf) SetProtection(actionFlag byte, userPassStr, ownerPassStr string) + func (f *Fpdf) SetRightMargin(margin float64) + func (f *Fpdf) SetSubject(subjectStr string, isUTF8 bool) + func (f *Fpdf) SetTextColor(r, g, b int) + func (f *Fpdf) SetTextRenderingMode(mode int) + func (f *Fpdf) SetTextSpotColor(nameStr string, tint byte) + func (f *Fpdf) SetTitle(titleStr string, isUTF8 bool) + func (f *Fpdf) SetTopMargin(margin float64) + func (f *Fpdf) SetUnderlineThickness(thickness float64) + func (f *Fpdf) SetWordSpacing(space float64) + func (f *Fpdf) SetX(x float64) + func (f *Fpdf) SetXY(x, y float64) + func (f *Fpdf) SetXmpMetadata(xmpStream []byte) + func (f *Fpdf) SetY(y float64) + func (f *Fpdf) SplitLines(txt []byte, w float64) [][]byte + func (f *Fpdf) SplitText(txt string, w float64) (lines []string) + func (f *Fpdf) String() string + func (f *Fpdf) SubWrite(ht float64, str string, subFontSize, subOffset float64, link int, ...) + func (f *Fpdf) Text(x, y float64, txtStr string) + func (f *Fpdf) Transform(tm TransformMatrix) + func (f *Fpdf) TransformBegin() + func (f *Fpdf) TransformEnd() + func (f *Fpdf) TransformMirrorHorizontal(x float64) + func (f *Fpdf) TransformMirrorLine(angle, x, y float64) + func (f *Fpdf) TransformMirrorPoint(x, y float64) + func (f *Fpdf) TransformMirrorVertical(y float64) + func (f *Fpdf) TransformRotate(angle, x, y float64) + func (f *Fpdf) TransformScale(scaleWd, scaleHt, x, y float64) + func (f *Fpdf) TransformScaleX(scaleWd, x, y float64) + func (f *Fpdf) TransformScaleXY(s, x, y float64) + func (f *Fpdf) TransformScaleY(scaleHt, x, y float64) + func (f *Fpdf) TransformSkew(angleX, angleY, x, y float64) + func (f *Fpdf) TransformSkewX(angleX, x, y float64) + func (f *Fpdf) TransformSkewY(angleY, x, y float64) + func (f *Fpdf) TransformTranslate(tx, ty float64) + func (f *Fpdf) TransformTranslateX(tx float64) + func (f *Fpdf) TransformTranslateY(ty float64) + func (f *Fpdf) UnicodeTranslatorFromDescriptor(cpStr string) (rep func(string) string) + func (f *Fpdf) UnitToPointConvert(u float64) (pt float64) + func (f *Fpdf) UseImportedTemplate(tplName string, scaleX float64, scaleY float64, tX float64, tY float64) + func (f *Fpdf) UseTemplate(t Template) + func (f *Fpdf) UseTemplateScaled(t Template, corner PointType, size SizeType) + func (f *Fpdf) Write(h float64, txtStr string) + func (f *Fpdf) WriteAligned(width, lineHeight float64, textStr, alignStr string) + func (f *Fpdf) WriteLinkID(h float64, displayStr string, linkID int) + func (f *Fpdf) WriteLinkString(h float64, displayStr, targetStr string) + func (f *Fpdf) Writef(h float64, fmtStr string, args ...interface{}) + type FpdfTpl struct + func (t *FpdfTpl) Bytes() []byte + func (t *FpdfTpl) FromPage(page int) (Template, error) + func (t *FpdfTpl) FromPages() []Template + func (t *FpdfTpl) GobDecode(buf []byte) error + func (t *FpdfTpl) GobEncode() ([]byte, error) + func (t *FpdfTpl) ID() string + func (t *FpdfTpl) Images() map[string]*ImageInfoType + func (t *FpdfTpl) NumPages() int + func (t *FpdfTpl) Serialize() ([]byte, error) + func (t *FpdfTpl) Size() (corner PointType, size SizeType) + func (t *FpdfTpl) Templates() []Template + type GridType struct + ClrMain RGBAType + ClrSub RGBAType + ClrText RGBAType + TextSize float64 + WdMain float64 + WdSub float64 + XDiv int + XLabelIn bool + XLabelRotate bool + XTickStr TickFormatFncType + YDiv int + YLabelIn bool + YTickStr TickFormatFncType + func NewGrid(x, y, w, h float64) (grid GridType) + func (g *GridType) TickmarksContainX(min, max float64) + func (g *GridType) TickmarksContainY(min, max float64) + func (g *GridType) TickmarksExtentX(min, div float64, count int) + func (g *GridType) TickmarksExtentY(min, div float64, count int) + func (g GridType) Grid(pdf *Fpdf) + func (g GridType) Ht(dataHt float64) float64 + func (g GridType) HtAbs(dataHt float64) float64 + func (g GridType) Plot(pdf *Fpdf, xMin, xMax float64, count int, fnc func(x float64) (y float64)) + func (g GridType) Pos(xRel, yRel float64) (x, y float64) + func (g GridType) Wd(dataWd float64) float64 + func (g GridType) WdAbs(dataWd float64) float64 + func (g GridType) X(dataX float64) float64 + func (g GridType) XRange() (min, max float64) + func (g GridType) XY(dataX, dataY float64) (x, y float64) + func (g GridType) Y(dataY float64) float64 + func (g GridType) YRange() (min, max float64) + type HTMLBasicSegmentType struct + Attr map[string]string + Cat byte + Str string + func HTMLBasicTokenize(htmlStr string) (list []HTMLBasicSegmentType) + type HTMLBasicType struct + Link struct{ ... } + func (html *HTMLBasicType) Write(lineHt float64, htmlStr string) + type ImageInfoType struct + func (info *ImageInfoType) Extent() (wd, ht float64) + func (info *ImageInfoType) GobDecode(buf []byte) (err error) + func (info *ImageInfoType) GobEncode() (buf []byte, err error) + func (info *ImageInfoType) Height() float64 + func (info *ImageInfoType) SetDpi(dpi float64) + func (info *ImageInfoType) Width() float64 + type ImageOptions struct + AllowNegativePosition bool + ImageType string + ReadDpi bool + type InitType struct + FontDirStr string + OrientationStr string + Size SizeType + SizeStr string + UnitStr string + type PageBox struct + type Pdf 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 SizeType) + AddSpotColor func(nameStr string, c, m, y, k byte) + 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 []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 []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(*Tpl)) Template + CreateTemplateCustom func(corner PointType, size SizeType, fn func(*Tpl)) 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) FontDescType + GetFontSize func() (ptSize, unitSize float64) + GetImageInfo func(imageStr string) (info *ImageInfoType) + GetLineWidth func() float64 + GetMargins func() (left, top, right, bottom float64) + GetPageSize func() (width, height float64) + GetPageSizeStr func(sizeStr string) (size 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 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, options ImageOptions, ...) + 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 []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 *ImageInfoType) + RegisterImageOptions func(fileStr string, options ImageOptions) (info *ImageInfoType) + RegisterImageOptionsReader func(imgName string, options ImageOptions, r io.Reader) (info *ImageInfoType) + RegisterImageReader func(imgName, tp string, r io.Reader) (info *ImageInfoType) + SVGBasicWrite func(sb *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 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 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) + SetUnderlineThickness func(thickness 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 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 Template) + UseTemplateScaled func(t Template, corner PointType, size 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{}) + type PointType struct + X float64 + Y float64 + func (p *PointType) Transform(x, y float64) PointType + func (p PointType) XY() (float64, float64) + type RGBAType struct + Alpha float64 + B int + G int + R int + type RGBType struct + B int + G int + R int + type SVGBasicSegmentType struct + Arg [6]float64 + Cmd byte + type SVGBasicType struct + Ht float64 + Segments [][]SVGBasicSegmentType + Wd float64 + func SVGBasicFileParse(svgFileStr string) (sig SVGBasicType, err error) + func SVGBasicParse(buf []byte) (sig SVGBasicType, err error) + type SizeType struct + Ht float64 + Wd float64 + func (s *SizeType) Orientation() string + func (s *SizeType) ScaleBy(factor float64) SizeType + func (s *SizeType) ScaleToHeight(height float64) SizeType + func (s *SizeType) ScaleToWidth(width float64) SizeType + type StateType struct + func StateGet(pdf *Fpdf) (st StateType) + func (st StateType) Put(pdf *Fpdf) + type Template interface + Bytes func() []byte + FromPage func(int) (Template, error) + FromPages func() []Template + ID func() string + Images func() map[string]*ImageInfoType + NumPages func() int + Serialize func() ([]byte, error) + Size func() (PointType, SizeType) + Templates func() []Template + func CreateTemplate(corner PointType, size SizeType, unitStr, fontDirStr string, fn func(*Tpl)) Template + func CreateTpl(corner PointType, size SizeType, orientationStr, unitStr, fontDirStr string, ...) Template + func DeserializeTemplate(b []byte) (Template, error) + type TickFormatFncType func(val float64, precision int) string + type Tpl struct + type TransformMatrix struct + A float64 + B float64 + C float64 + D float64 + E float64 + F float64 + type TtfType struct + Bold bool + CapHeight int16 + Chars map[uint16]uint16 + Embeddable bool + IsFixedPitch bool + ItalicAngle int16 + PostScriptName string + TypoAscender int16 + TypoDescender int16 + UnderlinePosition int16 + UnderlineThickness int16 + UnitsPerEm uint16 + Widths []uint16 + Xmax int16 + Xmin int16 + Ymax int16 + Ymin int16 + func TtfParse(fileStr string) (TtfRec TtfType, err error) Other modules containing this package github.com/royge/gofpdf