Versions in this module Expand all Collapse all v3 v3.10.0 Jun 14, 2023 Changes in this version + type Chain struct + func New(options Options) *Chain + func (c *Chain) Append(optimizers ...model.Optimizer) + func (c *Chain) Optimize(objects []core.PdfObject) (optimizedObjects []core.PdfObject, err error) + type CleanContentstream struct + func (c *CleanContentstream) Optimize(objects []core.PdfObject) (optimizedObjects []core.PdfObject, err error) + type CleanFonts struct + Subset bool + func (c *CleanFonts) Optimize(objects []core.PdfObject) (optimizedObjects []core.PdfObject, err error) + type CombineDuplicateDirectObjects struct + func (dup *CombineDuplicateDirectObjects) Optimize(objects []core.PdfObject) (optimizedObjects []core.PdfObject, err error) + type CombineDuplicateStreams struct + func (dup *CombineDuplicateStreams) Optimize(objects []core.PdfObject) (optimizedObjects []core.PdfObject, err error) + type CombineIdenticalIndirectObjects struct + func (c *CombineIdenticalIndirectObjects) Optimize(objects []core.PdfObject) (optimizedObjects []core.PdfObject, err error) + type CompressStreams struct + func (c *CompressStreams) Optimize(objects []core.PdfObject) (optimizedObjects []core.PdfObject, err error) + type Image struct + ImageQuality int + func (i *Image) Optimize(objects []core.PdfObject) (optimizedObjects []core.PdfObject, err error) + type ImagePPI struct + ImageUpperPPI float64 + func (i *ImagePPI) Optimize(objects []core.PdfObject) (optimizedObjects []core.PdfObject, err error) + type ObjectStreams struct + func (o *ObjectStreams) Optimize(objects []core.PdfObject) (optimizedObjects []core.PdfObject, err error) + type Options struct + CleanContentstream bool + CleanFonts bool + CombineDuplicateDirectObjects bool + CombineDuplicateStreams bool + CombineIdenticalIndirectObjects bool + CompressStreams bool + ImageQuality int + ImageUpperPPI float64 + SubsetFonts bool + UseObjectStreams bool