PDFdev is a service provided by PDFzone.com | http://www.pdfzone.com _____________________________________________________________

To 1: This is an old known problem because of the "loosely typed" property of JavaScript (which, on the other hand, makes this language so much easier to work with). There are two workarounds.

* since Acrobat 5, we have the valueAsString Field Object property, which should maintain the full format.

* You add a non-numeric character to your field value (actually, best would be to do that in the Validate event ... essentially as early in the field event processing as possible).

To 2: I am not quite sure, but I believe to remember reading that Acrobat works with 32-bit integers, which means that the highest number which can be displayed as real integer is 2^31.

Hope, this can help.


Max Wyss PRODOK Engineering Low Paper workflows, Smart documents, PDF forms CH-8906 Bonstetten, Switzerland

Fax:  +41 1 700 20 37
  or  +1 815 425 6566
e-mail:  mailto:[EMAIL PROTECTED]
http://www.prodok.com



[ Building Bridges for Information ]


______________________






Hi all, a couple of questions here:

1.- Zero loss

I have a field with the following value: "00012398847636000"

When I do
var a = this.getField("Text").value
"a" turns out to be "12398847636000"

Anybody knows a way to recover the original data, without loosing the leading
zeros? (I've tried several but ;(

2.- Highest number
Which is the highest number Acrobat can handle before converting it to:
1.234576487367456e+25 ?

Is it based on number of digits?


To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfdev.html



Reply via email to