Class RemoveSubsetPrefixRule
java.lang.Object
com.itextpdf.pdfoptimizer.handlers.fontduplication.rules.RemoveSubsetPrefixRule
- All Implemented Interfaces:
-
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidupdate(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.
-
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:PdfNamevalue associated with keyPdfName.BaseFont;PdfNamevalue associated with keyPdfName.FontNameincluded intoPdfDictionaryassociated withPdfName.FontDescriptor;- performs modification mentioned above for each
PdfDictionaryincluded into array associated withPdfName.DescendantFonts.
- Specified by:
-
updatein interfaceIValueUpdateRule - Parameters:
-
pdfDictionary- is a PdfDictionary to modify
-