Documentation ¶
Overview ¶
Package attach provides management code for file attachments / embedded files.
Index ¶
- func Add(ctx *types.PDFContext, files types.StringSet) (ok bool, err error)
- func Extract(ctx *types.PDFContext, files types.StringSet) (err error)
- func List(ctx *types.PDFContext) (list []string, err error)
- func Remove(ctx *types.PDFContext, files types.StringSet) (ok bool, err error)
- func Verbose(verbose bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add embeds specified files. Existing attachments are replaced. ok returns true if at least one attachment was added.
func Extract ¶
func Extract(ctx *types.PDFContext, files types.StringSet) (err error)
Extract exports specified embedded files. If no files specified extract all embedded files.
func List ¶
func List(ctx *types.PDFContext) (list []string, err error)
List returns a list of embedded files.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.