Documentation ¶
Index ¶
- Constants
- type File
- func (q *File) AddIndirectObject(obj types.IndirectObject)
- func (q *File) AddObject(obj types.Object) types.Reference
- func (q *File) GetObject(ref types.Reference) (types.Object, error)
- func (q *File) GetObjects() []types.IndirectObject
- func (q *File) ResolveReference(v types.Object) (types.Object, error)
- func (q *File) WriteTo(w io.Writer) (int64, error)
- type Update
- type XRefTable
- type XRefTableEntry
- type XRefTableSection
Constants ¶
View Source
const DefaultVersion = 1.4
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { Version float64 Root types.Reference Info types.Reference ID [2]types.String // contains filtered or unexported fields }
File is the most basic representation of a pdf file: a list of indirect objects
func (*File) AddIndirectObject ¶ added in v1.0.15
func (q *File) AddIndirectObject(obj types.IndirectObject)
AddIndirectObject adds an indirect object (only used by pdf parser)
func (*File) GetObjects ¶ added in v1.0.79
func (q *File) GetObjects() []types.IndirectObject
GetObjects returns all objects
func (*File) ResolveReference ¶ added in v1.0.68
ResolveReference returns v if it is not a reference, or the referenced object if it is a reference
type Update ¶
type Update struct { Objects []types.RawIndirectObject Trailer types.Trailer // contains filtered or unexported fields }
Update is one generation of a PDF file. A pdf file can be modified by added updates to the file.
type XRefTable ¶
type XRefTable []XRefTableSection
XRefTable is the cross-reference table consisting of several XRefTableSections
func (*XRefTable) ToRawBytes ¶
type XRefTableEntry ¶
type XRefTableEntry struct { Start int64 Generation int Free bool StoredInCompressStreamNo int StoredInCompressStreamIndex int }
XRefTableEntry is one entry in a XRefTableSection
func (*XRefTableEntry) ToRawBytes ¶
func (q *XRefTableEntry) ToRawBytes() []byte
type XRefTableSection ¶
type XRefTableSection struct { Start int Count int Entries []XRefTableEntry }
XRefTableSection is a section of a xref-table
func (*XRefTableSection) ToRawBytes ¶
func (q *XRefTableSection) ToRawBytes() []byte
Click to show internal directories.
Click to hide internal directories.