首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >来自Kofax Capture Text Export Connector的PDF加密

来自Kofax Capture Text Export Connector的PDF加密
EN

Stack Overflow用户
提问于 2020-03-13 06:14:44
回答 1查看 68关注 0票数 0

我正在尝试加密pdf文件,这些文件将被kofax capture处理后导出。浏览文档时,我发现了以下代码:

在ACConfig.xml中添加以下标记,以防止PDF Generator生成密码为空的加密PDF文件。(635584,Kofax 10.2.0.3中引入的标签)

代码语言:javascript
复制
 <PDFExport Encryption="1" Password="kofax">
 <Profile Name="abc" Encryption="0"/>
 <Profile Name="def" Encryption="1" Password="kofax123"/>
 </PDFExport>

对于"abc“配置文件,加密将被关闭。对于"def“配置文件,将使用密码kofax123打开加密。对于其他配置文件,将使用密码kofax打开加密。注意:为PDFExport标记中的加密和密码属性定义的值将应用于除被配置文件标记覆盖的配置文件之外的所有配置文件。此外,加密和密码属性的默认值为"0“和空。

不确定代码应该在releaseScript还是acconfig文件中。我非常感谢您的帮助,为我指明了定制文本导出连接器的正确方向。我正在使用Capture 10.2

EN

回答 1

Stack Overflow用户

发布于 2020-03-16 03:26:10

您引用的xml代码段应该添加到ACConfig.xml文件中。为了清楚起见,下面是10.2.0.3发行说明中提及此功能的全文(您的问题中有部分内容)。您可以看到,PDFExport标记被添加到ACConfig标记中,该标记是ACConfig.xml中的顶级标记。

代码语言:javascript
复制
635584 - Creating a PDF with version 1.6/1.7 generates a protected file
 with a blank password.
 Add the tag <PDFExport> to ACConfig.xml: 
 Example:
 <ACConfig>
    ...
    <PDFExport Encryption="1" Password="kofax" >
        <Profile Name="abc" Encryption="0" />
        <Profile Name="def" Encryption="1" Password="kofax123" />
    </PDFExport>
    ...
 </ACConfig>
 For the "abc" profile, the encryption will be turned off.
 For the "def" profile, the encryption will be turned on with the password of "kofax123".
 For other profiles, the encryption will be turned on with the password of "kofax".

 Note: 
 - The values defined for the Encryption and Password attributes in PDFExport tag will be 
       applied to all profiles except the ones overriden by the Profile tag.
 - The default value of Encryption and Password attributes are "0" and empty.
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60662513

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档