Class PDFRenditionConverter
java.lang.Object
com.flowable.rendition.BaseContentConverter
com.flowable.core.rendition.converter.CoreRenditionConverter
com.flowable.core.rendition.converter.PDFRenditionConverter
- All Implemented Interfaces:
RenditionConverter
public class PDFRenditionConverter extends CoreRenditionConverter
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.lang.String>contentTypesprotected static intMAX_SIZEFields inherited from class com.flowable.rendition.BaseContentConverter
PDF_RENDITION_MIME_TYPE, PDF_RENDITION_PREFIX, PDF_RENDITION_SUFFIX, THUMBNAIL_RENDITION_MIME_TYPE, THUMBNAIL_RENDITION_PREFIX, THUMBNAIL_RENDITION_SUFFIX -
Constructor Summary
Constructors Constructor Description PDFRenditionConverter() -
Method Summary
Modifier and Type Method Description voidaddSupportedContentType(java.lang.String contentType)protected voidcreatePDFRendition(java.io.InputStream is, java.io.OutputStream renditionOutputStream)protected voidcreateThumbnailRendition(java.io.InputStream is, java.io.OutputStream renditionOutputStream)protected java.awt.image.BufferedImagegetScaledImage(java.awt.image.BufferedImage src, int w, int h)protected java.util.List<java.lang.String>getSupportedContentTypes()booleanisPDFRenditionSupported()booleanisThumbnailRenditionSupported()voidsetSupportedContentTypes(java.util.List<java.lang.String> supportedContentTypes)Methods inherited from class com.flowable.rendition.BaseContentConverter
generatePDF, generateThumbnail, getPdfRenditionMimeType, getThumbnailRenditionMimeType, handlesContentType
-
Field Details
-
contentTypes
protected java.util.List<java.lang.String> contentTypes -
MAX_SIZE
protected static final int MAX_SIZE- See Also:
- Constant Field Values
-
-
Constructor Details
-
PDFRenditionConverter
public PDFRenditionConverter()
-
-
Method Details
-
isPDFRenditionSupported
public boolean isPDFRenditionSupported()- Specified by:
isPDFRenditionSupportedin interfaceRenditionConverter- Specified by:
isPDFRenditionSupportedin classBaseContentConverter
-
isThumbnailRenditionSupported
public boolean isThumbnailRenditionSupported()- Specified by:
isThumbnailRenditionSupportedin interfaceRenditionConverter- Specified by:
isThumbnailRenditionSupportedin classBaseContentConverter
-
createPDFRendition
protected void createPDFRendition(java.io.InputStream is, java.io.OutputStream renditionOutputStream)- Specified by:
createPDFRenditionin classBaseContentConverter
-
createThumbnailRendition
protected void createThumbnailRendition(java.io.InputStream is, java.io.OutputStream renditionOutputStream) throws java.lang.Exception- Specified by:
createThumbnailRenditionin classBaseContentConverter- Throws:
java.lang.Exception
-
getSupportedContentTypes
protected java.util.List<java.lang.String> getSupportedContentTypes()- Specified by:
getSupportedContentTypesin classBaseContentConverter
-
addSupportedContentType
public void addSupportedContentType(java.lang.String contentType)- Specified by:
addSupportedContentTypein interfaceRenditionConverter- Specified by:
addSupportedContentTypein classBaseContentConverter
-
setSupportedContentTypes
public void setSupportedContentTypes(java.util.List<java.lang.String> supportedContentTypes)- Specified by:
setSupportedContentTypesin interfaceRenditionConverter- Specified by:
setSupportedContentTypesin classBaseContentConverter
-
getScaledImage
protected java.awt.image.BufferedImage getScaledImage(java.awt.image.BufferedImage src, int w, int h)
-