Documentation ¶
Index ¶
- func Writer(w io.Writer, c *canvas.Canvas) error
- type PDF
- func (r *PDF) Close() error
- func (r *PDF) NewPage(width, height float64)
- func (r *PDF) RenderImage(img image.Image, m canvas.Matrix)
- func (r *PDF) RenderPath(path *canvas.Path, style canvas.Style, m canvas.Matrix)
- func (r *PDF) RenderText(text *canvas.Text, m canvas.Matrix)
- func (r *PDF) SetCompression(compress bool)
- func (r *PDF) SetImageEncoding(enc canvas.ImageEncoding)
- func (r *PDF) SetInfo(title, subject, keywords, author string)
- func (r *PDF) Size() (float64, float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PDF ¶
type PDF struct {
// contains filtered or unexported fields
}
func (*PDF) RenderPath ¶
func (*PDF) SetCompression ¶
func (*PDF) SetImageEncoding ¶
func (r *PDF) SetImageEncoding(enc canvas.ImageEncoding)
Click to show internal directories.
Click to hide internal directories.