Versions in this module Expand all Collapse all v0 v0.1.1 Jan 16, 2024 Changes in this version + const AI_ClipPath + const AI_CompoundPath + const AI_RasterImage + var AI5_BeginRaster = []byte("%AI5_BeginRaster") + var AI5_EndRaster = []byte("%AI5_EndRaster") + func XYArgs(vals []string) (opacity string) + type AIHeader struct + BoundingBox [4]int + HiResBoundingBox [4]float64 + Title string + func (h *AIHeader) SetBoundingBox(line []byte) + func (h *AIHeader) SetHeader(title []byte) + func (h *AIHeader) SetHiResBoundingBox(line []byte) + type AILayer struct + ColorIndex int8 + Dimmed bool + Enabled bool + HasMultiLayerMask bool + LayerIndex int + Name string + Preview bool + Printing bool + RGB [3]uint8 + Visible bool + type AIProlog struct + type AIReader struct + func NewAIReader(r io.Reader) (*AIReader, error) + func (r *AIReader) Bytes() []byte + func (r *AIReader) Draw(drawer Drawer) error + type Buffer struct + func (w *Buffer) Bytes() []byte + func (w *Buffer) Len() int + func (w *Buffer) Reset() + func (w *Buffer) Text() string + func (w *Buffer) WriteByte(b byte) error + type ColorArgs struct + func KArgs(vals []string) *ColorArgs + func XAArgs(vals []string) *ColorArgs + func XArgs(vals []string) *ColorArgs + func XKArgs(vals []string) *ColorArgs + func XXArgs(vals []string) *ColorArgs + func (args *ColorArgs) CMYK() [4]float64 + func (args *ColorArgs) RGB() [3]uint8 + func (args *ColorArgs) SetTint(tint float64) + type CompressHandle interface + Decompress func() ([]byte, error) + Write func(stream []byte) (n int, err error) + type Drawer interface + ApplyClip func() + BeginLayer func(*AILayer) + ClipPath func() + ClosePath func() + CompoundPath func() + Curveto func(x0, y0, x1, y1, x2, y2 float64) + Curveto1 func(x0, y0, x1, y1 float64) + Curveto2 func(x1, y1, x2, y2 float64) + DefGradient func(g *Gradient) + EndCompoundPath func() + EndGroup func() + EndLayer func() + Group func() + Lineto func(x, y float64) + Moveto func(x, y float64) + PathRender func(PathOp) + SetCMYK func(PathOp, [4]float64) + SetDash func() + SetFlat func() + SetGradient func(g *Gradient) + SetGroupAttr func() + SetHeader func(*AIHeader) + SetLayerName func(name string) + SetLineCap func(v string) + SetLineJoin func(v string) + SetLineWidth func(v string) + SetMiterLimit func(v string) + SetOpacity func(opacity string) + SetRGB func(PathOp, [3]uint8) + SetRaster func(obj *Raster) + type Gradient struct + Colors []OffColor + Flag int8 + GradientType int8 + Name string + func (g *Gradient) AddColor(color *OffColor) + type OffColor struct + func BSArgs(vals []string) *OffColor + func (sc *OffColor) Color() string + func (sc *OffColor) Offset() float64 + func (sc *OffColor) Opacity() float64 + type PathOp int8 + const AI_Fill + const AI_Stroke + 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 Raster struct + AlphaChannelCount int8 + BinAscii int8 + Bits int8 + Bounds [4]float64 + Height float64 + ImageMask int8 + ImageType int8 + Matrix [6]float64 + RawData []byte + Width float64 + func XIArgs(vals []string) *Raster + func (r *Raster) B64Data() (string, error) + func (r *Raster) CMYK(w, h int) (string, error) + func (r *Raster) Gray(w, h int) (string, error) + func (r *Raster) RGBA(w, h int) (string, error) + 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 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)