Documentation ¶
Overview ¶
Access to PDF files.
Index ¶
- Constants
- type DictionaryT
- type PdfReaderT
- func (pd *PdfReaderT) Arr(reference []byte) [][]byte
- func (pd *PdfReaderT) Att(a string, src []byte) []byte
- func (pd *PdfReaderT) DecodedStream(reference []byte) (DictionaryT, []byte)
- func (pd *PdfReaderT) Dic(reference []byte) DictionaryT
- func (pd *PdfReaderT) ForcedArray(reference []byte) [][]byte
- func (pd *PdfReaderT) PageFonts(page []byte) DictionaryT
- func (pd *PdfReaderT) Pages() [][]byte
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 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 (*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. |
Click to show internal directories.
Click to hide internal directories.