How to preview file (docx or pdf) when upload local in angular 16

i am using ngx-doc-viewr but file path displayed file reader doesn’t priview

can anyone help me

the above method using display another component fileInfo