Expand my Community achievements bar.

Adding version number to XFA form

Avatar

Level 2

Hi all,

I would like to store a version number of my XFA PDF within the PDF. With static PDFs I can use a custom property from Acrobat to set this value and change it accordingly with each version. With XFA forms since this option is disabled, does anyone have any ideas on how I can achieve this?

Help appreciated.

Thanks.

2 Replies

Avatar

Level 5
Hi Belle,

"xfa.host.version"
you can get the version of PDF and assign it to any field.
versionValue.rawValue = xfa.host.version;
Vjay

Avatar

Level 8

That will return the version of the host application (Reader/Acrobat) and it is readonly. If you are versioning your form at design time (Designer) as well as run time (Acrobat) create a version property for the Info object: this.info.version="v1" (Acrobat context) or event.target.info.version="v1" (xfa context).

The good thing about using the Info object is the property exists both in the pdf architecture as well as the xfa xmpmeta data object model.

You can even create it in Designer under File>Form Properties>Info and create a custom property 'version' with any value you chose.

Kyle