Class EPSDocumentGraphics2D

    • Constructor Detail

      • EPSDocumentGraphics2D

        public EPSDocumentGraphics2D​(boolean textAsShapes)
        Create a new EPSDocumentGraphics2D. This is used to create a new EPS document, the height, width and output stream can be setup later. For use by the transcoder which needs font information for the bridge before the document size is known. The resulting document is written to the stream after rendering.
        Parameters:
        textAsShapes - set this to true so that text will be rendered using curves and not the font.
    • Method Detail

      • writeFileHeader

        protected void writeFileHeader()
                                throws java.io.IOException
        Writes the file header.
        Specified by:
        writeFileHeader in class AbstractPSDocumentGraphics2D
        Throws:
        java.io.IOException - if an I/O error occurs
      • writePageHeader

        protected void writePageHeader()
                                throws java.io.IOException
        Writes the page header for a page.
        Specified by:
        writePageHeader in class AbstractPSDocumentGraphics2D
        Throws:
        java.io.IOException - In case an I/O error occurs
      • writePageTrailer

        protected void writePageTrailer()
                                 throws java.io.IOException
        Writes the page trailer for a page.
        Specified by:
        writePageTrailer in class AbstractPSDocumentGraphics2D
        Throws:
        java.io.IOException - In case an I/O error occurs