Documentation
¶
Index ¶
- Constants
- Variables
- func XYArgs(vals []string) (opacity string)
- type AIHeader
- type AILayer
- type AIProlog
- type AIReader
- type Buffer
- type ColorArgs
- type CompressHandle
- type Drawer
- type Gradient
- type OffColor
- type PathOp
- type PdfObjectNameSlice
- type Raster
- type Reader
- type ZStdCompress
- type ZlibCompress
Constants ¶
View Source
const ( AI_ClipPath uint8 = 1 << 0 AI_CompoundPath uint8 = 1 << 1 AI_RasterImage uint8 = 1 << 2 )
Variables ¶
View Source
var ( AI5_EndRaster = []byte("%AI5_EndRaster") AI5_BeginRaster = []byte("%AI5_BeginRaster") )
Functions ¶
Types ¶
type CompressHandle ¶
type Drawer ¶
type Drawer interface { SetHeader(*AIHeader) // Layer BeginLayer(*AILayer) SetLayerName(name string) EndLayer() // Group Group() EndGroup() SetGroupAttr() // path ClosePath() PathRender(PathOp) Moveto(x, y float64) Lineto(x, y float64) Curveto1(x0, y0, x1, y1 float64) Curveto2(x1, y1, x2, y2 float64) Curveto(x0, y0, x1, y1, x2, y2 float64) // clip path ClipPath() ApplyClip() // compound path CompoundPath() EndCompoundPath() // set color SetRGB(PathOp, [3]uint8) SetCMYK(PathOp, [4]float64) SetOpacity(opacity string) // path attributes SetDash() SetFlat() SetLineCap(v string) SetLineJoin(v string) SetLineWidth(v string) SetMiterLimit(v string) // gradient DefGradient(g *Gradient) // SetGradient(g *Gradient) // raster SetRaster(obj *Raster) }
type Gradient ¶
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 Raster ¶
type Raster struct { Matrix [6]float64 Bounds [4]float64 Width float64 Height float64 Bits int8 // bits per piexel in image map ImageType int8 // 1=bitmap/grayscale; 3 = RGB; 4=CMYK AlphaChannelCount int8 // 0 = version 6.0; other values reserved for future versions BinAscii int8 // 0=ASCII hexadecimal; 1 = binary ImageMask int8 // 0 = opaque; 1 = transparent/colorized RawData []byte }
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 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)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.