Added PDF previews

This commit is contained in:
M66B
2023-10-14 13:47:57 +02:00
parent 415c5d189b
commit f913347455
3 changed files with 62 additions and 34 deletions

View File

@@ -117,6 +117,10 @@ public class EntityAttachment {
return ImageHelper.isImage(getMimeType());
}
boolean isPDF() {
return "application/pdf".equals(getMimeType());
}
boolean isCompressed() {
if ("application/zip".equals(type))
return true;