Read ModeLaw Library document viewerSheah et al v McgillPreserved legal sourcePreparing source documentDetecting the document format and preparing the appropriate viewer…