Read ModeLaw Library document viewerWare v RLSupreme Court of LiberiaPreparing source documentDetecting the document format and preparing the appropriate viewer…