pdfreader

package module
v0.0.0-...-a16ce98 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2013 License: MIT Imports: 8 Imported by: 0

README

This is a fork of http://code.google.com/p/pdfreader, which is unmaintained and not updated since 2009.

Code updated to compile with go1.2

Documentation

Overview

Access to PDF files.

Index

Constants

View Source
const (
	MAX_PDF_UPDATES   = 1024
	MAX_PDF_ARRAYSIZE = 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DictionaryT

type DictionaryT map[string][]byte

type PdfReaderT

type PdfReaderT struct {
	File string // name of the file

	Startxref int         // starting of xref table
	Xref      map[int]int // "pointers" of the xref table
	Trailer   DictionaryT // trailer dictionary of the file
	// contains filtered or unexported fields
}

func Load

func Load(fn string) *PdfReaderT

Load() loads a PDF file of a given name.

func (*PdfReaderT) Arr

func (pd *PdfReaderT) Arr(reference []byte) [][]byte

pd.Arr() queries array data from a reference.

func (*PdfReaderT) Att

func (pd *PdfReaderT) Att(a string, src []byte) []byte

pd.Att() tries to get an attribute from a page reference. The attribute will be resolved.

func (*PdfReaderT) DecodedStream

func (pd *PdfReaderT) DecodedStream(reference []byte) (DictionaryT, []byte)

pd.DecodedStream() returns decoded contents of a stream.

func (*PdfReaderT) Dic

func (pd *PdfReaderT) Dic(reference []byte) DictionaryT

pd.Dic() queries dictionary data from a reference.

func (*PdfReaderT) ForcedArray

func (pd *PdfReaderT) ForcedArray(reference []byte) [][]byte

pd.ForcedArray() queries array data. If reference does not refer to an array, reference is taken as element of the returned array.

func (*PdfReaderT) PageFonts

func (pd *PdfReaderT) PageFonts(page []byte) DictionaryT

pd.PageFonts() returns references to the fonts defined for a page.

func (*PdfReaderT) Pages

func (pd *PdfReaderT) Pages() [][]byte

pd.Pages() returns an array with references to the pages of the PDF.

Directories

Path Synopsis
Character Mappings (cmap).
Character Mappings (cmap).
"crush" bytes into bits - variable length.
"crush" bytes into bits - variable length.
Enhanced input.
Enhanced input.
hex encoder/decoder for PDF.
hex encoder/decoder for PDF.
LZW decoder for PDF.
LZW decoder for PDF.
HTTP-server example.
HTTP-server example.
Example program for pdfread.go
Example program for pdfread.go
Convert PDF-pages to SVG.
Convert PDF-pages to SVG.
Decoder for pfb fonts.
Decoder for pfb fonts.
PS top-down parser.
PS top-down parser.
Stacks of different types.
Stacks of different types.
string math
string math
Library to convert PDF pages to SVG.
Library to convert PDF pages to SVG.
SVG driver for graf.go.
SVG driver for graf.go.
SVG driver (text) for graf.go.
SVG driver (text) for graf.go.
Type1 font tester.
Type1 font tester.
Some utilities.
Some utilities.
Encode UTF-8.
Encode UTF-8.

Jump to

Keyboard shortcuts

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