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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
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 keyPdfName.BaseFont
;PdfName
value associated with keyPdfName.FontName
included intoPdfDictionary
associated withPdfName.FontDescriptor
;- performs modification mentioned above for each
PdfDictionary
included into array associated withPdfName.DescendantFonts
.
- Specified by:
-
update
in interfaceIValueUpdateRule
- Parameters:
-
pdfDictionary
- is a PdfDictionary to modify
-