Documentation
¶
Index ¶
- func Version() string
- type Color
- type Document
- type DocumentInfo
- type Image
- type Page
- func (p *Page) Close()
- func (p *Page) ConvertToPNG(filename string)
- func (p *Page) ConvertToSVG(filename string)
- func (p *Page) Duration() float64
- func (p *Page) Images() (results []Image)
- func (p *Page) Index() int
- func (p *Page) Label() string
- func (p *Page) Size() (width, height float64)
- func (p *Page) Text() string
- func (p *Page) TextAttributes() (results []TextAttributes)
- func (p *Page) TextLayout() (layouts []Rectangle)
- func (p *Page) TextLayoutAndAttrs() (result []TextEl)
- type Rectangle
- type TextAttributes
- type TextEl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
func (*Document) GetNAttachments ¶
func (*Document) HasAttachments ¶
func (*Document) Info ¶
func (d *Document) Info() DocumentInfo
type DocumentInfo ¶
type Image ¶
func (*Image) GetSurface ¶
func (im *Image) GetSurface() (cs *cairo.Surface)
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
func (*Page) ConvertToPNG ¶
Converts a page into PNG and saves to file. Inspired by https://github.com/dawbarton/pdf2svg
func (*Page) ConvertToSVG ¶
Converts a page into SVG and saves to file. Inspired by https://github.com/dawbarton/pdf2svg
func (*Page) TextAttributes ¶
func (p *Page) TextAttributes() (results []TextAttributes)
func (*Page) TextLayout ¶
func (*Page) TextLayoutAndAttrs ¶
type TextAttributes ¶
type TextEl ¶
type TextEl struct { Text string Attrs *TextAttributes Rect Rectangle }
Click to show internal directories.
Click to hide internal directories.