public interface PDFProcessor
Modifier and Type | Field and Description |
---|---|
static String |
PREVIEW_TYPE |
static String |
THUMBNAIL_TYPE |
Modifier and Type | Method and Description |
---|---|
void |
exportGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
Element fileEntryElement) |
void |
generateImages(FileVersion sourceFileVersion,
FileVersion destinationFileVersion) |
InputStream |
getPreviewAsStream(FileVersion fileVersion,
int index) |
int |
getPreviewFileCount(FileVersion fileVersion) |
long |
getPreviewFileSize(FileVersion fileVersion,
int index) |
InputStream |
getThumbnailAsStream(FileVersion fileVersion,
int index) |
long |
getThumbnailFileSize(FileVersion fileVersion,
int index) |
boolean |
hasImages(FileVersion fileVersion) |
void |
importGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
FileEntry importedFileEntry,
Element fileEntryElement) |
boolean |
isDocumentSupported(FileVersion fileVersion) |
boolean |
isDocumentSupported(String mimeType) |
boolean |
isSupported(String mimeType) |
void |
trigger(FileVersion sourceFileVersion,
FileVersion destinationFileVersion) |
static final String PREVIEW_TYPE
static final String THUMBNAIL_TYPE
void exportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, Element fileEntryElement) throws Exception
Exception
void generateImages(FileVersion sourceFileVersion, FileVersion destinationFileVersion) throws Exception
Exception
InputStream getPreviewAsStream(FileVersion fileVersion, int index) throws Exception
Exception
int getPreviewFileCount(FileVersion fileVersion)
long getPreviewFileSize(FileVersion fileVersion, int index) throws Exception
Exception
InputStream getThumbnailAsStream(FileVersion fileVersion, int index) throws Exception
Exception
long getThumbnailFileSize(FileVersion fileVersion, int index) throws Exception
Exception
boolean hasImages(FileVersion fileVersion)
void importGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, FileEntry importedFileEntry, Element fileEntryElement) throws Exception
Exception
boolean isDocumentSupported(FileVersion fileVersion)
boolean isDocumentSupported(String mimeType)
boolean isSupported(String mimeType)
void trigger(FileVersion sourceFileVersion, FileVersion destinationFileVersion)