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>
contentTypes
protected static int
MAX_SIZE
Fields 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 void
addSupportedContentType(java.lang.String contentType)
protected void
createPDFRendition(java.io.InputStream is, java.io.OutputStream renditionOutputStream)
protected void
createThumbnailRendition(java.io.InputStream is, java.io.OutputStream renditionOutputStream)
protected java.awt.image.BufferedImage
getScaledImage(java.awt.image.BufferedImage src, int w, int h)
protected java.util.List<java.lang.String>
getSupportedContentTypes()
boolean
isPDFRenditionSupported()
boolean
isThumbnailRenditionSupported()
void
setSupportedContentTypes(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:
isPDFRenditionSupported
in interfaceRenditionConverter
- Specified by:
isPDFRenditionSupported
in classBaseContentConverter
-
isThumbnailRenditionSupported
public boolean isThumbnailRenditionSupported()- Specified by:
isThumbnailRenditionSupported
in interfaceRenditionConverter
- Specified by:
isThumbnailRenditionSupported
in classBaseContentConverter
-
createPDFRendition
protected void createPDFRendition(java.io.InputStream is, java.io.OutputStream renditionOutputStream)- Specified by:
createPDFRendition
in classBaseContentConverter
-
createThumbnailRendition
protected void createThumbnailRendition(java.io.InputStream is, java.io.OutputStream renditionOutputStream) throws java.lang.Exception- Specified by:
createThumbnailRendition
in classBaseContentConverter
- Throws:
java.lang.Exception
-
getSupportedContentTypes
protected java.util.List<java.lang.String> getSupportedContentTypes()- Specified by:
getSupportedContentTypes
in classBaseContentConverter
-
addSupportedContentType
public void addSupportedContentType(java.lang.String contentType)- Specified by:
addSupportedContentType
in interfaceRenditionConverter
- Specified by:
addSupportedContentType
in classBaseContentConverter
-
setSupportedContentTypes
public void setSupportedContentTypes(java.util.List<java.lang.String> supportedContentTypes)- Specified by:
setSupportedContentTypes
in interfaceRenditionConverter
- Specified by:
setSupportedContentTypes
in classBaseContentConverter
-
getScaledImage
protected java.awt.image.BufferedImage getScaledImage(java.awt.image.BufferedImage src, int w, int h)
-