Versions in this module Expand all Collapse all v0 v0.1.1 Dec 4, 2023 Changes in this version + const ClipGroupId + type AILayer struct + type CompressHandle interface + Decompress func() ([]byte, error) + Write func(stream []byte) (n int, err error) + type Drawer interface + BeginCompoundPath func() + BeginGroupMask func() + BeginLayer func(args []string) + ClosePath func() + CurveTo func(op string, args []string) + DrawClipPath func() + EndCompoundPath func() + EndGroup func() + EndGroupMask func() + EndLayer func() + Fill func() + FillStroke func() + Group func() + LineTo func(args []string) + MarkClipPath func() + MoveTo func(args []string) + NorFillStroke func() + SetBoundingBox func(lx, ly, ux, uy float64) + SetCMYKColor func(op string, args []string) + SetGroupStyle func(args []string) + SetLayerLock func(lock string) + SetLayerName func(name string) + SetLineCap func(arg string) + SetLineJoin func(arg string) + SetLineWidth func(width string) + SetMiterLimit func(limit string) + SetOpacity func(op string, args []string) + SetRGBColor func(op string, args []string) + SetState func(state uint8, set bool) + Stroke func() + type DrawerStat = uint8 + const ST_CompoundPath + const ST_Layer + type PathBuilder struct + func (p *PathBuilder) ClosePath() + func (p *PathBuilder) Reset() + type PdfObjectNameSlice []core.PdfObjectName + func (x PdfObjectNameSlice) Len() int + func (x PdfObjectNameSlice) Less(i, j int) bool + func (x PdfObjectNameSlice) Swap(i, j int) + type Postscript struct + func NewPostscript(rd io.Reader, drawer Drawer) *Postscript + func (p *Postscript) Interpret() error + func (p *Postscript) SetBoundingBox(line string) + type Reader struct + func NewFileReader(inputPath string) (*Reader, error) + func NewReader(r io.ReadSeeker) (*Reader, error) + func (r *Reader) AsSvg() error + func (r *Reader) GetAIPrivateData() ([]byte, error) + func (r *Reader) GetAiMetaData() *core.PdfObjectStream + func (r *Reader) GetIllustrator() *core.PdfIndirectObject + type SVG struct + func NewSVG() *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 struct + func (g *SvgGroup) Attrs() string + func (g *SvgGroup) SetAttr(key, val string) + func (g *SvgGroup) SetId(id string) + type SvgNode interface + SetAttr func(key, val string) + SetId func(id string) + type SvgPath struct + func (path *SvgPath) Attrs() string + func (path *SvgPath) GetAttr(key string) string + func (path *SvgPath) Id() string + func (path *SvgPath) SetAttr(key, val string) + func (path *SvgPath) SetId(id string) + type SvgStyle map[string]string + func (style SvgStyle) Fill() string + func (style SvgStyle) Stroke() string + func (style SvgStyle) Styles() string + type ZStdCompress struct + func (c *ZStdCompress) Decompress() ([]byte, error) + func (c *ZStdCompress) Write(stream []byte) (int, error) + type ZlibCompress struct + func (c *ZlibCompress) Decompress() ([]byte, error) + func (c *ZlibCompress) Write(stream []byte) (int, error)