Class Plaintext2PdfConverter
- java.lang.Object
-
- de.xima.fc.transform.pdf.convert.text.Plaintext2PdfConverter
-
- All Implemented Interfaces:
IPdfConverter
public class Plaintext2PdfConverter extends Object implements IPdfConverter
IPdfConverter
implementation for plaintext sources. Supported conversion parameters arePdfConversionParams.ParamNames.SOURCE_ENCODING
(fallback is "UTF-8")PdfConversionParams.ParamNames.TARGET_PAGE_FORMAT
, supported values areETargetPageFormat.A4_PORTRAIT
(the default) andETargetPageFormat.A4_LANDSCAPE
.PdfConversionParams.ParamNames.TARGET_FONT_FAMILY
(default is "Courier")PdfConversionParams.ParamNames.TARGET_FONT_SIZE
(default is 12)
- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description Plaintext2PdfConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
convert(InputStream is, OutputStream os, PdfConversionParams conversionParams)
-
-
-
Method Detail
-
convert
public void convert(InputStream is, OutputStream os, PdfConversionParams conversionParams)
- Specified by:
convert
in interfaceIPdfConverter
- Parameters:
is
- the input stream providing the source dataos
- the output stream for the resulting PDF dataconversionParams
- parameters for the conversion
-
-