Documentation ¶
Index ¶
- Constants
- type CMYKColor
- type Color
- type ColorSpace
- type FunctionType
- type LineCap
- type LineCapStyle
- type LineDash
- type LineDashPattern
- type LineJoin
- type LineJoinStyle
- type Pdf
- func (pdf *Pdf) AddPage() *PdfPage
- func (pdf *Pdf) AppendCurve(x1, y1, x2, y2, x3, y3 float64)
- func (pdf *Pdf) Circle(x, y, r float64, style string)
- func (pdf *Pdf) DrawImage(image *PdfImage, x, y float64, w, h int)
- func (pdf *Pdf) Ellipse(x, y, rx, ry float64, style string)
- func (pdf *Pdf) FillPath()
- func (pdf *Pdf) ImportPage(sourceFile string, pageno int, box string) int
- func (pdf *Pdf) NewFunction() *PdfFunction
- func (pdf *Pdf) NewJPEGImageFromFile(filename string) *PdfImage
- func (pdf *Pdf) NewPath(x, y float64)
- func (pdf *Pdf) NewShading() *PdfShading
- func (pdf *Pdf) Rect(x, y, w, h float64, mode string)
- func (pdf *Pdf) SetFillColorCMYK(c, m, y, k int)
- func (pdf *Pdf) SetFontFamily(fontFamily string)
- func (pdf *Pdf) SetFontSize(fontSize int)
- func (pdf *Pdf) SetLineCapStyle(s uint)
- func (pdf *Pdf) SetLineDashPattern(array []uint, phase uint)
- func (pdf *Pdf) SetLineJoinStyle(s uint)
- func (pdf *Pdf) SetLineWidth(w float64)
- func (pdf *Pdf) SetStrokeColorCMYK(c, m, y, k int)
- func (pdf *Pdf) SetXY(x, y float64)
- func (pdf *Pdf) StrokeAndFillPath()
- func (pdf *Pdf) StrokePath()
- func (pdf *Pdf) Text(text string)
- func (pdf *Pdf) UseImportedTemplate(tplid int, x, y, w, h float64)
- func (pdf *Pdf) Write()
- type PdfCatalog
- type PdfContents
- type PdfFont
- type PdfFunction
- type PdfImage
- type PdfInstruction
- type PdfInstructions
- type PdfObject
- type PdfPage
- type PdfPageTree
- type PdfResources
- type PdfShading
- type PdfXrefTable
- type RGBColor
- type ShadingType
Constants ¶
View Source
const ( FunctionType0 FunctionType = 0 FunctionType2 = 2 FunctionType3 = 3 FunctionType4 = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FunctionType ¶
type FunctionType = int
type LineCapStyle ¶
type LineCapStyle = uint
Line cap style With type assertions in Go 1.9, you can simply add = where you define the type. This tells the compiler that LineCapStyle is an alternate name for uint.
const ( LineCapStyleButt LineCapStyle = iota LineCapStyleRound LineCapStyleProjectingSquare )
type LineDashPattern ¶
type LineDashPattern = uint
Line dash pattern
const ( LineDashPatternMiter LineDashPattern = iota LineDashPatternRound LineDashPatternBevel )
type LineJoinStyle ¶
type LineJoinStyle = uint
Line join style
const ( LineJoinStyleMiter LineJoinStyle = iota LineJoinStyleRound LineJoinStyleBevel )
type Pdf ¶
type Pdf struct {
// contains filtered or unexported fields
}
func (*Pdf) AppendCurve ¶
func (*Pdf) NewFunction ¶
func (pdf *Pdf) NewFunction() *PdfFunction
func (*Pdf) NewJPEGImageFromFile ¶
func (*Pdf) NewShading ¶
func (pdf *Pdf) NewShading() *PdfShading
func (*Pdf) SetFillColorCMYK ¶
func (*Pdf) SetFontFamily ¶
func (*Pdf) SetFontSize ¶
func (*Pdf) SetLineCapStyle ¶
func (*Pdf) SetLineDashPattern ¶
func (*Pdf) SetLineJoinStyle ¶
func (*Pdf) SetStrokeColorCMYK ¶
func (*Pdf) StrokeAndFillPath ¶
func (pdf *Pdf) StrokeAndFillPath()
func (*Pdf) StrokePath ¶
func (pdf *Pdf) StrokePath()
func (*Pdf) UseImportedTemplate ¶
type PdfCatalog ¶
type PdfCatalog struct {
// contains filtered or unexported fields
}
type PdfContents ¶
type PdfContents struct {
// contains filtered or unexported fields
}
type PdfFunction ¶
type PdfInstruction ¶
type PdfInstruction struct {
// contains filtered or unexported fields
}
type PdfInstructions ¶
type PdfInstructions struct {
// contains filtered or unexported fields
}
func (*PdfInstructions) String ¶
func (ins *PdfInstructions) String() string
type PdfPageTree ¶
type PdfPageTree struct {
// contains filtered or unexported fields
}
type PdfResources ¶
type PdfResources struct {
// contains filtered or unexported fields
}
type PdfShading ¶
type PdfShading struct { Type ShadingType Coords []float64 Function *PdfFunction Extend []bool // contains filtered or unexported fields }
type PdfXrefTable ¶
type PdfXrefTable struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.