Click or drag to resize
Pdftools logo

RemovalOptionsRemoveRedundantGraphicsStates Property

Whether to remove redundant graphics state save/restore pairs

A pair of graphics state save and restore operators (q/Q) whose restore is immediately followed by another restore saves a state that no drawing operator observes. Removing such pairs does not change the page's appearance. Deeply nested content produced by some applications is reduced to the nesting depth it actually needs, which keeps documents within the limit of 28 nested graphics states required by PDF/A-1.

Default: in all profiles.


Namespace: PdfTools.Optimization
Assembly: PdfTools (in PdfTools.dll) Version: 1.21.0+681095c836a504fad5babf64a745b2efeb5bae2c
Syntax
C#
public bool RemoveRedundantGraphicsStates { get; set; }

Property Value

Boolean
See Also