[Acrobat Pro 7.0.8 Win; cross-posted from ..Scripting]

I store an alphanumeric data item in a doc.info object, and retrieve it to populate form fields in the doc and in a dynamic stamp.

This works fine unless the value only contains digits and has leading zeros. In this case, the leading zeros are removed when the value is retrieved, as if Acrobat is automatically coercing it to a numeric type.

Examining the doc.info value with the UI shows it to still contain the zeros; it only happens on retrieval.

For example,

doc.info.myitem / returned from variable populated from doc.info.myitem
--------------- ------------------
ABC0123 / ABC0123
00ABC / 00ABC
000 / 0 [not good]

I can work around the problem by adding a non-digit character when it is stored and removing it when it is retrieved, but I would prefer to store the actual, unmodified, value.

{000} / {000}

How can I guarantee it is unchanged on retrieval?

Thanks!