Class PreflightType3Stream

java.lang.Object
org.apache.pdfbox.contentstream.PDFStreamEngine
org.apache.pdfbox.preflight.content.PreflightStreamEngine
org.apache.pdfbox.preflight.font.util.PreflightType3Stream

public class PreflightType3Stream extends PreflightStreamEngine
This class is used to parse a glyph of a Type3 font program. If the glyph is parsed without error, the width of the glyph is accessible through the getWidth method.
  • Constructor Details

    • PreflightType3Stream

      public PreflightType3Stream(PreflightContext context, org.apache.pdfbox.pdmodel.PDPage page, org.apache.pdfbox.pdmodel.font.PDType3CharProc charProc)
  • Method Details

    • showType3Character

      public void showType3Character(org.apache.pdfbox.pdmodel.font.PDType3CharProc charProc) throws IOException
      Throws:
      IOException
    • createImage

      public Image createImage() throws IOException
      This will parse a type3 stream and create an image from it.
      Returns:
      The image that was created.
      Throws:
      IOException - If there is an error processing the stream.
    • processOperator

      protected void processOperator(org.apache.pdfbox.contentstream.operator.Operator operator, List<org.apache.pdfbox.cos.COSBase> operands) throws IOException
      This is used to handle an operation.
      Overrides:
      processOperator in class org.apache.pdfbox.contentstream.PDFStreamEngine
      Parameters:
      operator - The operation to perform.
      operands - The list of arguments.
      Throws:
      IOException - If there is an error processing the operation.
    • getWidth

      public float getWidth()
      Returns:
      the width of the CharProc glyph description