mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Better support for .csv in explorer and share - register the mime type better, and include thumbnailing
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@23051 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -89,10 +89,11 @@ public class TextToPdfContentTransformer extends AbstractContentTransformer2
|
||||
public boolean isTransformable(String sourceMimetype, String targetMimetype, TransformationOptions options)
|
||||
{
|
||||
if ( (!MimetypeMap.MIMETYPE_TEXT_PLAIN.equals(sourceMimetype) &&
|
||||
!MimetypeMap.MIMETYPE_TEXT_CSV.equals(sourceMimetype) &&
|
||||
!MimetypeMap.MIMETYPE_XML.equals(sourceMimetype) ) ||
|
||||
!MimetypeMap.MIMETYPE_PDF.equals(targetMimetype))
|
||||
{
|
||||
// only support (text/plain OR text/xml) to (application/pdf)
|
||||
// only support (text/plain OR text/csv OR text/xml) to (application/pdf)
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user