Class PdfConverters
java.lang.Object
de.xima.fc.transform.pdf.convert.PdfConverters
PDF conversion facade.
- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionstatic IUploadPostProcessorcreateUploadPostProcessorInst(PdfConversionParams conversionParams, Function<IXUpload, IXUpload> notProcessableHandler, Consumer<String> protocolEntryHandler) static IPdfConverterstatic booleanisConvertible(String extension)
-
Method Details
-
isConvertible
- 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
- 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(PdfConversionParams conversionParams, Function<IXUpload, IXUpload> notProcessableHandler, Consumer<String> protocolEntryHandler) - Parameters:
conversionParams- parameters for the PDF conversion (e.g. the target page format), may bePdfConversionParams.EMPTYbut not nullnotProcessableHandler- function to handle uploads that are not processable, may be null for noop behaviourprotocolEntryHandler- processor for protocol entries created during the conversion, must not be null- Returns:
- a new IUploadPostProcessor instance to be used for PDF conversion of uploaded files.
-