Documentation ¶
Overview ¶
Package optimize contains code for optimizing the resources of a PDF file.
Subject of optimization are embedded font files and images.
Index ¶
- func FontDescriptor(xRefTable *types.XRefTable, fontDict *types.PDFDict, objectNumber int) (*types.PDFDict, error)
- func FontDescriptorFontFileIndirectObjectRef(fontDescriptorDict *types.PDFDict) *types.PDFIndirectRef
- func ResourcesDictForPageDict(xRefTable *types.XRefTable, pageDict *types.PDFDict, pageObjNumber int) (dict *types.PDFDict, err error)
- func Verbose(verbose bool)
- func XRefTable(ctx *types.PDFContext) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FontDescriptor ¶
func FontDescriptor(xRefTable *types.XRefTable, fontDict *types.PDFDict, objectNumber int) (*types.PDFDict, error)
FontDescriptor gets the font descriptor for this font.
func FontDescriptorFontFileIndirectObjectRef ¶
func FontDescriptorFontFileIndirectObjectRef(fontDescriptorDict *types.PDFDict) *types.PDFIndirectRef
FontDescriptorFontFileIndirectObjectRef returns the indirect object for the font file for given font descriptor.
func ResourcesDictForPageDict ¶
func ResourcesDictForPageDict(xRefTable *types.XRefTable, pageDict *types.PDFDict, pageObjNumber int) (dict *types.PDFDict, err error)
ResourcesDictForPageDict returns the resource dict for a page dict if there is any.
func XRefTable ¶
func XRefTable(ctx *types.PDFContext) (err error)
XRefTable optimizes an xRefTable by locating and getting rid of redundant embedded fonts and images.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.