Class FontTablePart
java.lang.Object
org.docx4j.openpackaging.Base
org.docx4j.openpackaging.parts.Part
org.docx4j.openpackaging.parts.JaxbXmlPart<Fonts>
org.docx4j.openpackaging.parts.WordprocessingML.FontTablePart
-
Field Summary
Fields inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
jaxbElement, jc, MAX_BYTES_Unmarshal_ErrorFields inherited from class org.docx4j.openpackaging.Base
contentType, partName, relationships -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTemporary embedded fonts should be deleted on exit, but for a long running app that may not be adequate, in which case you'll want to invoke this method when you have finished with a WordML pkg.voidinit()static voidvoidvoidprocessEmbeddings(Mapper fontMapper) Unmarshal a default font table, useful when creating this part from scratch.Methods inherited from class org.docx4j.openpackaging.parts.JaxbXmlPart
addMcChoiceNamespace, getConfiguredUnmarshaller, getContents, getJAXBContext, getJaxbElement, getMcChoiceNamespaces, getMceIgnorable, getXML, getXMLStreamReader, inputStreamToXSR, isContentEqual, isUnmarshalled, marshal, marshal, marshal, marshal, pipe, pipe, pipe, preprocess, replacePartContent, setContents, setJAXBContext, setJaxbElement, setJaxbElement, setMceIgnorable, transform, transformToDom, unmarshal, unmarshal, variableReplaceMethods 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
-
FontTablePart
- Throws:
InvalidFormatException
-
FontTablePart
- Throws:
InvalidFormatException
-
-
Method Details
-
init
public void init() -
unmarshalDefaultFonts
Unmarshal a default font table, useful when creating this part from scratch.- Returns:
- the newly created root object of the java content tree
- Throws:
jakarta.xml.bind.JAXBException- If any unexpected errors occur while unmarshalling
-
processEmbeddings
public void processEmbeddings() -
processEmbeddings
-
deleteEmbeddedFontTempFiles
public void deleteEmbeddedFontTempFiles()Temporary embedded fonts should be deleted on exit, but for a long running app that may not be adequate, in which case you'll want to invoke this method when you have finished with a WordML pkg. You can get this part from your MainDocumentPart, using getFontTablePart() -
main
- Throws:
Exception
-