We need to make this pluggable to support other formats -- see DocumentContentColumn where DocumentPDF is loaded. we need to make that DocumentPDF component selection dynamic based on what is the type specified for the Document.
As an example use:
PNG
DOCX
XML
as types , and provide custom viewers for them.
if the file type of the document in the system is PDF it will use DocumentPDF... otherwise it will use one of the available components DocumentPNG, DocumentDOCX and DocumentXML based on the attached type.
Currently the viewer for documents when you open a document defaults to PDF.
e.g. https://dev.gawati.org/_lang/en/doc/_iri/akn/mu/act/1970-09-18/gn_no52_of_1970/eng@/!main
We need to make this pluggable to support other formats -- see
DocumentContentColumn
whereDocumentPDF
is loaded. we need to make thatDocumentPDF
component selection dynamic based on what is the type specified for the Document.As an example use:
PNG DOCX XML
as types , and provide custom viewers for them.
if the file type of the document in the system is PDF it will use DocumentPDF... otherwise it will use one of the available components DocumentPNG, DocumentDOCX and DocumentXML based on the attached type.