fromgroupdocs.viewerimportViewer,FileTypefromgroupdocs.viewer.optionsimportLoadOptions,PdfViewOptionsload_options=LoadOptions(FileType.MD)# specify the file typewithViewer("terms_of_service.txt",load_options)asviewer:view_options=PdfViewOptions("output.pdf")viewer.view(view_options)