Class RemoveSubsetPrefixRule

java.lang.Object
com.itextpdf.pdfoptimizer.handlers.fontduplication.rules.RemoveSubsetPrefixRule
All Implemented Interfaces:
IValueUpdateRule

public class RemoveSubsetPrefixRule extends Object implements IValueUpdateRule
This rule removes prefix in AAAAAA+ format (six latin letters in upper case and plus sign) when performing equality check or hash calculation for font PdfDictionary.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    update(com.itextpdf.kernel.pdf.PdfDictionary pdfDictionary)
    Modifies the dictionary to remove random prefix in AAAAAA+ format (six latin letters in upper case and plus sign) from name of the font.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RemoveSubsetPrefixRule

      public RemoveSubsetPrefixRule()
  • Method Details

    • update

      public void update (com.itextpdf.kernel.pdf.PdfDictionary pdfDictionary)
      Modifies the dictionary to remove random prefix in AAAAAA+ format (six latin letters in upper case and plus sign) from name of the font. Removes the prefix from the following values:
      • PdfName value associated with key PdfName.BaseFont;
      • PdfName value associated with key PdfName.FontName included into PdfDictionary associated with PdfName.FontDescriptor;
      • performs modification mentioned above for each PdfDictionary included into array associated with PdfName.DescendantFonts.
      Specified by:
      update in interface IValueUpdateRule
      Parameters:
      pdfDictionary - is a PdfDictionary to modify