attach

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package attach provides management code for file attachments / embedded files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(xRefTable *types.XRefTable, files types.StringSet) (ok bool, err error)

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(xRefTable *types.XRefTable) (list []string, err error)

List returns a list of embedded files.

func Remove

func Remove(xRefTable *types.XRefTable, files types.StringSet) (ok bool, err error)

Remove deletes specified embedded files. ok returns true if at least one attachment could be removed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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