Documentation ¶
Overview ¶
Package pdf implements the backend needed to draw a document, using github.com/benoitkugler/pdf.
Index ¶
- type Output
- func (c *Output) AddPage(left, top, right, bottom fl) backend.Page
- func (c *Output) CreateAnchors(anchors [][]backend.Anchor)
- func (c *Output) EmbedFile(fileID string, a backend.Attachment)
- func (c *Output) Finalize() model.Document
- func (c *Output) SetAttachments(as []backend.Attachment)
- func (s *Output) SetAuthors(authors []string)
- func (c *Output) SetBookmarks(root []backend.BookmarkNode)
- func (s *Output) SetCreator(creator string)
- func (s *Output) SetDateCreation(d time.Time)
- func (s *Output) SetDateModification(d time.Time)
- func (s *Output) SetDescription(description string)
- func (s *Output) SetKeywords(keywords []string)
- func (s *Output) SetProducer(producer string)
- func (s *Output) SetTitle(title string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Output ¶
type Output struct {
// contains filtered or unexported fields
}
Output implements backend.Output
func (*Output) CreateAnchors ¶
func (*Output) EmbedFile ¶
func (c *Output) EmbedFile(fileID string, a backend.Attachment)
Embed a file. Calling this method twice with the same id won't embed the content twice.
func (*Output) SetAttachments ¶
func (c *Output) SetAttachments(as []backend.Attachment)
Add global attachments to the file, which are compressed using FlateDecode filter
func (*Output) SetAuthors ¶
func (*Output) SetBookmarks ¶
func (c *Output) SetBookmarks(root []backend.BookmarkNode)
func (*Output) SetCreator ¶
func (*Output) SetDateCreation ¶
func (*Output) SetDateModification ¶
func (*Output) SetDescription ¶
func (*Output) SetKeywords ¶
func (*Output) SetProducer ¶
Click to show internal directories.
Click to hide internal directories.