Class ImageGraphicsEngine


  • public class ImageGraphicsEngine
    extends org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
    Copied nearly verbatim from PDFBox
    • Field Detail

      • MAX_IMAGE_LENGTH_BYTES

        protected static final long MAX_IMAGE_LENGTH_BYTES
        See Also:
        Constant Field Values
      • pageNumber

        protected final int pageNumber
      • processedInlineImages

        protected final Map<org.apache.pdfbox.cos.COSStream,​Integer> processedInlineImages
      • parentMetadata

        protected final Metadata parentMetadata
      • extractInlineImageMetadataOnly

        protected final boolean extractInlineImageMetadataOnly
      • useDirectJPEG

        protected boolean useDirectJPEG
    • Method Detail

      • hasMasks

        protected static boolean hasMasks​(org.apache.pdfbox.pdmodel.graphics.image.PDImage pdImage)
                                   throws IOException
        Throws:
        IOException
      • drawImage

        public void drawImage​(org.apache.pdfbox.pdmodel.graphics.image.PDImage pdImage)
                       throws IOException
        Specified by:
        drawImage in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
        Throws:
        IOException
      • clip

        public void clip​(int windingRule)
                  throws IOException
        Specified by:
        clip in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
        Throws:
        IOException
      • moveTo

        public void moveTo​(float x,
                           float y)
                    throws IOException
        Specified by:
        moveTo in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
        Throws:
        IOException
      • lineTo

        public void lineTo​(float x,
                           float y)
                    throws IOException
        Specified by:
        lineTo in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
        Throws:
        IOException
      • curveTo

        public void curveTo​(float x1,
                            float y1,
                            float x2,
                            float y2,
                            float x3,
                            float y3)
                     throws IOException
        Specified by:
        curveTo in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
        Throws:
        IOException
      • getCurrentPoint

        public Point2D getCurrentPoint()
                                throws IOException
        Specified by:
        getCurrentPoint in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
        Throws:
        IOException
      • closePath

        public void closePath()
                       throws IOException
        Specified by:
        closePath in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
        Throws:
        IOException
      • endPath

        public void endPath()
                     throws IOException
        Specified by:
        endPath in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
        Throws:
        IOException
      • showGlyph

        protected void showGlyph​(org.apache.pdfbox.util.Matrix textRenderingMatrix,
                                 org.apache.pdfbox.pdmodel.font.PDFont font,
                                 int code,
                                 String unicode,
                                 org.apache.pdfbox.util.Vector displacement)
                          throws IOException
        Overrides:
        showGlyph in class org.apache.pdfbox.contentstream.PDFStreamEngine
        Throws:
        IOException
      • strokePath

        public void strokePath()
                        throws IOException
        Specified by:
        strokePath in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
        Throws:
        IOException
      • fillPath

        public void fillPath​(int windingRule)
                      throws IOException
        Specified by:
        fillPath in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
        Throws:
        IOException
      • fillAndStrokePath

        public void fillAndStrokePath​(int windingRule)
                               throws IOException
        Specified by:
        fillAndStrokePath in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
        Throws:
        IOException
      • shadingFill

        public void shadingFill​(org.apache.pdfbox.cos.COSName shadingName)
                         throws IOException
        Specified by:
        shadingFill in class org.apache.pdfbox.contentstream.PDFGraphicsStreamEngine
        Throws:
        IOException