pdf

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Overview

Package pdf implements the backend needed to draw a document, using github.com/benoitkugler/pdf.

Index

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 NewOutput

func NewOutput() *Output

func (*Output) AddPage

func (c *Output) AddPage(left, top, right, bottom fl) backend.Page

func (*Output) CreateAnchors

func (c *Output) CreateAnchors(anchors [][]backend.Anchor)

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) Finalize

func (c *Output) Finalize() model.Document

Finalize setup and returns the final document

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 (s *Output) SetAuthors(authors []string)

func (*Output) SetBookmarks

func (c *Output) SetBookmarks(root []backend.BookmarkNode)

func (*Output) SetCreator

func (s *Output) SetCreator(creator string)

func (*Output) SetDateCreation

func (s *Output) SetDateCreation(d time.Time)

func (*Output) SetDateModification

func (s *Output) SetDateModification(d time.Time)

func (*Output) SetDescription

func (s *Output) SetDescription(description string)

func (*Output) SetKeywords

func (s *Output) SetKeywords(keywords []string)

func (*Output) SetProducer

func (s *Output) SetProducer(producer string)

func (*Output) SetTitle

func (s *Output) SetTitle(title string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL