HexaPDF
Menu
Home
Examples
Docs
Code
News
Home
 »
Docs
 »
API Reference
 »
HexaPDF
 »
CLI
 »
HexaPDF::CLI::Optimize
Getting Started
Basics
Document Creation
Metadata
Outline / Bookmarks
Interactive Forms
Optional Content / Layers
Encryption
Digital Signatures
PDF/A Conformance
API Reference
hexapdf CLI Manual
Benchmarks
Changelog
Implementation Status
Classes and Modules
HexaPDF
HexaPDF::
CLI
HexaPDF::CLI::
Application
HexaPDF::CLI::
Batch
HexaPDF::CLI::
Command
HexaPDF::CLI::
Error
HexaPDF::CLI::
Files
HexaPDF::CLI::
Fonts
HexaPDF::CLI::
Form
HexaPDF::CLI::
Image2PDF
HexaPDF::CLI::
Images
HexaPDF::CLI::Images::
ImageLocationProcessor
HexaPDF::CLI::
Info
HexaPDF::CLI::
Inspect
HexaPDF::CLI::Inspect::
ContentProcessor
HexaPDF::CLI::
Merge
HexaPDF::CLI::
Modify
HexaPDF::CLI::
Optimize
HexaPDF::CLI::
Split
HexaPDF::CLI::
Usage
HexaPDF::CLI::Usage::
PDFDataExtension
HexaPDF::CLI::Usage::
ParserExtension
HexaPDF::CLI::
Watermark
HexaPDF::
Composer
HexaPDF::
Configuration
HexaPDF::
Content
HexaPDF::Content::
Canvas
HexaPDF::Content::
CanvasComposer
HexaPDF::Content::
ColorSpace
HexaPDF::Content::ColorSpace::
ColorUtils
HexaPDF::Content::ColorSpace::
DeviceCMYK
HexaPDF::Content::ColorSpace::DeviceCMYK::
Color
HexaPDF::Content::ColorSpace::
DeviceGray
HexaPDF::Content::ColorSpace::DeviceGray::
Color
HexaPDF::Content::ColorSpace::
DeviceRGB
HexaPDF::Content::ColorSpace::DeviceRGB::
Color
HexaPDF::Content::ColorSpace::
Universal
HexaPDF::Content::ColorSpace::Universal::
Color
HexaPDF::Content::
GraphicObject
HexaPDF::Content::GraphicObject::
Arc
HexaPDF::Content::GraphicObject::
EndpointArc
HexaPDF::Content::GraphicObject::
Geom2D
HexaPDF::Content::GraphicObject::
SolidArc
HexaPDF::Content::
GraphicsState
HexaPDF::Content::
LineCapStyle
HexaPDF::Content::
LineDashPattern
HexaPDF::Content::
LineJoinStyle
HexaPDF::Content::
NamedValue
HexaPDF::Content::
Operator
HexaPDF::Content::Operator::
AppendRectangle
HexaPDF::Content::Operator::
BaseOperator
HexaPDF::Content::Operator::
BeginText
HexaPDF::Content::Operator::
ClipPath
HexaPDF::Content::Operator::
ConcatenateMatrix
HexaPDF::Content::Operator::
CurveTo
HexaPDF::Content::Operator::
CurveToNoFirstControlPoint
HexaPDF::Content::Operator::
CurveToNoSecondControlPoint
HexaPDF::Content::Operator::
EndPath
HexaPDF::Content::Operator::
EndText
HexaPDF::Content::Operator::
InlineImage
HexaPDF::Content::Operator::
LineTo
HexaPDF::Content::Operator::
MoveText
HexaPDF::Content::Operator::
MoveTextAndSetLeading
HexaPDF::Content::Operator::
MoveTextNextLine
HexaPDF::Content::Operator::
MoveTextNextLineAndShowText
HexaPDF::Content::Operator::
MoveTo
HexaPDF::Content::Operator::
NoArgumentOperator
HexaPDF::Content::Operator::
RestoreGraphicsState
HexaPDF::Content::Operator::
SaveGraphicsState
HexaPDF::Content::Operator::
SetCharacterSpacing
HexaPDF::Content::Operator::
SetDeviceCMYKNonStrokingColor
HexaPDF::Content::Operator::
SetDeviceCMYKStrokingColor
HexaPDF::Content::Operator::
SetDeviceGrayNonStrokingColor
HexaPDF::Content::Operator::
SetDeviceGrayStrokingColor
HexaPDF::Content::Operator::
SetDeviceRGBNonStrokingColor
HexaPDF::Content::Operator::
SetDeviceRGBStrokingColor
HexaPDF::Content::Operator::
SetFontAndSize
HexaPDF::Content::Operator::
SetGraphicsStateParameters
HexaPDF::Content::Operator::
SetHorizontalScaling
HexaPDF::Content::Operator::
SetLeading
HexaPDF::Content::Operator::
SetLineCapStyle
HexaPDF::Content::Operator::
SetLineDashPattern
HexaPDF::Content::Operator::
SetLineJoinStyle
HexaPDF::Content::Operator::
SetLineWidth
HexaPDF::Content::Operator::
SetMiterLimit
HexaPDF::Content::Operator::
SetNonStrokingColor
HexaPDF::Content::Operator::
SetNonStrokingColorSpace
HexaPDF::Content::Operator::
SetRenderingIntent
HexaPDF::Content::Operator::
SetSpacingMoveTextNextLineAndShowText
HexaPDF::Content::Operator::
SetStrokingColor
HexaPDF::Content::Operator::
SetStrokingColorSpace
HexaPDF::Content::Operator::
SetTextMatrix
HexaPDF::Content::Operator::
SetTextRenderingMode
HexaPDF::Content::Operator::
SetTextRise
HexaPDF::Content::Operator::
SetWordSpacing
HexaPDF::Content::Operator::
ShowText
HexaPDF::Content::Operator::
ShowTextWithPositioning
HexaPDF::Content::Operator::
SingleNumericArgumentOperator
HexaPDF::Content::
Parser
HexaPDF::Content::
Processor
HexaPDF::Content::Processor::
CompositeBox
HexaPDF::Content::Processor::
GlyphBox
HexaPDF::Content::
RenderingIntent
HexaPDF::Content::
TextRenderingMode
HexaPDF::Content::
TransformationMatrix
HexaPDF::
Dictionary
HexaPDF::
DictionaryFields
HexaPDF::DictionaryFields::
ArrayConverter
HexaPDF::DictionaryFields::
DateConverter
HexaPDF::DictionaryFields::
DictionaryConverter
HexaPDF::DictionaryFields::
Field
HexaPDF::DictionaryFields::
FileSpecificationConverter
HexaPDF::DictionaryFields::
IntegerConverter
HexaPDF::DictionaryFields::
PDFByteStringConverter
HexaPDF::DictionaryFields::
RectangleConverter
HexaPDF::DictionaryFields::
StringConverter
HexaPDF::
DigitalSignature
HexaPDF::DigitalSignature::
CMSHandler
HexaPDF::DigitalSignature::
Handler
HexaPDF::DigitalSignature::
PKCS1Handler
HexaPDF::DigitalSignature::
Signature
HexaPDF::DigitalSignature::Signature::
SignatureReference
HexaPDF::DigitalSignature::Signature::
TransformParams
HexaPDF::DigitalSignature::
Signatures
HexaPDF::DigitalSignature::
Signing
HexaPDF::DigitalSignature::Signing::
DefaultHandler
HexaPDF::DigitalSignature::Signing::
SignedDataCreator
HexaPDF::DigitalSignature::Signing::
TimestampHandler
HexaPDF::DigitalSignature::
VerificationResult
HexaPDF::
Document
HexaPDF::Document::
Destinations
HexaPDF::Document::Destinations::
Destination
HexaPDF::Document::
Files
HexaPDF::Document::
Fonts
HexaPDF::Document::
Images
HexaPDF::Document::
Layout
HexaPDF::Document::Layout::
CellArgumentCollector
HexaPDF::Document::Layout::
ChildrenCollector
HexaPDF::Document::
Metadata
HexaPDF::Document::Metadata::
LocalizedString
HexaPDF::Document::
Pages
HexaPDF::
Encryption
HexaPDF::Encryption::
AES
HexaPDF::Encryption::AES::
ClassMethods
HexaPDF::Encryption::
ARC4
HexaPDF::Encryption::ARC4::
ClassMethods
HexaPDF::Encryption::
EncryptionDictionary
HexaPDF::Encryption::
FastAES
HexaPDF::Encryption::
FastARC4
HexaPDF::Encryption::
Identity
HexaPDF::Encryption::
RubyAES
HexaPDF::Encryption::
RubyARC4
HexaPDF::Encryption::
SecurityHandler
HexaPDF::Encryption::SecurityHandler::
EncryptedStreamData
HexaPDF::Encryption::
StandardEncryptionDictionary
HexaPDF::Encryption::
StandardSecurityHandler
HexaPDF::Encryption::StandardSecurityHandler::
EncryptionOptions
HexaPDF::Encryption::StandardSecurityHandler::
Permissions
HexaPDF::
EncryptionError
HexaPDF::
Error
HexaPDF::
FiberDoubleForString
HexaPDF::
FiberWithLength
HexaPDF::
Filter
HexaPDF::Filter::
ASCII85Decode
HexaPDF::Filter::
ASCIIHexDecode
HexaPDF::Filter::
Crypt
HexaPDF::Filter::
Encryption
HexaPDF::Filter::
FlateDecode
HexaPDF::Filter::
LZWDecode
HexaPDF::Filter::
PassThrough
HexaPDF::Filter::
Predictor
HexaPDF::Filter::
RunLengthDecode
HexaPDF::
FilterError
HexaPDF::
Font
HexaPDF::Font::
CMap
HexaPDF::Font::CMap::
Parser
HexaPDF::Font::CMap::
Writer
HexaPDF::Font::
Encoding
HexaPDF::Font::Encoding::
Base
HexaPDF::Font::Encoding::
DifferenceEncoding
HexaPDF::Font::Encoding::
GlyphList
HexaPDF::Font::Encoding::
MacExpertEncoding
HexaPDF::Font::Encoding::
MacRomanEncoding
HexaPDF::Font::Encoding::
StandardEncoding
HexaPDF::Font::Encoding::
SymbolEncoding
HexaPDF::Font::Encoding::
WinAnsiEncoding
HexaPDF::Font::Encoding::
ZapfDingbatsEncoding
HexaPDF::Font::
InvalidGlyph
HexaPDF::Font::
TrueType
HexaPDF::Font::TrueType::
Builder
HexaPDF::Font::TrueType::
Font
HexaPDF::Font::TrueType::
Optimizer
HexaPDF::Font::TrueType::
Subsetter
HexaPDF::Font::TrueType::
Table
HexaPDF::Font::TrueType::Table::
Cmap
HexaPDF::Font::TrueType::Table::
CmapSubtable
HexaPDF::Font::TrueType::Table::CmapSubtable::
Format0
HexaPDF::Font::TrueType::Table::CmapSubtable::
Format10
HexaPDF::Font::TrueType::Table::CmapSubtable::
Format12
HexaPDF::Font::TrueType::Table::CmapSubtable::
Format2
HexaPDF::Font::TrueType::Table::CmapSubtable::
Format4
HexaPDF::Font::TrueType::Table::CmapSubtable::
Format6
HexaPDF::Font::TrueType::Table::
Directory
HexaPDF::Font::TrueType::Table::
Glyf
HexaPDF::Font::TrueType::Table::Glyf::
Glyph
HexaPDF::Font::TrueType::Table::
Head
HexaPDF::Font::TrueType::Table::
Hhea
HexaPDF::Font::TrueType::Table::
Hmtx
HexaPDF::Font::TrueType::Table::
Kern
HexaPDF::Font::TrueType::Table::Kern::
Format0
HexaPDF::Font::TrueType::Table::Kern::
Subtable
HexaPDF::Font::TrueType::Table::
Loca
HexaPDF::Font::TrueType::Table::
Maxp
HexaPDF::Font::TrueType::Table::
Name
HexaPDF::Font::TrueType::Table::Name::
Record
HexaPDF::Font::TrueType::Table::Name::
Records
HexaPDF::Font::TrueType::Table::
OS2
HexaPDF::Font::TrueType::Table::
Post
HexaPDF::Font::TrueType::Table::Post::
Format1
HexaPDF::Font::TrueType::Table::Post::
Format2
HexaPDF::Font::TrueType::Table::Post::
Format3
HexaPDF::Font::TrueType::Table::Post::
Format4
HexaPDF::Font::
TrueTypeWrapper
HexaPDF::Font::TrueTypeWrapper::
Glyph
HexaPDF::Font::
Type1
HexaPDF::Font::Type1::
AFMParser
HexaPDF::Font::Type1::
CharacterMetrics
HexaPDF::Font::Type1::
Font
HexaPDF::Font::Type1::
FontMetrics
HexaPDF::Font::Type1::
PFBParser
HexaPDF::Font::
Type1Wrapper
HexaPDF::Font::Type1Wrapper::
Glyph
HexaPDF::
FontLoader
HexaPDF::FontLoader::
FromConfiguration
HexaPDF::FontLoader::
FromFile
HexaPDF::FontLoader::
Standard14
HexaPDF::FontLoader::
VariantFromName
HexaPDF::
ImageLoader
HexaPDF::ImageLoader::
JPEG
HexaPDF::ImageLoader::
PDF
HexaPDF::ImageLoader::
PNG
HexaPDF::
Importer
HexaPDF::
InvalidPDFObjectError
HexaPDF::
Layout
HexaPDF::Layout::
Box
HexaPDF::Layout::Box::
FitResult
HexaPDF::Layout::
BoxFitter
HexaPDF::Layout::
ColumnBox
HexaPDF::Layout::
ContainerBox
HexaPDF::Layout::
Frame
HexaPDF::Layout::
ImageBox
HexaPDF::Layout::
InlineBox
HexaPDF::Layout::
Line
HexaPDF::Layout::Line::
HeightCalculator
HexaPDF::Layout::
ListBox
HexaPDF::Layout::
NumericRefinements
HexaPDF::Layout::
PageStyle
HexaPDF::Layout::
Style
HexaPDF::Layout::Style::
Border
HexaPDF::Layout::Style::
Layers
HexaPDF::Layout::Style::
LineSpacing
HexaPDF::Layout::Style::
LinkLayer
HexaPDF::Layout::Style::
Quad
HexaPDF::Layout::
TableBox
HexaPDF::Layout::TableBox::
Cell
HexaPDF::Layout::TableBox::
Cells
HexaPDF::Layout::
TextBox
HexaPDF::Layout::
TextFragment
HexaPDF::Layout::
TextLayouter
HexaPDF::Layout::TextLayouter::
Box
HexaPDF::Layout::TextLayouter::
Glue
HexaPDF::Layout::TextLayouter::
Penalty
HexaPDF::Layout::TextLayouter::
Result
HexaPDF::Layout::TextLayouter::
SimpleLineWrapping
HexaPDF::Layout::TextLayouter::
SimpleTextSegmentation
HexaPDF::Layout::
TextShaper
HexaPDF::Layout::
WidthFromPolygon
HexaPDF::
MalformedPDFError
HexaPDF::
MissingGlyphError
HexaPDF::
NameTreeNode
HexaPDF::
NumberTreeNode
HexaPDF::
Object
HexaPDF::
PDFArray
HexaPDF::
PDFData
HexaPDF::
Parser
HexaPDF::
Rectangle
HexaPDF::
Reference
HexaPDF::
Revision
HexaPDF::
Revisions
HexaPDF::
Serializer
HexaPDF::
Stream
HexaPDF::
StreamData
HexaPDF::
Task
HexaPDF::Task::
Dereference
HexaPDF::Task::
MergeAcroForm
HexaPDF::Task::
Optimize
HexaPDF::Task::
PDFA
HexaPDF::
TestUtils
HexaPDF::TestUtils::
OperatorRecorder
HexaPDF::
Tokenizer
HexaPDF::Tokenizer::
Token
HexaPDF::
Type
HexaPDF::Type::
AcroForm
HexaPDF::Type::AcroForm::
AppearanceGenerator
HexaPDF::Type::AcroForm::
ButtonField
HexaPDF::Type::AcroForm::
ChoiceField
HexaPDF::Type::AcroForm::
Field
HexaPDF::Type::AcroForm::Field::
HashRefinement
HexaPDF::Type::AcroForm::
Form
HexaPDF::Type::AcroForm::
JavaScriptActions
HexaPDF::Type::AcroForm::JavaScriptActions::
SimplifiedFieldNotationParser
HexaPDF::Type::AcroForm::JavaScriptActions::SimplifiedFieldNotationParser::
ParseError
HexaPDF::Type::AcroForm::
SignatureField
HexaPDF::Type::AcroForm::SignatureField::
CertificateSeedValueDictionary
HexaPDF::Type::AcroForm::SignatureField::
LockDictionary
HexaPDF::Type::AcroForm::SignatureField::
SeedValueDictionary
HexaPDF::Type::AcroForm::
TextField
HexaPDF::Type::AcroForm::
VariableTextField
HexaPDF::Type::
Action
HexaPDF::Type::
Actions
HexaPDF::Type::Actions::
GoTo
HexaPDF::Type::Actions::
GoToR
HexaPDF::Type::Actions::
Launch
HexaPDF::Type::Actions::Launch::
WinParameters
HexaPDF::Type::Actions::
SetOCGState
HexaPDF::Type::Actions::
URI
HexaPDF::Type::
Annotation
HexaPDF::Type::Annotation::
AppearanceDictionary
HexaPDF::Type::Annotation::
Border
HexaPDF::Type::
Annotations
HexaPDF::Type::Annotations::
Link
HexaPDF::Type::Annotations::
MarkupAnnotation
HexaPDF::Type::Annotations::MarkupAnnotation::
ExData
HexaPDF::Type::Annotations::
Text
HexaPDF::Type::Annotations::
Widget
HexaPDF::Type::Annotations::Widget::
AppearanceCharacteristics
HexaPDF::Type::Annotations::Widget::
MarkerStyle
HexaPDF::Type::
CIDFont
HexaPDF::Type::CIDFont::
CIDSystemInfo
HexaPDF::Type::
CMap
HexaPDF::Type::
Catalog
HexaPDF::Type::
EmbeddedFile
HexaPDF::Type::EmbeddedFile::
MacInfo
HexaPDF::Type::EmbeddedFile::
Parameters
HexaPDF::Type::
FileSpecification
HexaPDF::Type::FileSpecification::
EFDictionary
HexaPDF::Type::
Font
HexaPDF::Type::
FontDescriptor
HexaPDF::Type::
FontSimple
HexaPDF::Type::
FontTrueType
HexaPDF::Type::
FontType0
HexaPDF::Type::
FontType1
HexaPDF::Type::FontType1::
StandardFonts
HexaPDF::Type::
FontType3
HexaPDF::Type::
Form
HexaPDF::Type::Form::
Group
HexaPDF::Type::Form::
Reference
HexaPDF::Type::
GraphicsStateParameter
HexaPDF::Type::
IconFit
HexaPDF::Type::
Image
HexaPDF::Type::
Info
HexaPDF::Type::
MarkInformation
HexaPDF::Type::
Metadata
HexaPDF::Type::
Names
HexaPDF::Type::
ObjectStream
HexaPDF::Type::ObjectStream::
Data
HexaPDF::Type::
OptionalContentConfiguration
HexaPDF::Type::OptionalContentConfiguration::
UsageApplication
HexaPDF::Type::
OptionalContentGroup
HexaPDF::Type::OptionalContentGroup::
OptionalContentUsage
HexaPDF::Type::OptionalContentGroup::OptionalContentUsage::
CreatorInfo
HexaPDF::Type::OptionalContentGroup::OptionalContentUsage::
Export
HexaPDF::Type::OptionalContentGroup::OptionalContentUsage::
Language
HexaPDF::Type::OptionalContentGroup::OptionalContentUsage::
PageElement
HexaPDF::Type::OptionalContentGroup::OptionalContentUsage::
Print
HexaPDF::Type::OptionalContentGroup::OptionalContentUsage::
User
HexaPDF::Type::OptionalContentGroup::OptionalContentUsage::
View
HexaPDF::Type::OptionalContentGroup::OptionalContentUsage::
Zoom
HexaPDF::Type::
OptionalContentMembership
HexaPDF::Type::
OptionalContentProperties
HexaPDF::Type::
Outline
HexaPDF::Type::
OutlineItem
HexaPDF::Type::
OutputIntent
HexaPDF::Type::OutputIntent::
DestOutputProfileRef
HexaPDF::Type::
Page
HexaPDF::Type::
PageLabel
HexaPDF::Type::
PageTreeNode
HexaPDF::Type::
Resources
HexaPDF::Type::
Trailer
HexaPDF::Type::
ViewerPreferences
HexaPDF::Type::
XRefStream
HexaPDF::
UnsupportedEncryptionError
HexaPDF::
Utils
HexaPDF::Utils::
BitField
HexaPDF::Utils::
BitStreamReader
HexaPDF::Utils::
BitStreamWriter
HexaPDF::Utils::
GraphicsHelpers
HexaPDF::Utils::
LRUCache
HexaPDF::Utils::
MathHelpers
HexaPDF::Utils::
ObjectHash
HexaPDF::Utils::
PDFDocEncoding
HexaPDF::Utils::
SortedTreeNode
HexaPDF::
Writer
HexaPDF::
XRefSection
class HexaPDF::
CLI::
Optimize
Parent
HexaPDF::CLI::Command
Optimizes the size of a PDF file.