Class PdfOptions

java.lang.Object
fr.opensagres.odfdom.converter.core.Options
fr.opensagres.odfdom.converter.pdf.PdfOptions

public class PdfOptions extends fr.opensagres.odfdom.converter.core.Options
Pdf options to customize the ODT->PDF converter.
  • Method Summary

    Modifier and Type
    Method
    Description
    static PdfOptions
    Create an instance of Pdf options.
    fontEncoding(String fontEncoding)
    Set font encoding to use when retrieving fonts.
    fontProvider(fr.opensagres.xdocreport.itext.extension.font.IFontProvider fontProvider)
    Set the font provider.
    fr.opensagres.xdocreport.itext.extension.IPdfWriterConfiguration
    Returns the configuration to use to configure iText PdfWriter and null otherwise.
    static PdfOptions
    Returns the default Pdf Options.
    Returns the font encoding.
    fr.opensagres.xdocreport.itext.extension.font.IFontProvider
    Returns the font provider.
    void
    setConfiguration(fr.opensagres.xdocreport.itext.extension.IPdfWriterConfiguration configuration)
    Set the configuration to use to configure iText PdfWriter and null otherwise.

    Methods inherited from class fr.opensagres.odfdom.converter.core.Options

    getExtractor, setExtractor

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • create

      public static PdfOptions create()
      Create an instance of Pdf options.
      Returns:
    • getFontEncoding

      public String getFontEncoding()
      Returns the font encoding.
      Returns:
    • fontEncoding

      public PdfOptions fontEncoding(String fontEncoding)
      Set font encoding to use when retrieving fonts. The default value is unicode encoding
      Parameters:
      fontEncoding - font encoding to use
      Returns:
      this instance
    • fontProvider

      public PdfOptions fontProvider(fr.opensagres.xdocreport.itext.extension.font.IFontProvider fontProvider)
      Set the font provider.
      Parameters:
      fontProvider -
      Returns:
    • getFontProvider

      public fr.opensagres.xdocreport.itext.extension.font.IFontProvider getFontProvider()
      Returns the font provider.
      Returns:
    • getConfiguration

      public fr.opensagres.xdocreport.itext.extension.IPdfWriterConfiguration getConfiguration()
      Returns the configuration to use to configure iText PdfWriter and null otherwise.
      Returns:
    • setConfiguration

      public void setConfiguration(fr.opensagres.xdocreport.itext.extension.IPdfWriterConfiguration configuration)
      Set the configuration to use to configure iText PdfWriter and null otherwise.
      Parameters:
      configuration - the configuration to use to configure iText PdfWriter and null otherwise
    • getDefault

      public static PdfOptions getDefault()
      Returns the default Pdf Options.
      Returns: