Customer Wanted to explore any build in library or functionality available in APEX or VBCS to do the validation process varies for different types of file extensions.
File Validator Service validates:
Word (.docx)
Excel (.xsl, .xslx)
Pdf (.pdf)
Also, the application should not allow corrupted files.
For eg:-
Word File
- DOCX /DOC cannot have macros.
- DOCX /DOC cannot have embedded files.
Excel file
- XLS/XLSX cannot have macros.
- XLS/XLSX cannot have embedded files.
PDF file
- PDF cannot have JS actions/scripts.
- PDF cannot have any embedded files.
- PDF cannot have any internal or external links
Image file
- Images cannot be corrupt attachments files.
- Images cannot have a different format other than JPG, JPEG, or PNG.
Outlook Message File
- MS Outlook cannot have any corrupt attachments files.
- MS Outlook cannot have more than three levels of attachments.
Please help to implement this requirement in APEX.