public void ReplaceDuplicateObjects( PdfDuplicateObjectKinds objectsToReplace )
Public Sub ReplaceDuplicateObjects ( objectsToReplace As PdfDuplicateObjectKinds )
This method checks objects of the specified kinds. For each specified kind it finds all groups of object duplicates. Then the method replaces all objects from each group of duplicates with the first item of the group.
This method gives good results for documents which were incrementally updated or created by a merge of several documents with the same objects.
To actually reduce output file size, this method requires removal of unused objects afterwards. Please set RemoveUnusedObjects property to true when using this method.