Documentation ¶
Overview ¶
Access to PDF files.
Index ¶
- Constants
- type Dictionary
- type PDFReader
- func (pd *PDFReader) Arr(reference []byte) [][]byte
- func (pd *PDFReader) Att(a string, src []byte) []byte
- func (pd *PDFReader) DecodedStream(reference []byte) (Dictionary, []byte)
- func (pd *PDFReader) Dic(reference []byte) Dictionary
- func (pd *PDFReader) ForcedArray(reference []byte) [][]byte
- func (pd *PDFReader) PageFonts(page []byte) Dictionary
- func (pd *PDFReader) 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 Dictionary ¶ added in v0.3.0
type PDFReader ¶ added in v0.3.0
type PDFReader struct { File string // name of the file Startxref int // starting of xref table Xref map[int]int // "pointers" of the xref table Trailer Dictionary // trailer dictionary of the file // contains filtered or unexported fields }
func (*PDFReader) Att ¶ added in v0.3.0
pd.Att() tries to get an attribute from a page reference. The attribute will be resolved.
func (*PDFReader) DecodedStream ¶ added in v0.3.0
func (pd *PDFReader) DecodedStream(reference []byte) (Dictionary, []byte)
DecodedStream returns decoded contents of a stream.
func (*PDFReader) Dic ¶ added in v0.3.0
func (pd *PDFReader) Dic(reference []byte) Dictionary
pd.Dic() queries dictionary data from a reference.
func (*PDFReader) ForcedArray ¶ added in v0.3.0
pd.ForcedArray() queries array data. If reference does not refer to an array, reference is taken as element of the returned array.
func (*PDFReader) PageFonts ¶ added in v0.3.0
func (pd *PDFReader) PageFonts(page []byte) Dictionary
PageFonts returns references to the fonts defined for a page.
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.