Share via

Editing web part

Anonymous
2020-07-28T17:44:18+00:00

I'm struggling working with this "file viewer" web part. 

We regularly post news on our intranet usually in the form of a PDF so naturally to put this on the site I would just use a file viewer and display the PDF content. However, I cannot find a way to modify the size of the viewer. It seems the area for this is preset and annoyingly, isn't even long enough to display a single standard 8.5 x 11 page. Is there really a way to edit this? or is there another web part that I should be using?

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2020-07-28T20:34:33+00:00

Hi A Yung,

Thank you for posting your question in this community. Based on your description, you are using File viewer webpart to display some of your PDF documents. However, it seems that some of your PDF files cannot be displayed correctly as the size of the PDF documents may not able to fit into the webpart.

I understand that it would be quite convenient to directly edit File view webpart in order to resize the page to display. A lot of users also noticed this limitation with File view webpart and raised an idea about File Viewer web-part needs view-size option, which it can allow user to custom the display size in File viewer webpart. If it is convenient, you can vote and subscribe this idea. As more and more people vote on this idea. It can let the related team be aware of this limitation and improve it with a better solution in the future. Thank you for you understanding.

At meantime, here is a workaround I think you can give a shot, which you can use embed code to embed PDF document with Embed webpart with below code:

<iframe width="500" height="500" src="Your PDF file link here "></iframe>

You can change the width and height number to adjust the size to display PDF file. And paste your SharePoint PDF file link into “Your PDF file link here” section.

The output in the embed webpart will look like below:

 

Best regards,

Dihao

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2020-07-29T12:13:22+00:00

    Thank you so much!! this is exactly what I was looking for!

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments