Class ExporterFactory


  • public class ExporterFactory
    extends Object
    Contains static factory methods for common Exporter instances.
    • Method Detail

      • createPostscriptExporter

        public static JPSExporter createPostscriptExporter()
        Create a Postscript Exporter.

        This Exporter depends on the JVM to provide the appropriate backend. If no such backend is available for the current JVM, this method will return null

        Returns:
        a JPSExporter for writing Postscript export streams, or null if not available
      • createPDFExporter

        public static Exporter createPDFExporter()
        Create a PDF Exporter.

        The created Exporter will be configured with defaults intended to produce print documents. Such defaults include full page rasterization in some cases.

        Returns:
        an Exporter for PDF creation.
      • createPDFExporter

        public static Exporter createPDFExporter​(OpenAction embeddedOpenAction)
        Create a PDF Exporter.

        The created Exporter will be configured with defaults intended to produce print documents. Such defaults include full page rasterization in some cases.

        Additionally an open action can be specified. A viewer supporting open actions will execute the given action when the pdf document is opened. This can be used e.g. to immediately show a print dialog without further user interaction.

        Parameters:
        embeddedOpenAction - The open action to be embedded into the generated pdf.
        Returns:
        a Exporter for PDF creation.
      • createRasterizingPDFExporter

        public static Exporter createRasterizingPDFExporter​(OpenAction embeddedOpenAction)
        Create a PDF Exporter where all text is transformed into in rastered images.

        Additionally an open action can be specified. A viewer supporting open actions will execute the given action when the pdf document is opened. This can be used e.g. to immediately show a print dialog without further user interaction.

        Parameters:
        embeddedOpenAction - The open action to be embedded into the generated pdf.
        Returns:
        a Exporter for PDF creation.
      • createTIFFExporter

        public static Exporter createTIFFExporter()
        Create a TIFF Exporter.

        The created Exporter will be configured with defaults intended to produce print documents.

        Returns:
        a Exporter for TIFF creation.