Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
Bruce_Hensley@adobeforums.com #1
preserve leading zeros in alphanumeric values from doc.info
[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!
Bruce_Hensley@adobeforums.com Guest
-
Leading Zeros not being read from Excel Query
We are having an odd problem when trying to read in a query from Excel. What we are trying to do: We have a page where users will upload an Excel... -
Disappering leading zeros
Have a problem that has me swinging. I have a MS Access d/b that contains a zip code directory. Updates are done via a web-based ColdFusion form.... -
CSV file - Leading Zeros
Is there a way to write a CSV file so that excel wont drop the leading zero's from fields? I could use spreadsheet::writeexcel or OLE but that's... -
Insert leading zeros
I have a string of digits that looks like something like these: 0025, 1234, 0001, 1003, and so on. They are all 4 digits in length. Then when I... -
CSV for Excel - Problem with Leading Zeros
Can we consider change the string to: ' 0000563' ? Luke (This posting is provided "AS IS", with no warranties, and confers no rights.)



Reply With Quote

