从Web部件的doc库查看pdf? [英] view pdf from doc library in web part?

查看:89
本文介绍了从Web部件的doc库查看pdf?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天,

如何从网络部件中的文档库中查看pdf?我正在使用SharePoint Office 365.我的最终目标是查看  最新的pdf发布到该文件夹​​。

How can I view a pdf from a document library in a web part? I am using SharePoint office 365. My ultimate goal is to view the  most recent pdf published to the folder.

我曾尝试使用具有正确过滤器的突出显示内容,但pdf非常模糊且无法阅读。

I had tried using highlighted content which had the right filters to use but the pdf was extremely blurry and unable to read.

我还尝试查看带有附加"视图"的页面。过滤最近的和限制到单个文档,但这只显示该文件夹。我需要看到实际的pdf。

I also tried viewing a page with additional "view" to filter most recent and limit to single doc but this only displayed the folder. I need to see the actual pdf.

有什么想法吗?谢谢。

推荐答案

嗨sbab3, 
$


查看pdf来自Web部分的doc库,以下是一些方法:



使用内容编辑器Web部件:



1.在页面上添加内容编辑器Web部件



2.单击内容编辑器Web部件(不是页面)的"编辑HTML源"按钮



3.添加以下代码:



< object>< embed src =" FILENAME.PDF"高度= QUOT; 850" width =" 850"  type =" application / pdf">< / embed>< / object>

Hi sbab3, 

To view pdf from doc library in web part, here are some methods:

Use content editor web part:

1.Add a Content Editor Web Part to the page

2.Click on the ‘Edit HTML Source’ button for the Content Editor Web Part (not the page)

3.Add the following code:

<object><embed src="FILENAME.PDF" height="850" width="850" type="application/pdf"></embed></object>

其中:

src =文件的URL,记得将服务器的相对URL放入其中!

Where:
src = The URL of the file, remember to put in a server relative URL to this!

height =呈现PDF的高度

height = height of the rendered PDF

width = width渲染的PDF

$
4.点击保存,您应该看到您的PDF格式呈现为


或使用页面查看器webpart:
$


1.将PDF文档上载到适当的SharePoint库并在记事本中复制URL。稍后需要URL。



2.在Wiki页面中嵌入文档,然后单击左上角的Edit图标。



3.单击该位置或将光标移至Wiki页面中您要嵌入PDF的位置。



4.点击编辑工具>在页面顶部插入标签()。
$


5.单击Web部件。



6.在页面左侧的"类别"列表框中选择"媒体和内容",然后从"Web部件"列表中选择"页面查看器"。单击"添加"。这会将页面查看器Web部件插入页面中光标的位置。



7.将鼠标悬停在插入的页面查看器Web部件上。单击下拉按钮并单击"编辑Web部件"选项。



8.粘贴URL,给出标题并指定Web部件的高度,然后单击"确定"。 。你完成了! PDF现在将在窗口中显示为文档,Adobe Reader的常规功能(如缩放,平移,打印等)可用于与文档交互。



是类似的问题帖子供您参考:

width = width of the rendered PDF

4.Click on Save and you should see your PDF rendered

OR use page viewer webpart:

1.Upload the PDF document to an appropriate SharePoint library and copy the URL in a Notepad. The URL is needed later.

2.pen the Wiki page where the document has to be embedded and click on the Edit icon at the top-left.

3.Click on the location or bring the cursor to the location in the Wiki page where you’d like to embed the PDF.

4.Click on the Editing Tools > Insert tab at the top of the page ().

5.Click on Web Part.

6.Select Media and Content in the Categories list box on the left of the page and select Page Viewer from the Web Parts list. Click on Add. This will insert the Page Viewer web part at the location of the cursor in the page.

7.Hover over the inserted Page Viewer web part. Click on the drop down button and click the Edit Web Part option.

8.Paste the URL, give a title and specify a height for the web part and click OK. You are done! The PDF will now appear as a document in a window and Adobe Reader’s normal features like zoom, pan, print etc. would be available to interact with the document.

Here are the similar issue posts for your reference:

https://sharepoint.stackexchange.com/questions/105867/pdf-viewer-web-part/105869

https://sharepoint.stackexchange.com/questions/151161/how-to-embed-word-and- pdf-documents-in-pages

最诚挚的问候, 

Best Regards, 

Lisa Chen 

Lisa Chen 


这篇关于从Web部件的doc库查看pdf?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆