Class PdfConvertor
java.lang.Object
org.frankframework.extensions.aspose.services.conv.impl.convertors.PdfConvertor
- All Implemented Interfaces:
Convertor
Converts the files which are required and supported by the Aspose pdf library.
- Author:
- Gerard van der Hoorn
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
convert
(org.springframework.http.MediaType mediaType, Message message, CisConversionResult result, String charset) final CisConversionResult
convertToPdf
(org.springframework.http.MediaType mediaType, String filename, Message message, ConversionOption conversionOption, String charset) Should not be overloaded by the concrete classes.protected String
protected void
deleteFile
(File file) protected int
getNumberOfPages
(File file) Set
<org.springframework.http.MediaType> Returns the supported media types.protected boolean
-
Field Details
-
configuration
-
-
Constructor Details
-
PdfConvertor
-
-
Method Details
-
convert
public void convert(org.springframework.http.MediaType mediaType, Message message, CisConversionResult result, String charset) throws Exception - Throws:
Exception
-
isPasswordException
-
getSupportedMediaTypes
Description copied from interface:Convertor
Returns the supported media types.- Specified by:
getSupportedMediaTypes
in interfaceConvertor
-
convertToPdf
public final CisConversionResult convertToPdf(org.springframework.http.MediaType mediaType, String filename, Message message, ConversionOption conversionOption, String charset) Should not be overloaded by the concrete classes.- Specified by:
convertToPdf
in interfaceConvertor
- Parameters:
charset
-
-
getNumberOfPages
- Throws:
IOException
-
createErrorMsg
-
deleteFile
- Throws:
IOException
-