extract

package
v0.0.0-...-99d8987 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package extract provides methods for extracting fonts, images, pages and page content.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content

func Content(ctx *types.PDFContext, selectedPages types.IntSet) (err error)

Content writes content streams for selected pages to dirOut. Each content stream results in a separate text file.

func Fonts

func Fonts(ctx *types.PDFContext, selectedPages types.IntSet) (err error)

Fonts writes embedded font files for selected pages to dirOut. Supported font types: TrueType.

func Images

func Images(ctx *types.PDFContext, selectedPages types.IntSet) (err error)

Images writes embedded image resources for selected pages to dirOut. Supported PDF filters: DCT, JPX

func Text

func Text(ctx *types.PDFContext) (io.Reader, error)

Text returns io.Reader with text contained in the PDF

func Verbose

func Verbose(verbose bool)

Verbose controls logging output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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