Documentation ¶
Index ¶
- Constants
- type AILayer
- type CompressHandle
- type Drawer
- type DrawerStat
- type PathBuilder
- type PdfObjectNameSlice
- type Postscript
- type Reader
- type SVG
- func (svg *SVG) BeginCompoundPath()
- func (svg *SVG) BeginGroupMask()
- func (svg *SVG) BeginLayer(args []string)
- func (svg *SVG) ClosePath()
- func (svg *SVG) CurveTo(op string, args []string)
- func (svg *SVG) DrawClipPath()
- func (svg *SVG) EndCompoundPath()
- func (svg *SVG) EndGroup()
- func (svg *SVG) EndGroupMask()
- func (svg *SVG) EndLayer()
- func (svg *SVG) Fill()
- func (svg *SVG) FillStroke()
- func (svg *SVG) Group()
- func (svg *SVG) LineTo(args []string)
- func (svg *SVG) MarkClipPath()
- func (svg *SVG) MoveTo(args []string)
- func (svg *SVG) NorFillStroke()
- func (svg *SVG) Save(path string) error
- func (svg *SVG) SetBoundingBox(lx, ly, ux, uy float64)
- func (svg *SVG) SetCMYKColor(op string, args []string)
- func (svg *SVG) SetGroupStyle(args []string)
- func (svg *SVG) SetLayerLock(locked string)
- func (svg *SVG) SetLayerName(name string)
- func (svg *SVG) SetLineCap(arg string)
- func (svg *SVG) SetLineJoin(arg string)
- func (svg *SVG) SetLineWidth(width string)
- func (svg *SVG) SetMiterLimit(limit string)
- func (svg *SVG) SetOpacity(op string, args []string)
- func (svg *SVG) SetRGBColor(op string, args []string)
- func (svg *SVG) SetSize(w, h int)
- func (svg *SVG) SetState(s uint8, set bool)
- func (svg *SVG) Stroke()
- type SvgGroup
- type SvgNode
- type SvgPath
- type SvgStyle
- type ZStdCompress
- type ZlibCompress
Constants ¶
View Source
const ClipGroupId = "<Clip Group>"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompressHandle ¶
type Drawer ¶
type Drawer interface { SetState(state uint8, set bool) SetBoundingBox(lx, ly, ux, uy float64) // Layer BeginLayer(args []string) // Lb SetLayerName(name string) // Ln SetLayerLock(lock string) // A EndLayer() // LB // Paths MoveTo(args []string) // moveto LineTo(args []string) // lineto CurveTo(op string, args []string) // curveto Fill() Stroke() FillStroke() NorFillStroke() ClosePath() // closepath SetLineCap(arg string) // set line cap SetLineJoin(arg string) // set line join SetLineWidth(width string) // set linewidth SetMiterLimit(limit string) // setmiterlimit BeginCompoundPath() // *u EndCompoundPath() // *U // Clip Path BeginGroupMask() // mark the begining of a mask(clip path) in a sequence of grouped objects EndGroupMask() // mark the end of a sequence of elements containing a mask. DrawClipPath() // establishing a mask, neither fills nor strokes the current path MarkClipPath() // establishing a mask // Color SetOpacity(op string, args []string) // setopacity SetRGBColor(op string, args []string) // setrgbcolor SetCMYKColor(op string, args []string) // setcmykcolor // Group Group() // u EndGroup() // U SetGroupStyle(args []string) // U }
type DrawerStat ¶
type DrawerStat = uint8
const ( ST_Layer DrawerStat = iota // 0, Lb-LB ST_CompoundPath // 1, *u-*U, 复合路径 )
type PathBuilder ¶
func (*PathBuilder) ClosePath ¶
func (p *PathBuilder) ClosePath()
func (*PathBuilder) Reset ¶
func (p *PathBuilder) Reset()
type PdfObjectNameSlice ¶
type PdfObjectNameSlice []core.PdfObjectName
func (PdfObjectNameSlice) Len ¶
func (x PdfObjectNameSlice) Len() int
func (PdfObjectNameSlice) Less ¶
func (x PdfObjectNameSlice) Less(i, j int) bool
func (PdfObjectNameSlice) Swap ¶
func (x PdfObjectNameSlice) Swap(i, j int)
type Postscript ¶
func NewPostscript ¶
func NewPostscript(rd io.Reader, drawer Drawer) *Postscript
func (*Postscript) Interpret ¶
func (p *Postscript) Interpret() error
func (*Postscript) SetBoundingBox ¶
func (p *Postscript) SetBoundingBox(line string)
type Reader ¶
func NewFileReader ¶
func (*Reader) GetAIPrivateData ¶
func (*Reader) GetAiMetaData ¶
func (r *Reader) GetAiMetaData() *core.PdfObjectStream
func (*Reader) GetIllustrator ¶
func (r *Reader) GetIllustrator() *core.PdfIndirectObject
type SVG ¶
type SVG struct {
// contains filtered or unexported fields
}
func (*SVG) BeginCompoundPath ¶
func (svg *SVG) BeginCompoundPath()
func (*SVG) BeginGroupMask ¶
func (svg *SVG) BeginGroupMask()
func (*SVG) BeginLayer ¶
func (*SVG) DrawClipPath ¶
func (svg *SVG) DrawClipPath()
func (*SVG) EndCompoundPath ¶
func (svg *SVG) EndCompoundPath()
func (*SVG) EndGroupMask ¶
func (svg *SVG) EndGroupMask()
func (*SVG) FillStroke ¶
func (svg *SVG) FillStroke()
func (*SVG) MarkClipPath ¶
func (svg *SVG) MarkClipPath()
func (*SVG) NorFillStroke ¶
func (svg *SVG) NorFillStroke()
func (*SVG) SetBoundingBox ¶
func (*SVG) SetCMYKColor ¶
func (*SVG) SetGroupStyle ¶
func (*SVG) SetLayerLock ¶
func (*SVG) SetLayerName ¶
func (*SVG) SetLineCap ¶
func (*SVG) SetLineJoin ¶
func (*SVG) SetLineWidth ¶
func (*SVG) SetMiterLimit ¶
func (*SVG) SetOpacity ¶
func (*SVG) SetRGBColor ¶
type ZStdCompress ¶
type ZStdCompress struct {
// contains filtered or unexported fields
}
ZStdCompress
func (*ZStdCompress) Decompress ¶
func (c *ZStdCompress) Decompress() ([]byte, error)
type ZlibCompress ¶
type ZlibCompress struct {
// contains filtered or unexported fields
}
func (*ZlibCompress) Decompress ¶
func (c *ZlibCompress) Decompress() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.