gpt4 book ai didi

pdf - 是否可以创建不可见的 XFA 表单?

转载 作者:行者123 更新时间:2023-12-01 15:19:43 24 4
gpt4 key购买 nike

我想创建一个包含 XFA 数据的 PDF,但我不希望在查看 PDF 时看到 XFA 数据,但是,我希望可以通过以下代码访问它:

ByteArrayOutputStream baos = new ByteArrayOutputStream();       
PdfReader reader = new PdfReader(src);
PdfStamper stamper = new PdfStamper(reader, baos);
AcroFields form = stamper.getAcroFields();
XfaForm xfa = form.getXfa();

我该怎么做?

谢谢

最佳答案

显然,根据 XML 表单架构 (XFA) 规范版本 3.3,我的要求是可行的。它可以使用 XFAF 来完成。在第 20 页的 'The Relationship between XFA and PDF' 部分下,它说:

There is overlapping functionality between XFA and PDF. However the two grammars serve different purposes. XFA has a more abstract view of a form than PDF. XFA concentrates on the logic of a form whereas PDF concentrates on the appearance. However it is possible to combine the two. When the two are combined the result is a form in which each page of the XFA form overlays a PDF background. This architecture is sometimes referred to as XFAF (XFA Foreground).

关于pdf - 是否可以创建不可见的 XFA 表单?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27484913/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com