optimize

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2018 License: MIT Imports: 8 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, objNr 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) (*types.PDFDict, error)

ResourcesDictForPageDict returns the resource dict for a page dict if there is any.

func XRefTable

func XRefTable(ctx *types.PDFContext) 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