Package de.xima.fc.transform.pdf.convert
Class PdfConverters
- java.lang.Object
 - 
- de.xima.fc.transform.pdf.convert.PdfConverters
 
 
- 
public class PdfConverters extends Object
PDF conversion facade.- Since:
 - 8.3.0
 - Author:
 - XIMA MEDIA GmbH
 
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IUploadPostProcessorcreateUploadPostProcessorInst(Function<IXUpload,IXUpload> notProcessableHandler)static IPdfConverterforType(String extension)static booleanisConvertible(String extension) 
 - 
 
- 
- 
Method Detail
- 
isConvertible
public static boolean isConvertible(String extension)
- Parameters:
 extension- the file extension of the conversion source (e.g. "png")- Returns:
 - true, if there's a PDF converter for the passed type, false if not.
 
 
- 
forType
public static IPdfConverter forType(String extension)
- Parameters:
 extension- the file extension of the conversion source (e.g. "png")- Returns:
 - the appropriate converter (if there's one) or a fallback (that throws a PdfConversionException), but never null.
 
 
- 
createUploadPostProcessorInst
public static IUploadPostProcessor createUploadPostProcessorInst(Function<IXUpload,IXUpload> notProcessableHandler)
- Parameters:
 notProcessableHandler- function to handle uploads that are not processable, may be null for noop behaviour- Returns:
 - a new IUploadPostProcessor instance to be used for PDF conversion of uploaded files.
 
 
 - 
 
 -