来自Kofax Capture Text Export连接器的PDF加密

问题描述 投票:0回答:1

我正在尝试加密将由Kofax Capture处理后导出的pdf文件。在文档中,我找到了以下代码:

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

 <PDFExport Encryption="1" Password="kofax">
 <Profile Name="abc" Encryption="0"/>
 <Profile Name="def" Encryption="1" Password="kofax123"/>
 </PDFExport>

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

不确定代码是否应在releaseScript或acconfig文件上。非常感谢您的帮助,为我提供了正确的方向以自定义文本导出连接器。我正在使用Capture 10.2

encryption export connector kofax
1个回答
0
投票

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

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.
© www.soinside.com 2019 - 2024. All rights reserved.