在SharePoint 2010中更新PDF属性 [英] Update PDF Properties From Within SharePoint 2010

查看:82
本文介绍了在SharePoint 2010中更新PDF属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们为PDF文档分配了4个PDF属性,以确保安全性. PDF文档已添加到SharePoint 2010库中,我们使用ITextSharp和Document将4个PDF属性的值复制到SharePoint库文档属性(元数据)中 添加了事件接收器.一切正常.但是...如果用户更改SharePoint库文档属性,则这不会影响嵌入的PDF属性.因此,当下载PDF时,发送至...下载副本"即表示并保存在本地(例如硬盘驱动器) 并且将查看PDF属性,但显示的是原始PDF属性和值,而不是在SharePoint中分配和修改的那些属性和值.

示例PDF属性"ExportControlled2"被指定为"ExportControlled2". ="NO",复制到SharePoint库文档属性"Export Control"中.当PDF添加到库中时.用户更新导出控制" =是";在SharePoint中.用户保存 将文件复制到本地Harddive,文档属性显示"ExportControlled2", =否".

有什么方法可以从SharePoint内部更新PDF属性(从SharePoint下载时与PDF文档一起保留)?许多示例可用于更新Sharepoint之外的文件的PDF属性,但不会在SharePoint内容数据库中保留文件时更新文件的PDF属性.

We have PDF documents that have 4 PDF properties assigned for security. PDF Documents are added to SharePoint 2010 library and we copy the values of the 4 PDF properties into the SharePoint library document properties (metadata) using ITextSharp and Document Added Event Receiver. All works fine. However...if user changes the SharePoint library document properties this does not affect the embeded PDF Properties. So when the PDF is downloaded "Send To…Download A Copy" and saved locally (e.g. harddrive) and the PDF Properties are viewed the original PDF properties and values are shown, not those assigned and modified in SharePoint.

Example PDF property "ExportControlled2" = "NO", copied into SharePoint library document property "Export Control" when PDF is added to library. User updates "Export Control" = "YES" in SharePoint. User saves copy of file to local harddive, document properties show "ExportControlled2" = "NO".

Is there any way to update PDF Properties (that stay with PDF document when downloaded from SharePoint) from within SharePoint? Lots of examples to update PDF properties of file outside of Sharepoint but not when file is held within SharePoint content database.

推荐答案

您可以添加项目更新事件接收器,以使用SharePoint中的字段值更新PDF元数据.

关于如何使用C#更新PDF元数据:

http://stackoverflow.com /questions/2761646/read-modify-pdf-metadata-using-itextsharp

最好的问候

维多利亚


这篇关于在SharePoint 2010中更新PDF属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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