Read ModeLaw Library document viewerGray v RLPreserved legal sourcePreparing source documentDetecting the document format and preparing the appropriate viewer…