remove_unused_objects property

remove_unused_objects property

The property removes unused (orphaned) objects from a PDF file.

These objects are placed in the PDF document but are not referenced from resource dictionaries of any page and thus are not used at all. Activating this property (True) will decrease the output PDF document size. By default it is disabled (False).

Definition:

@property
def remove_unused_objects(self):
    ...
@remove_unused_objects.setter
def remove_unused_objects(self, value):
    ...

See Also