optimize

package
v0.0.0-...-99d8987 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package optimize contains code for optimizing the resources of a PDF file.

Subject of optimization are embedded font files and images.

Index

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 Verbose

func Verbose(verbose bool)

Verbose controls logging output.

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.

Jump to

Keyboard shortcuts

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