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 TypeMethodDescriptionstatic PdfOptionscreate()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.IPdfWriterConfigurationReturns the configuration to use to configure iTextPdfWriterand null otherwise.static PdfOptionsReturns the default Pdf Options.Returns the font encoding.fr.opensagres.xdocreport.itext.extension.font.IFontProviderReturns the font provider.voidsetConfiguration(fr.opensagres.xdocreport.itext.extension.IPdfWriterConfiguration configuration) Set the configuration to use to configure iTextPdfWriterand null otherwise.Methods inherited from class fr.opensagres.odfdom.converter.core.Options
getExtractor, setExtractor
-
Method Details
-
create
Create an instance of Pdf options.- Returns:
-
getFontEncoding
Returns the font encoding.- Returns:
-
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 iTextPdfWriterand null otherwise.- Returns:
-
setConfiguration
public void setConfiguration(fr.opensagres.xdocreport.itext.extension.IPdfWriterConfiguration configuration) Set the configuration to use to configure iTextPdfWriterand null otherwise.- Parameters:
configuration- the configuration to use to configure iTextPdfWriterand null otherwise
-
getDefault
Returns the default Pdf Options.- Returns:
-