public final class FontTablePart extends JaxbXmlPart<Fonts>
  • Constructor Details

  • Method Details

    • init

      public void init()
    • unmarshalDefaultFonts

      public Object unmarshalDefaultFonts() throws jakarta.xml.bind.JAXBException
      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

      public void processEmbeddings(Mapper fontMapper)
    • 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

      public static void main(String[] args) throws Exception
      Throws:
      Exception