Documentation ¶
Overview ¶
Package svgpdf implements a PDF backend to render SVG images, by wrapping github.com/benoitkugler/pdf TODO: Some features are missing: MiterLimit and Gradient.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoundingBox ¶
type BoundingBox struct { BBox fixed.Rectangle26_6 // contains filtered or unexported fields }
BoundingBox stores the current bounding box and exposes method to update it
func (*BoundingBox) CubeBezier ¶
func (*BoundingBox) Line ¶
func (p *BoundingBox) Line(b fixed.Point26_6)
func (*BoundingBox) QuadBezier ¶
func (p *BoundingBox) QuadBezier(b fixed.Point26_6, c fixed.Point26_6)
func (*BoundingBox) Start ¶
func (p *BoundingBox) Start(a fixed.Point26_6)
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func NewRenderer(cs *contentstream.GraphicStream) Renderer
NewRenderer return a renderer which will write to the given `pdf`.
Click to show internal directories.
Click to hide internal directories.