apidemo

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAttachments

func AddAttachments(doc *model.Document, enc *model.Encrypt, w io.Writer, files []string) error

AddAttachments embeds files into the document and writes the result to w. A file is either a file name or a file name and a description separated by a comma.

func ExtractContent

func ExtractContent(doc model.Document, outDir string, pageNumbers []int) error

ExtractContent dumps "PDF source" files from `doc` into `outDir` for selected pages. Passing `nil` for `pageNumbers` extracts all pages. Invalid page numbers are ignored.

func ListAttachments

func ListAttachments(doc model.Document) []string

ListAttachments returns a list of embedded file attachment names of `doc`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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