Class FontPatternExtractor

java.lang.Object
org.apache.fop.afp.apps.FontPatternExtractor

public class FontPatternExtractor extends Object
This class represents a tool for extracting the Type 1 PFB file from an AFP outline font.
  • Constructor Details

    • FontPatternExtractor

      public FontPatternExtractor()
  • Method Details

    • extract

      public void extract(File file, File targetDir) throws IOException
      Extracts the Type1 PFB file from the given AFP outline font.
      Parameters:
      file - the AFP file to read from
      targetDir - the target directory where the PFB file is to be placed.
      Throws:
      IOException - if an I/O error occurs
    • main

      public static void main(String[] args)
      Main method
      Parameters:
      args - the command-line arguments