Is it possible to create an invisible XFA form?

I want to get a PDF with XFA data, but I don't want the XFA data to be visible when viewing the PDF, however I want it to be accessible through the following code:

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

      

How can i do this?

thank

+3


source to share


1 answer


Obviously what I asked is, perhaps according to the XML Forms Architecture Specification (XFA) version 3.3. This can be done using XFAF. The section "Relationship between XFA and PDF" on page 20 says:



Overlapping functionality exists between XFA and PDF. However, the two grammars serve different purposes. XFA has a more abstract form than PDF. XFA focuses on the logic of form, while PDF concentrates on appearance. However, you can combine the two. When combined, the result is a form in which each XFA form page overlays a PDF background. This architecture is sometimes referred to as XFAF (XFA Foreground).

+3


source







All Articles