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 ¶
- func Dump2Bufs(buf1 []byte, buf2 []byte, lineLength int)
- func GetEncodedStreamContent(ctx *types.PDFContext, streamDict *types.PDFStreamDict) ([]byte, error)
- func PDFFile(fileName string, config *types.Configuration) (ctx *types.PDFContext, err error)
- func PrefixBigEndian(buf []byte) bool
- func Verbose(verbose bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
PrefixBigEndian returns true if buf is prefixed with a UTF16 big endian byte order mark.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.