optimize

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2017 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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