Documentation ¶
Index ¶
- type Engine
- type FPDF
- func (e *FPDF) AddPage()
- func (e *FPDF) ChangeFont(fnt style.Font)
- func (e *FPDF) CurrentPage() int
- func (e *FPDF) DrawPath()
- func (e *FPDF) Error() error
- func (e *FPDF) FillRect(x, y, width, height float64)
- func (e *FPDF) FontHeight() float64
- func (e *FPDF) GetXY() (float64, float64)
- func (e *FPDF) LineFeed(lines float64)
- func (e *FPDF) LineTo(x, y float64)
- func (e *FPDF) Margins() (left, top, right, bottom float64)
- func (e *FPDF) MonoFont() string
- func (e *FPDF) MoveTo(x, y float64)
- func (e *FPDF) OnFooter(f func())
- func (e *FPDF) OnHeader(f func())
- func (e *FPDF) PageHeight() float64
- func (e *FPDF) PageWidth() float64
- func (e *FPDF) PrintableArea() (x0, y0, x1, y1 float64)
- func (e *FPDF) PutImage(src string, x, y, width, height float64)
- func (e *FPDF) SetDrawColor(r, g, b int)
- func (e *FPDF) SetFillColor(r, g, b int)
- func (e *FPDF) SetLineWidth(w float64)
- func (e *FPDF) SetPageCountAlias(alias string)
- func (e *FPDF) SetTextColor(r, g, b int)
- func (e *FPDF) SetX(x float64)
- func (e *FPDF) SetY(y float64)
- func (e *FPDF) TextWidth(s string) float64
- func (e *FPDF) WritePDF(w io.Writer) error
- func (e *FPDF) WriteText(s string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine interface { Error() error WritePDF(io.Writer) error SetPageCountAlias(alias string) CurrentPage() int OnHeader(func()) AddPage() SetX(x float64) SetY(y float64) GetXY() (float64, float64) LineFeed(lines float64) ChangeFont(fnt style.Font) PrintableArea() (x0, y0, x1, y1 float64) PageWidth() float64 PageHeight() float64 PutImage(src string, x, y, width, height float64) SetTextColor(r, g, b int) FontHeight() float64 MonoFont() string TextWidth(s string) float64 WriteText(s string) Margins() (left, top, right, bottom float64) //drawing stuff SetLineWidth(float64) SetDrawColor(r, g, b int) SetFillColor(r, g, b int) FillRect(x, y, width, height float64) MoveTo(x, y float64) LineTo(x, y float64) DrawPath() }
type FPDF ¶
type FPDF struct {
// contains filtered or unexported fields
}
func (*FPDF) ChangeFont ¶
func (*FPDF) CurrentPage ¶
func (*FPDF) FontHeight ¶
func (*FPDF) PageHeight ¶
func (*FPDF) PrintableArea ¶
func (*FPDF) SetDrawColor ¶
func (*FPDF) SetFillColor ¶
func (*FPDF) SetPageCountAlias ¶
func (*FPDF) SetTextColor ¶
Click to show internal directories.
Click to hide internal directories.