Class ObfuscatedFontPart
java.lang.Object
org.docx4j.openpackaging.Base
org.docx4j.openpackaging.parts.Part
org.docx4j.openpackaging.parts.WordprocessingML.BinaryPart
org.docx4j.openpackaging.parts.AbstractFontPart
org.docx4j.openpackaging.parts.WordprocessingML.ObfuscatedFontPart
-
Field Summary
Fields inherited from class org.docx4j.openpackaging.Base
contentType, partName, relationships -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voiddeleteEmbeddedFontTempFiles(String filenamePrefix) deObfuscate(String fontNameAsInTablePart, String fontFileName, String fontKey, String filenamePrefix) Deprecated.deObfuscate this font, and save it using fontNameprotected voidfinalize()static bytefromHexString(String hexStr) voidinit()Methods inherited from class org.docx4j.openpackaging.parts.AbstractFontPart
getF, getTemporaryEmbeddedFontsDir, getTmpFontDir, setFMethods inherited from class org.docx4j.openpackaging.parts.WordprocessingML.BinaryPart
getBuffer, getBytes, getExternalTarget, isContentEqual, isLoaded, setBinaryData, setBinaryData, setBinaryData, writeDataToOutputStreamMethods inherited from class org.docx4j.openpackaging.parts.Part
getContentLengthAsLoaded, getOwningRelationshipPart, getPackage, getRelationshipType, getSourceRelationship, getSourceRelationships, getVersion, remove, rename, setContentLengthAsLoaded, setOwningRelationshipPart, setPackage, setPartShortcut, setRelationshipType, setSourceRelationship, setVersionMethods inherited from class org.docx4j.openpackaging.Base
addTargetPart, addTargetPart, addTargetPart, addTargetPart, getContentType, getPartName, getRelationshipsPart, getRelationshipsPart, getUserData, reset, setContentType, setPartName, setRelationships, setUserData
-
Constructor Details
-
ObfuscatedFontPart
- Throws:
InvalidFormatException
-
-
Method Details
-
init
public void init() -
deObfuscate
@Deprecated public PhysicalFont deObfuscate(String fontNameAsInTablePart, String fontFileName, String fontKey, String filenamePrefix) Deprecated. -
extract
public PhysicalFont extract(String fontNameAsInTablePart, String fontFileName, String fontKey, String filenamePrefix) deObfuscate this font, and save it using fontName- Specified by:
extractin classAbstractFontPart- Parameters:
fontNameAsInTablePart- - the name to save the font as. We could read the font name from the deObfuscated data, but FontLoader can't readily load from a byte array.fontKey-
-
fromHexString
-
deleteEmbeddedFontTempFiles
-
finalize
- Overrides:
finalizein classAbstractFontPart- Throws:
Throwable
-