Class ExporterFactory

java.lang.Object
com.jadice.web.export.server.ExporterFactory

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

    • 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.
    • createPDFaExporter

      public static Exporter createPDFaExporter(OpenAction embeddedOpenAction, com.levigo.jadice.generator.pdf.internal.profile.Conformance conformance)
      Create a PDF Exporter for PDF/A

      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.
      conformance - the Conformance-Level for the PDF
      Returns:
      a Exporter for PDF/A 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.
    • createRedactionPDFExporter

      public static Exporter createRedactionPDFExporter(OpenAction embeddedOpenAction, String... redactionAnnoTypes)
      Create a PDF Exporter where all with annotation masked areas are redacted. This is either done by redaction the structure of the document, or by rasterizing the whole page.

      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.
      redactionAnnoTypes - The archType name of the annotations which mark the are that shall be redacted
      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.
    • createOriginalExporter

      public static Exporter createOriginalExporter()
      Create an Exporter that "exports" the original document
      Returns:
      a Exporter for exporting the original document.