How to embed PDF file into a XFDF file
Copy link to clipboard
Copied
Hey Guys,
Is it possible to embed PDF (Demo.pdf) into a xfdf file (encode as base64), and then refers to the embedded file as the template for the current XFDF file?
Example XFDF file:
<?xml version="1.0" encoding="UTF-8"?> <xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
<f href="\\xxxxx\xxxxx\tmp\Demo.pdf" />
<fields>
<field name="Text1"><value>Testing sample</value></field>
</fields>
</xfdf>
Since the tag <document><chunk> can be used to achieve the target for xdp format, I wonder is there any way to do it for XFDF format? Or do you have any detailed introduction on the <f> tag for xfdf format?
Any suggestion is appreciated.
Regards,
Zach
Copy link to clipboard
Copied
After dig into it, I think xfdf format may not support the feature. However, fdf should has the capacity to do the task according to the "Portable Document Format" document. In the Forms Data Format (FDF) section of the documents (Page 6), it claims the following:
FDF typically encapsulates information such as X.509 certificates, request for certificates, directory setting, ,timestamps server settings, and embedded PDF files for network transmission.
https://joelaprevost.com/wp-content/uploads/2016/02/file.pdf
Unfortunately, there is no details in the document mentioned how PDF file should be embed into a FDF file. Any documents or suggestions will be much appreciated.

