PdfDocument.ReplaceDuplicateFonts Method

Note: This API is now obsolete.

Replaces all duplicate fonts with the first duplicate.

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

Syntax

C#
[ObsoleteAttribute("This method will be removed in the next release of Docotic.Pdf. Please use ReplaceDuplicateObjects() method instead.")]
public void ReplaceDuplicateFonts()
VB
<ObsoleteAttribute("This method will be removed in the next release of Docotic.Pdf. Please use ReplaceDuplicateObjects() method instead.")>
Public Sub ReplaceDuplicateFonts

Remarks

This method finds all groups of font duplicates and replaces all fonts 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 fonts.

To actually reduce output file size, this method requires removal of unused objects afterwards. Because of this, SaveOptions.RemoveUnusedObjects property will be set to true automatically when using this method.

See Also