When you add a modern page to a site, you add and customize web parts, which are the building blocks of your page. This article describes the File viewer web part, which was previously called the Document web part.
Use the File viewer web part to insert a file on your page. File types you can insert include Excel, Word, PowerPoint, Visio, PDFs, 3D models, and more.
Add a file
If you're not in edit mode already, click Edit at the top right of the page.
Hover your mouse above or below an existing web part or under the title region, click , and then select the File viewer web part.
Choose a recent file, or browse, upload, or use a link to insert the file you want.
Optionally, you can add a description under the web part.
To set additional options (depending on availability for the file type), click Edit web part .
Tip: Image files are not supported in the File viewer web part. However, if you want to insert an image on your page, you can use the Use the Image web part.