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

> 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 ;(

There's a field-level property, "valueAsString" that will give you the
results you want.

I'd imagine it will let you preserve your integers in the format you want so
long as you keep treating them like strings instead of numbers.

NOTE:  This property is only available in acrobat 5 and greater.  4.0 is out
of luck (and it's a nightmare getting JS to work across that many viewers
anyway).

--Mark Storer
  Software Engineer
  Cardiff Software
#include <disclaimer>
typdef std::disclaimer<Cardiff> Discard;

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

Reply via email to