Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Sequential numbering across pages in certain position of page

Community Beginner ,
Jan 22, 2020 Jan 22, 2020

Hi,

I want to insert sequential numbering in the same certain position defined by me (for example with a text form field) across pages of a pdf.

I do not have high level programming skills, so any support you could give me I would really appreciate it.

Thank you.

TOPICS
How to , PDF forms
4.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Jan 23, 2020 Jan 23, 2020

You can use "Add Headers and Footers" to place the page number literally anywhere on the page. The page number position is not "already defined". Not only are there top/bottom left/right positions, there are margin controls that allow the page number to be pushed to the middle of the page.  This is by far your best and easiest option.  

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2020 Jan 22, 2020

Hi,

 

use insert headers and footers from the toolbar to position and automatic page numbering.

 

See guidance here:https://helpx.adobe.com/acrobat/using/add-headers-footers-pdfs.html 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 22, 2020 Jan 22, 2020

Hi, 

 

Thank you for your answer.

Headers and footers won´t work for me since it has the position of the page number already defined.

I need to define the position of where the page number should go (outside of header or footer area).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2020 Jan 22, 2020

Here are two other suggestions:

 

https://helpx.adobe.com/acrobat/using/manipulating-deleting-renumbering-pdf-pages.html#renumber_page... 

 

Also, have you tried using Bates Numbering or the file stamper action tool?

 

There is a file name stamper tool here: https://acrobatusers.com/actions-exchange/  that you can also try.

 

Are you actually looking for a javascript?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 22, 2020 Jan 22, 2020

Yes I tried bates numbering but it´s the same, the position of the number is limited to certain parts of header or footer. My idea of what I want to do is the following:

1. I insert a text form field (Text1) in X position of page number 3. Lest say that I put the form field in the middle/center of the page.

2.  I set the value of Text1 to "1".

2. Then I want to duplicate Text1 across pages, but in page 4 should have "2" as value, in page 5 should have "3" as value, etc.

 

I am not looking for Java script or something in particular, whatever that is the solution would really help me.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2020 Jan 22, 2020

It seems that javascript isbthe way to go in your case.

 

You can add something like this as the custom calculation script of fields Text4  and Tex5:

 

 

var1 = this.getField("Text1").value;
if (var1=="") event.value ="";
else event.value = v1+1;


// do the same  for Text5 field
var v1 = this.getField("Text1").value;
if (var1=="") event.value ="";
else event.value = v1+2;

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 22, 2020 Jan 22, 2020

Thank you. 

This helps me.

Is there a way in which I add the script to "Text1" and when I duplicate it across pages, the sequence is automatically established without having to enter the script to each text field? The documents have around 100 pages so 100 text fields.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 23, 2020 Jan 23, 2020

You're welcome.  And yes there are ways of doing that but is a bit complicated if you are learning (like myself) and make it a DIY project.

 

It may involve more than a few steps process:

 

(1)  To add a script to the primary field that will have the ability to update the number value  automatically in relation to the page that it will be copied to.  

 

(2) You may rename all of the desired text fields programatically using a simple script and running it form the javascript console. You may also purchase a plugin to accomplish the bulk renaming from here: 

https://try67.blogspot.com/search/label/Acrobat   

 

(3) The issue you may run into is adding a script that will update the number value in relation  to the page  where that field is copied as long as all the fields have a different name. 

 

If your document is depending on a timeline, the quickest way to  achieve all of this is to create a simple custom calculation script using event.target.value OR  this.numPages  in your primary textfield.

 

Then use "Duplicate Accross Pages", and last, then rename the fields.

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Jan 23, 2020 Jan 23, 2020

If you are able to use InDesign, there is an alternate method. 

1. Create a single page InDesign file the same size as your PDF.

2. Go to Window> Utilities> Scripts> Samples> Applescript (or Javascript is you are using a PC)> PlaceMultipagePDF.applescript> Run (fly out menu, top right).

3. Now you have an InDesign file with a page for each page of your PDF. In InDesign add a page number to the master page, position and format it as desired. With the page number selected, go to Type> Insert Special Character> Markers> Current page number.

4. The page numbers will appear on all pages. In order to advance the page numbers, select page 3 and from the pages panel fly-out menu, go to Numbering & Section options> Start page numbering at 1.

5. Now all page numbers are correct, except page 1 & 2, to delete these page numbers, select these pages, overide the master page, then select and delete the page numbers.

6. Export to a new PDF.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 23, 2020 Jan 23, 2020

Thank you for your answer.

I found the way to do it with header and footer, based on @Thom_parker answer.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 23, 2020 Jan 23, 2020
LATEST

Great! , you're welcome

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 23, 2020 Jan 23, 2020

Thank you for your answer, I found the way to do it with header and footer.

Thank you for your time.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 23, 2020 Jan 23, 2020

You can use "Add Headers and Footers" to place the page number literally anywhere on the page. The page number position is not "already defined". Not only are there top/bottom left/right positions, there are margin controls that allow the page number to be pushed to the middle of the page.  This is by far your best and easiest option.  

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines