Adding page numbering through a script.

Hello forum members,
I am having a hard time to add page numbers on actual pdf pages.
Here is what I have:
- Adobe Acrobat Prof. 7.0 and Win XP.
- ca. 200 PDF files with pages that should be continuously numbered without putting them into one big pdf-file. Instead, the pdf files should stay individual files even after numbering.
Here is what I can do:
I wrote a javascript (in the batch section) that numbers all the thumbnails in the files. It works fine. But I cannot find the right command to add the page numbers on the individual pdf-"pages". Can you pls. point me in the direction I have to look for? Do I have to add a watermark at the position I want the numbering to appear or do I miss something obvious? Thanks in advance.
Greetings,
dirk

Hello forum members,
thank you very much for your replies, thanks to your help it works now!
I just had to change one more property:
myField.readonly = true;
which makes the field not user selectable. (Just for other people, who may look for a solution to the same problem.)
Many regards and have a nice day!
dirk
I post the complete solution here:
/* Script to number your pages */
this.setPageLabels(0, ["D", "Page-", global.my_count]);
var name;
var page;
var myField;
var type = "text";
var location = [272, 40, 310, 20];
for ( var i = 0; i < this.numPages; i++ ) {
name = "Page " + i;
page = i;
myField = this.addField( name, type, page, location );
myField.delay = true; // delay updating in JavaScript
myField.alignment = "center";
myField.borderStyle = border.s;
myField.textSize = 8; // auto sized
myField.fillColor = color.transparent;
myField.strokeColor = color.transparent;
myField.textColor = color.black;
myField.textFont = font.Times;
myField.value = global.my_count + i; // page number adjustment
myField.readonly = true;
myField.delay = false; // restore updating
global.my_count = global.my_count + numPages;

Similar Messages

  • In iPhoto '11 I cannot change the book settings. For example, adding page numbers. There is no "option" button as is suggested by the help item.

    In iPhoto '11 I cannot change the book settings. For example, adding page numbers. There is no "option" button as is suggested by the help item. How can I change to book settings?

    The "options" button should appear at the bottom of the iPhoto window, when you view your book, then the Book Settings Button should be available and you can activate page numbers.
    But remember, that the settings available will depend on the Book Theme you selected. The above shows the settings for one of the "Travel" themes. In a Picture Book Theme, e.g. you cannot add page numbers.
    What theme and book size are you using?
    Regards
    Léonie

  • Adding Page Numbers

    How do I add page numbers to my C4780.  I have looked through all the help and can't seem to find it.  
    Thanks
    This question was solved.
    View Solution.

    Hi
    The page number should be added to the document which you are printing and not to the printer settings.
    if you printing from word then you have to have the page number added in word.
    For Word 2007  and 2010
    Open the word document which you want to printer
    Go to Insert tab
    Look for Page number number header and footer option and there you can select the page number.
    If you are using any other application please get back with the details .
    regards
    Mugu
    ---- If my answer was helpful please click the "Kudos" star.
    If your problem is solved please click the "Accept as Solution" button ---->
    Though I work for HP the post are of my own

  • Adding page numbers to a numbers sheet?

    the subject says it all....
    i am trying to add page numbers to a sheet that im working on and am stuck....
    wish there was a "numbers for dummies"....
    ad

    jerry thanks again for the replies....
    after trying more things....
    i figured out that the footer hight was too small.
    it was set at .25 and i changed it to .5 and it magically showed up....
    thanks aging for your replies....
    ad

  • Adding page numbers to printout

    Hi,
    I have a document that i want to print out, how would i add extra information to each page printed out? For example, the page number on each printout... as well as any other header or footers (date, document name, etc)

    I didn't find anything for free. PDFPen will do what you want for $50. There was also a Windows program (A.pdf I think) that was free. If you already have a windows emulator or have a windows computer, that may work.

  • [Ai] Insert Page Numbers v 2 script

    Hola a todos, no recuerdo si subi la primera version aqui...bueno, aqui esta la nueva version. Es un script para insertar Numero de "Paginas", o sea Numero de Mesas de Trabajo en Illustrator Lingo. Ademas ahora inserta, Fecha, Hora, Nombre de Documento y ruta? (file path).
    en si inserta cualquier texto..CS4/CS5
    download
    preguntas o comentarios, dejenme saber, espero les sea util.

    Ahora si funciona, elegeante la ventana que sale.... sin embargo me resulto otro problema, despues de dar ok, se supone que la ventana deberia desaparcer para continuar trabajando?  pues a mi se me queda ahi, y no puedo hacer nada mas, me toca forzar la salida del programa... miralo en video...  Estoy en Mac 10.4.11 Ai CS4...

  • Display page numbers in Acrobat Pro 9

    I was just upgraded to Acrobat Pro 9. On my previous version of Acrobat, when viewing a multi-page PDF there was a field at the bottom of the page that said that I was on "Page X of Y". I deal with a lot of large documents, and I need to be able to track where I am, especially when I'm adding and deleting groups of pages.
    In Acrobat 9, the display that tells me what page I'm on is missing. I've searched through the menus, preferences, knowledgebase, etc, and I haven't been able to find something that will turn this on.
    I'm not talking about adding page numbers to a document. I just want to know that when I'm paging through a 300+ page PDF, I'm on the Xth page of the document.
    Is this available in version 9?

    View > Toolbars > Page Navigation

  • Acrobat 7 Page Numbering

    Hi,
    Has anyone got any solutions as to how to number the pages of a document so that the numbers print with document when printing hardcopies.
    The document sizes range from 50 - 350 pages.
    Thanks
    Hydroman

    Hi Jeff ,
    How exactly are you trying to add the page numbers?
    Do you want to add the page number for your reference ?
    By adding header and footer under the pages option in Tools pane you will get an option of adding page numbers.
    See that once and let us know how it goes.
    Regards
    Sukrit Dhingra

  • Auto page numbering

    How do I set up auto page numbering on master page in CS 5.5

    Check this for adding page numbering: http://helpx.adobe.com/indesign/using/layout-design-9.html

  • Page Numbering HELP!

    I added page numbers to my document throught the maaster page. However, the page numbers do not show on pages with a background.
    How do I make them visible? How do i make them the top layer?

    Check this workaround given by Peter Spier a while ago. But still good:
    1.Peter Spier, 
    Nov 12, 2011 9:11 AM   in reply to davidjerk
    Report
    Add second layer and put the numbers on that. Master objects are behind document page objects on the same layer, but master objects on a higher layer are in front of ALL objects on lower layers.

  • Acrobat XI page numbering issue

    After upgrading from acrobat 8.3 to acrobat XI page numbering takes 5 to 10 minutes per 80 page document. With acrobat 8.3 the same function took seconds. What can be done to improve this function. Any help would be greatly appreciated. We have tried saving the doc in the higher version first but that does not seem to matter. A doc created with the new version is fast but the old ones are very very slow. Creating all new docs is not a good option since we have 500 or so.

    Hi Jeff ,
    How exactly are you trying to add the page numbers?
    Do you want to add the page number for your reference ?
    By adding header and footer under the pages option in Tools pane you will get an option of adding page numbers.
    See that once and let us know how it goes.
    Regards
    Sukrit Dhingra

  • Change Start page numbering to Auto Page numbering in the Numbering & Section Options using script

    1.  I have many documents to add into a book. After adding the documents, all file page numbers should be continued from the previous file. Now I am doing manually for all files at all time. Numbering & Section Options => Start Page Numbering at: to Automatic Page Numbering.
    2. And also I need to add the Chapter number with the page number (Ex: 1/2, 1/3, 1/4 … , 2/2, 2/3, 2/4 …., 3/2, 3/3, 3/4 ….). Here also I am doing manually like.  Numbering & Section Options => Page Numbering => Section Prefix: 1 and Include Prefix When Numbering Pages. (The page number should start from 2).
    Note: In Every chapter opening there will be a file name called S… (Ex: Ch 1: S3391.indd, Ch 2: S3392.indd, Ch 3: S3393.indd). So after every S(S3391, S3392 …) file the next file page number should starts from 1/2, 1/3. 2/2, 2/2 ….
    Ex:
    Chapter 1          Pages
    S3391.indd     
    32457.indd       1/2  … 1/5
    32617.indd       1/6 ….. 1/9
    32217.indd       1/10 … 1/13
    Chapter 2
    S3392.indd
    42457.indd       2/2  … 2/3
    52617.indd       2/4 ….. 2/9
    33217.indd       2/10 … 2/13
    Could anyone give me an idea or script, please? At least for First one, could anyone suggest me ASAP.
    P.S: I have some more questions regarding this, I will post that after some time...
    Thanks in Advance,
    Thiru

    var openedDocs = app.documents;
    var chapterPrefix = prompt ("Enter the chapter prefix", "1/", "Prefix");
    for (var doc=0; doc<openedDocs.length; doc++){
        openedDocs[doc].sections[0].continueNumbering = true;
        openedDocs[doc].sections[0].sectionPrefix = chapterPrefix;
        openedDocs[doc].sections[0].includeSectionPrefix = true;
    alert("Done");
    Chapter 1, contains 10 files (Each file 6 pages)… (1/1, 1/2, … 1/60) – prefix 1
    Open all 10 files of one chapter and run it....
    and then for another 10 files....

  • Listing Bookmark Script Align Page Numbers to Right

    Hello,
    I have a script which will list Bookmark Names and then the Page Number after the bookmark as follows:
    Bill Smith  Page#1
    Jeffrey Jones  Page#5
    Christopher James  Page#8
    What I would like the script to achieve is to list the bookmarks and then align the Page numbers to the right side of the pdf instead of jumbled together.
    Can anyone please advise if it is possible to do this in javascript?
    The existing code is as follows:
    /* List all Bookmarks */
    /* Recursively work through bookmark tree  */
    function PrintBookmarks(bm, nLevel)
        if (nLevel != 0) { // don't print the root
            bmReport.absIndent=bmTab*(nLevel-1);
    bm.execute();
                bmReport.writeText(" "+bm.name +" Page "+(bm.doc.pageNum +1));
        if (bm.children != null)
              for (var i = 0; i < bm.children.length; i++)
                PrintBookmarks(bm.children[i], nLevel + 1);                          
    bmTab = 20;
    bmReport = new Report();
    bmReport.size = 2;
    bmReport.writeText(this.title);
    bmReport.writeText(" ");
    bmReport.size = 1.5;
    bmReport.writeText("Listing of Bookmarks");
    bmReport.writeText(" ");
    bmReport.size = 1;
    PrintBookmarks(this.bookmarkRoot, 0);
    global.bmRep = bmReport;  // make global
    global.wrtDoc = app.setInterval(
        'try {'
        +'       reportDoc = global.bmRep.open("Listing of Bookmarks");'
        +'       console.println("Executed Report.open");'
        +'       app.clearInterval(global.wrtDoc);'
        +'       delete global.wrtDoc;'
        +'       console.println("Executed App.clearInterval");'
        +'       reportDoc.info.title = "Bookmark Listings";'
        +'       reportDoc.info.Author = "List Bookmark Sequence";'
        +'} catch (e) {console.println("Waiting...: " + e);}'
        , 100);
    Any help will be much appreciated

    Thank you very much for your help.
    I have modified the script to have the bookmarks and page numbers on separate lines, however the indent does not go further than the middle of the page on the seconde line for the page numbers, no matter how much the indent is modifed  (I am also using version 8 of Adobe).
    Can you please advise how to get the indent to increment past the middle of the page to the right side of the page?
    The script which has been modified is as follows:
    /* List all Bookmarks first then Page Numbers */
    /* Recursively work through bookmark tree  */
    function PrintBookmarks(bm, nLevel)
        if (nLevel != 0) { // don't print the root
           bmReport.absIndent=bmTab*(nLevel-1);
    bm.execute();
                bmReport.writeText(" "+bm.name);
    bmReport.absIndent=(580);
    bmReport.writeText(" Page "+(bm.doc.pageNum +1));
        if (bm.children != null)
              for (var i = 0; i < bm.children.length; i++)
                PrintBookmarks(bm.children[i], nLevel + 1);                          
    bmTab = 20;
    bmReport = new Report();
    bmReport.size = 2;
    bmReport.writeText(this.title);
    bmReport.writeText(" ");
    bmReport.size = 1.5;
    bmReport.writeText("Listing of Bookmarks");
    bmReport.writeText(" ");
    bmReport.size = 1;
    PrintBookmarks(this.bookmarkRoot, 0);
    global.bmRep = bmReport;  // make global
    global.wrtDoc = app.setInterval(
        'try {'
        +'       reportDoc = global.bmRep.open("Listing of Bookmarks");'
        +'       console.println("Executed Report.open");'
        +'       app.clearInterval(global.wrtDoc);'
        +'       delete global.wrtDoc;'
        +'       console.println("Executed App.clearInterval");'
        +'       reportDoc.info.title = "Bookmark Listings";'
        +'       reportDoc.info.Author = "List Bookmark Sequence";'
        +'} catch (e) {console.println("Waiting...: " + e);}'
        , 100);

  • I downloaded the new Pages and Numbers through my app store but when I open my old documents, it still tells me my 30 day trial is over. How do I get the computer to automatically recognize the new applications?

    More information: I have a 3 year old MacBook and had been using "Microsoft for Mac" until last week when I took my MacBook in for some upgrades- including the operating system Lion. I have been unable to use the Word, Excel, etc. programs because they are not supported on the new operating system... and I already used my 30 day trial of iWork when we first purchased the computer. I decided to buy Pages and Numbers through the App Store icon. When I open the Pages and Numbers under my Applications, I can get them to work. However, when I open old documents saved on my computer, they go into the 'old' iWork messages of that my trial has expired. How do I get the computer to automatically recognize that I've purchased Pages and Numbers?

    You need to delete the trial & then reinstall from the boxed DVD or the Mac App Store. The files to delete are the iWork ’09 folder from the main HD > Applications; the iWork ’09 folder in HD > Library > Application Support & the individual iWork application plist files found in HD > Users > (your account) > Library > Preferences for each user.
    Yvan Koenig has written an AppleScript that removes the files. You can find it on his box.com account in for_iWork'09 > other_iWork'09 items > uninstall iWork '09.zip.

  • How to set page numbers in scripts

    Hi,
        i want page numbers at bottom of page,
      please tell me how to set page numbers in scripts?

    Hi,
    In footer
    use this
    &PAGE& / &SAPSCRIPT-FORMPAGES&
    &PAGE& of &SAPSCRIPT-FORMPAGES&
    reward if it helps..
    regards,
    Omkar.

Maybe you are looking for

  • How can I change the date old photos were taken when I only know the year?

    I've scanned lots of old photos and I want to change the date to reflect when they were taken. In some cases I only know the year and I don't want inaccurate information to be assigned by the software. How can I do this?

  • Cant get itunes to install properly on windows 7

    I upgraded to Windows 7 from vista. I did a new fresh install starting with a new hard drive. The install went fine until I went to install Itunes. Downloaded the latest Itunes and started the install. A good way into the install during the part of t

  • Security Manager for decryption is not set

    Hey, I am using the Livecycle virtual appliance in a test version to evaluate its features. When I decrypt an encrypted document with the java API I get an error message that says that the security manager is not set. Is the security Manager part of

  • My macbook pro 2006 model is not reading cds

    What To Do About This

  • Unable to connect to CMC but

    hi, I'm developing a sdk application for BO XI R1 to query the infostore. I have tested my application in my local machine. It works fine. But when I run the application in Client environment, i'm getting the following error (while logging in to the