Add a field to the last page of a document file only

Hello

Currently, I have a script which will add signature fields and the text on the first page of a document.

The script is required to specify the "last page" of the document and not the page number, because each file can vary depending on the number of pages.

The script is running in the batch on several files that are not open (usually 50 at a time).

If someone can advise please how to change the script, I'll be very grateful.

Create the field dynamically Date for signature of the employee field


var f = this.addField ("Todaydate", "text", 0,
[60, 54, 135, 75]) ;

f.userName = "today's Date";
f.Value = 'auto update';
f.ReadOnly = true;
f.fillColor = color.ltGray;

Create the signature dynamically for employee field


var f = this.addField ("mySignature", "signature", 0,
[120, 85, 330, 105]) ;

f.setAction ("OnFocus", "var f = this.getField('Todaydate'); ("f.Value = util.printd (a/mm/yyyy", new Date() ");") ;

Change the third parameter of this.addField from 0 to this.numPages - 1

Tags: Acrobat

Similar Questions

  • How can I get a standard text block can be found on the last page of my documents?

    How can I get a standard text block can be found on the last page of my documents without having to type in all the time? I have a mission statement with a line to the signature of the customer who I want on the last page of my bills and now I have to type every time or cut and paste a previous invoice. I already have a Master Page that contains customer information and my company at the top of each page, and I use the data merge to fill each page with the ordered items and photos etc. I would just have this mandate type block automatically appear on the last page after the last element in the data merge.

    Thank you all in advance for your help.

    Create a new master based on the one you have now and add the block, then change the master applied to the last page.

  • You can delete the last page of a document with a script?

    Hello, I built a script week last to help me remove the formatting and some to reapply the formatting on a large number of files. I am still learning a lot about how to create scripts and what are the commmands but I almost doen with everything I put in it. One of the last things I want to add is to delete the last page of the Indesign file if it has content or not. Is this possible? Can someone point me in the right direction? Thank you

    Something like this:

    if (app.activeDocument.pages.length > 1)
         app.activeDocument.pages[-1].remove();
    

    First check to see if the document contains multiple pages and does, delete the last page.

    Hope that helps.

    --

    Marijan (tomaxxi)

    http://tomaxxi.com

  • Switch the fields for the last page

    Hi all
    I need to print a Field1 on all pages except the last page. On the last page, this Field1 should be replaced by an other Field2. These fields must be printed in the footer, so I couldn't use the last page and section only menthod. In addition, its an extra page printing. If the output has only one page, Field2 must be printed not Field1.

    I also tried the solution in the following link, but without success.

    How to display a field only on the last page which is page

    and I tried to use what follows, but does not more.

    < xdofo:inline - total
    display-condition = "exceptlast."
    name = 'field1' >
    < / xdofo:inline - total >
    < xdofo:inline - total
    display-condition = "last".
    name = 'Field2' >
    < / xdofo:inline - total >

    Any help is greatly appreciated.

    Thank you.

    Hello

    I could be wrong.

    We can use

    At the same start Dungeon RTF.
         

    so keep, (keep this loop if you want to add fields, otherwise keep before the loop)
         

    at the end of the RTF.

    After the statements above at the end of the RTF, set under template
         
         (keep this in the form field)
         (keep this in the form field)
         

    then call this model in the footer

  • Cannot select items Master Page - but only on the last Page of my Document

    I'm working on a magazine layout, which has the page number and month located downstairs outside the corner of each page (pretty standard). Of course, I have this set up on the master spread. So far whenever I have to remove these items on a page of my document I was able to Ctrl + Shift + click and delete. But for some reason any on the last page (on the back) I can't click little matter what I try. I'm still able to select on other pages, and I have confirmed that the layers are not locked. Any ideas why this is only a specific page that gives me any questions?

    (Just to be sure, that I save my document, close and restart the program.) The problem persisted unfortunately.)

    and I confirmed that the layers are not locked.

    Check that the master page element is not set to prevent substitute also. Go to the main spread and select the folio of problem, choose Pages > Master Pages... and make sure that allow point Master overrides on selection is checked. MP articles that are protected do not have the framework dotted on the pages when show the contours of the block is selected.

    And make sure that you have not inadvertently duplicated the folio on the page or master page.

  • Apply the master page on the last page

    Just a question, how to apply my Page Master 'last Page' on the last page of my Document. Thank you

    app.activeDocument.pages [-1] .appliedMaster = app.activeDocument.masterSpreads.itemByName("Last-Page");

  • Print the last page only

    Hello

    I'm looking for a script that will print on the last page of a document. My form has a repeating subform and depending on how I setup, the last instance (which has always lands on the last full page) is the only one I need the user who opens the form to be able to print with a single click of the "print" key.  This will help prevent them form having to enter the page to print in the print window.

    Thanks in advance.

    Hello

    The print method has eight parameters, that you can change to affect printing. The second parameter is the start page and the third parameter is the finish/last page to print.

    All you need to do is replace the second parameter '0', with the third default (xfa.host.numPages - 1) m:System.NET.SocketAddress.ToString ().

    This should work:

    xfa.host.print(1, (xfa.host.numPages -1).toString(), (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
    

    Hope that helps,

    Niall

  • When I send docs to singnature, I also need to send the docs of signature in the same email... the 'signature' field shows at the top of the last page, but I need to show at the bottom of the second?

    I'm new to the Adobe service and I have 5 documents I send to every email.  Two of the docs require signatures, but the others although important, don't require signature.  I want to send all documents in an email, but it seems that the platform sees all 5 documents into a single document requiring a signature that ends by appearing at the top of the last page (ends up being a document that does not require a signature).  Everything works well except the signature field that the platform assigns to the document.  Is it possible to change this?  Have the final signature field appears at the bottom of the second page of the document?

    Hello

    In this scenario, you can manually place the signature fields in the first two pages.

    When you do not place the signature manually fields, system automatically places a signature filed on the last page of the document.

    Please make sure that you place the signature field manually, so that the system won't automatically place the field.

    -Go to the send page

    -Select overview, positioning the signatures or add form fields

    -Click next to add the signature fields

    Kind regards

    Mohamed

  • How to insert a page in a section, but NOT like the last page?

    How to insert a page in a section, but NOT like the last page?

    and how to integrate fonts in a pdf export?

    How does choose a 5.5 x 8.5 book format?

    Adding pages to get to the end.  You can, however, keep typing to the point you need to add a page. Once the page seems to make corrections.

  • How to use the last page in a book

    Hi, threw on my first book.

    but the last page has the 'Blurb' Logo and custom allow me to drag a photo or a text on this subject...

    tried to change to a different presentation, but that only adds a new page layout before the last page...

    seems strange that I can't do what I want with him... for there's a Blurb thing...

    Best regards, Sandy

    Hi Sandy,

    In the book Module, if you go into the settings of the book on the top of the right side.

    The Option of the book which says: Blurb, you can change it to PDF or Jpeg and then add the image to the last page.

    But once selected one of these options, you will not be able to publish their presentation from Lightroom.

    Kind regards

    Tanuj

  • InDesign doc page 2 becomes the last page in epub (ADE)

    I tried a lot of things.

    Layout > pages > insert pages > after page 1.

    In InDesign CC

    I have the text of the "Table of contents" on this new added page 2 what is the white page I inserted.

    When I export to ADE, this text of the Table is the LAST page in the ePub.

    Someone suggested that it may have to do withh how my text boxes are connected.

    I looked in the documentation and I looked in all the menus, but I am unable to find out how to solve this problem.

    Thank you.

    Thank you Naomi and Kai.  I applied the techniques you shared, but figured out something when I got stuck.

    I thought a work around which in fact gas sense teach but intuitively, I think it is should be easy to PAGEs VIRGINS of INSERT in the middle of an .indd and easily put ON these new images to those who are above and below using the IN PORT and OUT PORT.

    How I solved this problem.

    I have NOT add new pages.

    I COPIED the text - "My Table of contents" exactly under the title of my book.

    Because the copied text is placed in a already existing and threaded a framework

    This added text created a

    Overset TEXT error in preflight

    I know how to fix because of very useful adobe users.

  • Can I print the last page of a PDF document using the command line?

    Hello

    I'm in a situation where I constantly have to deal with several documents in PDF format, and I need to print the last page in each of them and ONLY the last page. The total number of pages vary for each file, so the page to the last page number will also vary.

    I really prefer to not do it manually, to open each file in the visible window of Adobe Reader, and then print.

    Question:

    Is it possible with Adobe Reader (perhaps with the help of another Adobe product) to print only the last page of a PDF document using some sort of command line without having to open the PDF file in the Adobe Reader window visible?

    I use Windows.

    Thanks in advance,

    Kind regards

    Emil

    Hey, I've just set up a measure of inquiry by accident. That's really bad thinking. Here's what to do.

    When the "Create new Action" checkbox is shown...

    Choose Start with: a file open in Acrobat

    DO NOT CLICK on add a step statement

    Open tools more

    Click once on run JavaScript

    A blue line to run JavaScript must appear on the right side.

    Click on the small box under Options inside the blue line

    A JavaScript editor should appear; Enter the program, and then click Ok

    To save in: select do not save the changes.

    Click Save

    Give a name; you don't need to enter a description (although it won't hurt if you do).

  • required solution: how to put some text on account of the position of the last page in the form?

    Hi friends,
    I need your suggestions of urgency the problem described below. Long story somehow. Appreciate your interest & suggestions.
    ==============Clip==============
    I have a requirement of form design some text content to appear only on a fixed position of the last page.
    The form will be multi-page.

    Here's the way I tried

    (1) on the master page:
    Add text object lblEnding (w = 176mm, h = 45mm)
    Wrap lblEnding in subform (frmEnding)
    Do frmEnding on on-call position (x = 20 mm, y = 200 mm, l = 176 mm);


    (2) on bodypage:
    Add text object lblBlank; (without border & transparent). He used to occuping the area of the page to the bodypage flow
    Wrap lblBlank in the frmBlank subform, sank, from top to bottom.

    (3) Note: The last mandatory content of the form template is a subform, called frmInfoBlock.

    OK, so for my part script here.
    ---------------------------------------------------
    (1) on the master page:

    For configuration frmEnding only appear on the last page
    To control the presence of frmEnding based on pageCount()
    use of scripts on frmEnding
    //
    FormDeliveryNoteNotification.. mstMasterPg1.frmEnding::ready:layout #pageSet [0] - (JavaScript, client)
    If (xfa.layout.page (this)! = xfa.layout.pageCount ()) this.presence = "hidden";

    (2) on Bodypage:
    To control the presence of frmBlank based on its position (property 'y')
    use of scripts on frmBlank
    //
    FormDeliveryNoteNotification.bdyPage1.frmBlank::ready:form - (JavaScript, client)
    var y1 = this.y;
    var y2 = frmInfoBlock.y;
    H2 var = frmInfoBlock.h;

    var yNum1 = parseInt (y1);
    var hNum2 = parseInt (h2);
    var yNum2 = parseInt (y2);

    This.Presence = "visible";
    If (yNum1 < = "200")
    {
    If (yNum2 + hNum2 < "200")
    This.Presence = 'hidden ';
    }

    ---------------------------------------------------

    Later, I found that it worked as expected.
    With regard to the property 'y '.
    > > > >
    Specifies the y of the anchor point of a container compared to the upper left corner of the parent
    container of when placed with square layout.
    Container whose content has flowed do not use contact information.
    > > > >

    As subforms Inc. frmBlank & frmInfoBlock that all are flowed, variable above scripts, always have value as below (according to my result of debugging)
    Y1 = 0 in
    Y2 = 0 in
    H2 = 0 in

    As a result, yNum1 Inc., yNum2, hNum2 are always 0.

    As a result:

    frmBlank will be always hidden

    If only 1 page, bodypage County can be superimposed with the page master frmEnding.

    ==============Clap==============
    Hope I described things clearly. : PEI

    Can you give your suggestions as another suggestion.

    -VickyX

    Hi Vicky,

    See if this helps you: https://acrobat.com/#d=Qjw-* ATV-gNdWjP * rlx2HA

    Find the line that serves as a marker for coordinates. The script is located in the spacer subform.

    Good luck

    Niall

  • The default home page is not loaded at startup. The last page visited is in place. Default V32.0.3 in the options is set correctly.

    Tools-> Options-> general-> Firefox starts-> show my homepage--> homepage--> http://www.bing.com

    It comes down to the last page visited.

    You to include information about your system, it shows that you have a user.js file. This is a file of optional parameters with Firefox checks when it starts and is used to override the settings from your previous session. Sometimes, the command to restore the previous session is in this file. You can it track down and remove it by following the steps described in this article: How to fix preferences that will not save.

    A little luck?

  • When I close Firefox and then open it again, the last page I had opened remains open when my new page loading. Didn't help not clear my history and cookies.

    When I close Firefox, windows that were open when I closed Firefox are still open, when I click on a link to open a new window. I cleared my history and cookies and even uninstalled and reinstalled Firefox but that did not work. I had this problem since upgrading to version 29. This isn't the only problem I have had with version 29. Anyone else had problems with version 29?

    I ended up going in the settings to erase history and define it for clear history when Firefox closes and you select to erase history and kitchen and browsing history, the closing of Firefox. Now the links work very well and the last page I was watching until I closed Firefox is gone when it opens again. Problem solved!

Maybe you are looking for

  • Auto Apple Watch unlock on Sierra

    I still can't get this feature to work despite try some suggestions.  I have nothing to disable authentication 2 factor and turning slot, to power the watch reset.

  • Cannot access the page customize or see the menu button!

    I had two modules different twitter (Twitbin and App Twitter). The first was one that I enabled again, because I wanted to see if it has improved for some time. After restarting my browser, however, most of my toolbars have been on different paramete

  • Help with measurement registration

    Hi all I try seizes a sourcemeter Keithely voltage/current/resistance measures and their trace on the cards. There is also the possibility to record the measurements by pressing 'save', which then encourage the user a path name. "After the" record "b

  • BlackBerry Q5 problem share photos through BBM Q5 surveys

    Hello I bought the BlackBerry Q5 2 weeks. So far, it works well for all applications. But, three days behind the weird things suddenly came when I shared some pictures to one of my BBMessenger contact (say A). Whenever I have send a photo... it does

  • ACS network access Restriction does not. He denies it, but allow.

    I have a problem with the restrictions of access to the network on the Group of ACS configuration. I configured the NAR in a group field and set it to deny access besed on client AAA, a wireless LAN controller. But users of this group is still able t