Documentation
¶
Index ¶
- func WithGoPdf(ctx context.Context, c InitConfig) pdf.Option
- type Impl
- func (f Impl) AddFont(family string, styleStr string, data []byte) error
- func (f Impl) AddPage()
- func (f Impl) BR(height float64)
- func (f Impl) CellFormat(w float64, h float64, txtStr string, borderStr string, ln int, alignStr string, ...)
- func (f Impl) GetMargins() (left, top, right, bottom float64)
- func (f Impl) GetPageSize() (width float64, height float64)
- func (f Impl) GetX() float64
- func (f Impl) GetY() float64
- func (f Impl) Line(x1 float64, y1 float64, x2 float64, y2 float64)
- func (f Impl) MeasureTextWidth(text string) float64
- func (f Impl) RegisterImage(id string, format string, src io.Reader)
- func (f Impl) SetDrawColor(r uint8, g uint8, b uint8)
- func (f Impl) SetFillColor(r uint8, g uint8, b uint8)
- func (f Impl) SetFont(family string, style string, size int) error
- func (f Impl) SetLineWidth(width float64)
- func (f Impl) SetMarginLeft(margin float64)
- func (f Impl) SetMarginRight(margin float64)
- func (f Impl) SetMarginTop(margin float64)
- func (f Impl) SetTextColor(r uint8, g uint8, b uint8)
- func (f Impl) SetX(x float64)
- func (f Impl) SetY(y float64)
- func (f Impl) SplitText(text string, width float64) []string
- func (f Impl) UseImage(imgID string, x, y, w, h float64)
- func (f Impl) Write(w io.Writer) error
- func (f Impl) WriteExternalLink(h float64, text string, destination string)
- func (f Impl) WriteText(h float64, text string)
- type InitConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Impl ¶
type Impl struct { Width float64 Height float64 GoPdf *gopdf.GoPdf // contains filtered or unexported fields }
func (Impl) CellFormat ¶
func (Impl) GetMargins ¶
func (Impl) RegisterImage ¶
Images
func (Impl) SetMarginRight ¶
func (Impl) SetMarginTop ¶
func (Impl) WriteExternalLink ¶
Click to show internal directories.
Click to hide internal directories.