Documentation ¶
Index ¶
- Variables
- type Options
- type PDF
- func (r *PDF) AddLink(uri string, rect canvas.Rect)
- 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) SetImageEncoding(enc canvas.ImageEncoding)
- func (r *PDF) SetInfo(title, subject, keywords, author, creator string)
- func (r *PDF) Size() (float64, float64)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type PDF ¶
type PDF struct {
// contains filtered or unexported fields
}
PDF is a portable document format renderer.
func (*PDF) RenderImage ¶
RenderImage renders an image to the canvas using a transformation matrix.
func (*PDF) RenderPath ¶
RenderPath renders a path to the canvas using a style and a transformation matrix.
func (*PDF) RenderText ¶
RenderText renders a text object to the canvas using a transformation matrix.
func (*PDF) SetImageEncoding ¶
func (r *PDF) SetImageEncoding(enc canvas.ImageEncoding)
SetImageEncoding sets the image encoding to Loss or Lossless.
Click to show internal directories.
Click to hide internal directories.