Asked By
msaleem7982
0 points
N/A
Posted on - 11/13/2012
I have created a PDF file with active form fields for typing in information and I want it to assign auto numbering to it.
For example, if you start with 0001, it would advance the number, that is, for this case, 0002 every time you open the file.
Is there any option in Adobe Acrobat for such thing?
Any help would be much appreciated.
Sequential numbering in adobe form
For sequential numbering of your pdf pages please find out “Numbering and section option” from the fly-out of the pages pallet. There you will be able to set your automatic page number. For this go to Type then Insert Special Character then Marker and finally Current Page Number on all master pages by the text box with an automatic page number character.
Sequential numbering in adobe form
Hi,
You can use Python programming language code that you have to paste into the pre-logic script code section of the field calculator that the field will be equal to the defined code function. This enables you to generate numbers automatically in a sequence. To be able to do this,
-
First you need to create a new short integer field.
-
Next change to set the parser to Python code input.
-
Next click on the check box that allows you to show code block.
-
In the code block, paste the code below into the pre-logic script code:
rec=0
def autoIncrement():
global rec
pStart = 1 #adjust start value, if req'd
pInterval = 1 #adjust interval value, if req'd
if (rec == 0):
rec = pStart
else:
rec = rec + pInterval
return rec
In the field name set the following into the smaller box that's below the pre-logic script code:,
Field_Name:
autoIncrement()
Click on OK to set the code into run time process.
-
Alternatively i can show you another code that you can use in the same process above which will give you the same result ;
rec=0
def autoIncrement():
global rec
pStart = 1
pInterval = 1
if (rec == 0):
rec = pStart
else:
rec += pInterval
return rec
Hope that helps.