Documentation ¶
Index ¶
Constants ¶
const ( // PathTypeEoFill ... PathTypeEoFill PathType = 10 // PathTypeStroke ... PathTypeStroke = 11 // PathTypeFill ... PathTypeFill = 12 // PathTypeSetStrokeColor ... PathTypeSetStrokeColor = 13 // PathTypeSetStrokeWidth ... PathTypeSetStrokeWidth = 14 // PathTypeSetFillColor ... PathTypeSetFillColor = 15 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FontInfo ¶
FontInfo contains information about a font in the file.
func (*FontInfo) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type FontInfos ¶
type FontInfos []FontInfo
FontInfos is a list of font information.
func (FontInfos) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Glyph ¶
Glyph represents a single glyph.
func (*Glyph) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Meta ¶
Meta contains metadata about the PDF such as the number of pages.
func (*Meta) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Page ¶
type Page struct { Bytes int64 // Number of bytes of MsgPack ParseDuration time.Duration Number int // One based. Size Size Glyphs []Glyph Paths []Path }
Page represents one page of a PDF.
func (*Page) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Path ¶
type Path struct { Type PathType Data [][]float64 StrokeWidth float64 Color struct{ R, G, B uint8 } }
Path represents a path.
func (*Path) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type PathType ¶
type PathType uint8
PathType is one of a set of constants which describes paths.
func (PathType) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Reader ¶
type Reader struct { Version int Meta Meta R *msgp.Reader // contains filtered or unexported fields }
Reader reads pdf2msgpack's output stream.
type Rect ¶
type Rect struct {
X1, Y1, X2, Y2 float64
}
Rect represents a rectangle.
func (*Rect) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Size ¶
type Size struct {
W, H float64
}
Size of the page.
func (Size) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler