As the repo details it, ng2-pdf-viewer
is just for PDF files. If you need to display Excel documents, photos, and so on, you should use a different component.
You can make a function that picks which component to use depending on what file type you have, but you cannot display them all in ng2-pdf-viewer
.
ViewerJS is an example of a Framework that supports both PDF and office documents (Open Document Format).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…