attach

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2018 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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