PdfSaveOptions.RemoveUnusedObjects Property

Gets or sets a value indicating whether to remove all unused (unreferenced) objects from PDF before saving.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public bool RemoveUnusedObjects { get; set; }
VB
Public Property RemoveUnusedObjects As Boolean
	Get
	Set

Property Value

Type: Boolean
true if library should remove unused objects; otherwise, false.

Remarks

Default value: true.

Setting this property to true helps to produce smaller output files.

When saving a file incrementally (when WriteIncrementally is true), this property only affects the increment. There won't be any changes to the part with the original file contents.

See Also