read

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2017 License: MIT Imports: 17 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 read provides methods for parsing PDF files into memory.

The in memory representation of a PDF file is called a PDFContext.

The PDFContext is a container for the PDF cross reference table and stats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dump2Bufs

func Dump2Bufs(buf1 []byte, buf2 []byte, lineLength int)

Dump2Bufs dumps two buffers side by side to logger.

func GetEncodedStreamContent

func GetEncodedStreamContent(ctx *types.PDFContext, streamDict *types.PDFStreamDict) ([]byte, error)

GetEncodedStreamContent loads the encoded stream content from file into PDFStreamDict.

func PDFFile

func PDFFile(fileName string, config *types.Configuration) (ctx *types.PDFContext, err error)

PDFFile reads in a PDFFile and generates a PDFContext, an in-memory representation containing a cross reference table.

func PrefixBigEndian

func PrefixBigEndian(buf []byte) bool

PrefixBigEndian returns true if buf is prefixed with a UTF16 big endian byte order mark.

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