我可以使用 fdf 文件对文件进行数字签名吗

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

我收到了使用 .net 使用 fdf 文件签署 pdf 文件的请求,但我找不到任何有关如何开始或即使可能的信息。

据我了解,fdf 文件,它只是值的集合而不是证书 就像这里也解释的https://docs.appligent.com/fdfmerge/fdfmerge-form-data-format/

FDF 文件是一个纯文本文件,其中包含表单字段及其值的列表。尽管我们将向您展示如何手动创建文件,但大多数情况下 FDF 文件是由软件生成的。这些是创建 FDF 文件的一些更常见的方法:

使用 Adobe Acrobat 将表单数据直接导出到文件。

我可以使用 pfx 文件来签署 pdf,但我从未听说过 fdf 文件

我需要有关此主题的一些帮助

.net security itext pdf-generation digital-signature
1个回答
0
投票

这里是 PDF 签名字段。

您可以在此处复制文件

%PDF-1.2
1 0 obj <</Type/Catalog/Pages 2 0 R/AcroForm 3 0 R>> endobj
2 0 obj <</Type/Pages/Count 1/Kids[3 0 R]>> endobj
3 0 obj <</Type/Page/Parent 2 0 R/MediaBox[0 0 596 842]/Annots[4 0 R]/Contents 7 0 R
/Resources<</Font<</F1<</BaseFont/Helvetica/Encoding/WinAnsiEncoding/Name/F1/Subtype/Type1/Type/Font>>>>>>>> endobj
5 0 obj <</Fields[4 0 R]/SigFlags 1>> endobj
4 0 obj <</AP<</N 6 0 R>>/F 4/FT/Sig/MK<<>>/P 3 0 R/Rect[106 801 256 833]/Subtype/Widget/T(Signature1)/Type/Annot>> endobj

%       Here is the space for the digital signature field
6 0 obj <</BBox[0 0 150 32]/Length 0/Resources<<>>/Subtype/Form/Type/XObject>>
stream
endstream
endobj

%      Here are the Page contents just a line and text as graphics around the signature field
7 0 obj <</Length 107>>
stream
q 1 J 1 w 50 800 m 250 800 l .5 .5 .5 RG S
0 0 1 rg BT /F1 12 Tf 1 0 0 1 50 802 Tm (Signature) Tj ET Q
endstream
endobj

xref
trailer <</Root 1 0 R>>
%%EOF

这是 Squiggle 先生进行数字签名所需的 FDF(表单数据文件)。

%FDF-1.4
%âãÏÓ
1 0 obj
<<
/FDF << /F (unsignedproforma.pdf)
/Fields [<</T (Signature1)>>]
/UF (unsignedproforma.pdf) >>
/Type /Catalog
>>
endobj
trailer
<< /Root 1 0 R >>
%%EOF

Squiggle 先生将 FDF 发送到 Tracker PDFXedit(或 Acrobat)等 FDF 应用程序,在其中加载激活字段的 PDF,以便他们可以添加带有远程添加时间戳的个人数字签名。手动保存到新文件时,已添加签名以供其他阅读器使用。

© www.soinside.com 2019 - 2024. All rights reserved.