Duplicate a Text Field on Every Page of a Document?

Today I wrote my first vb.net/adobe app.  I managed to open the pdf doc in adobe and create a named text field.  I managed to insert a java script that gets the current date when the document is open and updates the text field.  I would like to duplicate the text field on all pages of the document.  Manually, I can right click on a text field and select duplicate.  I don't see a property or method that allows me to program this.  The field property "page" appears to be read only.  any help would be appreciated.  thanks.
page
The page number or an array of page numbers of a field. If the field has only one appearance in the document, the page property returns an integer representing the 0-based page number of the page on which the field appears. If the field has multiple appearances, it returns an array of integers, each member of which is a 0-based page number of an appearance of the field. The order in which the page numbers appear in the array is determined by the order in which the individual widgets of this field were created (and is unaffected by tab-order). If an appearance of the field is on a hidden template page, page returns a value of -1 for that appearance.
TypeInteger | ArrayAccessRFieldsallExample 1Determine whether a particular field appears on one page, or more than one page.var f = this.getField("myField");
if (typeof f.page == "number")
console.println("This field only occurs once on page " + f.page);
else
console.println("This field occurs " + f.page.length + " times);

I also tried the brute force method of moving from page to page and creating a text field on each page.   I used pageNum to changes the page, but, adobe didn't seem to recognize that.  I saw the page change on the screen, but, all of the textfields were created on the first page!

Similar Messages

  • Changing font/-size of a text field on master-pages not possible? (field prop)

    Hi,
    I would like to change the font and font-size of a textfield on a master page.
    I wonder if I do anything wrong, because the font-options (size, font etc.) are simple greyed out / not avaliable, when I click on my text field.
    It seems, there is any way to customize the font-properties of a textfield (only) on master-page.
    Well I guess it would work with java script in init-event ...  but really, why the hell it should not be possible simply to use the properties/text properties?!
    Please correct me if I am wrong. Do I do anything wrong or is it really not possible to customize font of a text field on master pages?

    Hi,
    I was just about to post, that I figured it out.
    Actually, I use Livecycle Designer in SAP (transaction SFP). There seems to be a bug (one of hundrets by the way).
    If I click on a field, that does not have text-property e.g. subform, text-option menu greys out.
    Afterwards it stay this way until I click/doubleclick into a simple text (not text field). From that moment on, text/font-option menu is available again, until I click on something without text. => So pay attention and click wisely
    coming soon: "SAP meets Livecycle Designer - a (Bug)Lovestory", hardcover 124 Pages. ; )
    by the way: SAP does not sopport interactive forms higher than Reader 8.1. Its statement "8.1 is fine enough for everything you need in a SAP/Adobe Interactive Form". So beware of using XFA higher than in 8.1. sad, but true ...

  • Duplicate a text field in LC & get the Text automaticaly in the 2nd

    Hi
    I want to duplicate a text field the problem is that i want something more
    when i write in the first "Text Field" i would like that the same Text appears automaticaly in the second "Text field" 
    We can do it in Acrobat Pro but i don't know in LC
    Thanks

    If your form contains two fields, 'foo' and 'bar', there are several ways to accomplish this objective including:
    // form1.page1.subform1.foo::exit - (JavaScript, client)
    form1.page1.subform1.bar.rawValue = form1.page1.subform1.foo.rawValue;
    // form1.page1.subform1.bar::calculate - (JavaScript, client)
    this.rawValue = form1.page1.subform1.foo.rawValue;
    Purists might tend toward the calculate approach.
    Steve

  • Drop down lists populating text fields on a page different from the dropdown.

    Hello all,
    I have a form with several pages. The first page contains a number of drop down lists. These drop down lists, when an option is chosen, is to populate a text field on another page. I can get the drop down list to populate the text field when it is on the same page, but as soon as I move the text field to another page, the script doesn't work. Can anyone offer a solution? I've used javascript on change for the scripts.

    Thanks Paul,
    I have been able to solve the drop down list question, thanks to your help.
    I have another question that involves locking specific fields in a four page form which contains approximately 100 fields that need to be locked before the end user completes the remaining fields. How do I lock individual subforms so that the remaining fields remain open and editable?  The final version of the form, will have at least 200 fields in it that will also need to be locked in sections.
    I can lock all the fields using the lock all fields button, but have been unable to make it work for just part of the form.
    I've emailed the draft form.  It would be really helpful if I had one example of a locked subform on the form I'm struggling with.
    Thanks for your help.
    Nellie

  • How can I take off FINAL DRAFT written in diagonal in the middle of every pages of my document.

    How can I take off FINAL DRAFT written in diagonal in the middle of every pages of my document.

    Then ask whoever sent it to you to remove it and create a new PDF.
    There is one thing you can check first and that’s layers in the PDF. Perhaps whoever created it put that on a top layer and you can just turn it off.

  • Display a field on every page

    Hello
    I have created a layout using BI Publisher Layout editor (not an RTF template) and have an employee number field which is in a repeating group with other employee details. The report displays 1 employee per page and I need the employee number to appear on every page of the report on its own at the end of the page without other details. How can I achieve this?
    Is there a way of making a field to appear on every page in BI Publisher but not as a header or footer? Thanks

    Hi,
    Can you try by calling subtemplate as below at the top of the page.
    <?for-each@section:G_HEADERS?> <?initial-page-number:'AUTO'?>  <?template:header?>EMP_NAME<?end template?> <?template:empnum?>EMPNUM<?end template?>
    Thanks
    Debendra

  • Text Field repeating at Page Break in Interactive Adobe form in Webdynpro Java

    I have requirement in which Text field containing 'Rich Text' data has a huge data coming at runtime. It is displaying correctly without any scrollbars on a single page .Now the problem is when data exceeds to next page ,text field repeats it with first line and also adds scrollbar to text field.
    I have set text field properties like Allow Page Break,Allow multiple lines ,Height Auto fit.
    Also The Text field is in flowed Subform ,Allow page breaks checked.
    Kindly provide solution in quick time..

    Yes I have checked all the subforms Flowed. Text field is working good in Preview Pdf Option of NWDS.
    But when I generate the pdf on server, when TextField flows to next page, on next page it repeats from first line.

  • How can I add javascript text fields to Acrobat pages from Applescript please?

    I have a real need to add text fields to Acrobat document pages from Applescript. I can't access the Headers and Footers from Applescript in Acrobat XI. I can set watermarks using the following script, but cannot for the life of me work out how to add text fields. Any advice please?
    Regards
    set TempAttachmentName to "(20140717121212Z)"
    set PreserveFileName to "This is a test"
    set bypass to false
    tell application "Adobe Acrobat Pro"
      activate
      set CountOfPages to count of pages
      repeat with PageCounter from 1 to CountOfPages
      tell application "System Events" to tell process "AdobeAcrobat"
      try
      click menu item "Page..." of menu 1 of menu item "Go To" of menu 1 of menu bar item "View" of menu bar 1
      tell current application to delay 0.1
      keystroke PageCounter as text
      tell current application to delay 0.1
      keystroke return
      if not bypass then
      my ADDHeaderFooter(TempAttachmentName, PreserveFileName & " " & CountOfPages, PageCounter)
      end if
      end try
      end tell
      end repeat
    end tell
    on ADDHeaderFooter(The_String1, The_String2, currentPage)
      tell application "Adobe Acrobat Pro"
      activate
      set myDocument to document 1
      tell myDocument
      tell page currentPage
      set cbox to crop box
      set item 2 of cbox to (item 2 of cbox) + 44
      set item 4 of cbox to (item 4 of cbox) - 44
      set media box to cbox
      set crop box to cbox
      set theResult1 to my Add_WaterMarkText(The_String1, "IDAutomationHC39M", 12, 1, 1, 1, 0, 3, 10, 3, 0)
      do script theResult1
      set theResult2 to my Add_WaterMarkText(The_String2, "Times", 16, 1, 1, 1, 0, 4, 10, -6, 0)
      do script theResult2
      end tell
      end tell
      end tell
    end ADDHeaderFooter
    on Add_WaterMarkText(cText, cFont, nFontSize, nS, nE, nTA, nHA, nVA, nHV, nVV, nR)
      set Params to "cText: '" & cText & "'," & return
      set Params to Params & "cFont: '" & cFont & "'," & return
      set Params to Params & "nFontSize: '" & nFontSize & "'," & return
      if class of nS is integer then set Params to Params & "nStart: " & (nS - 1) & "," & return
      if class of nE is integer then set Params to Params & "nEnd: " & (nE - 1) & "," & return
      -- 0 = left, 1 = centre, 2 = right
      if class of nHA is integer then set Params to Params & "nHorizAlign: " & nHA & "," & return
      -- 3 = top, 4 = bottom
      if class of nVA is integer then set Params to Params & "nVertAlign: " & nVA & "," & return
      -- offset in points
      if class of nHV is integer then set Params to Params & "nHorizValue: " & nHV & "," & return
      -- offset in points
      if class of nVV is integer then set Params to Params & "nVertValue: " & nVV & "," & return
      if class of nR is integer then set Params to Params & "nRotation: " & nR & "," & return
      set javascript to "this.addWatermarkFromText({" & Params & "});"
      return javascript
    end Add_WaterMarkText

    G'day
    Unfortunately I don't have the API. My Adobe Reader installation updating to version XI failed, and subsequent attempts to fall back on the X version are blocked by the partial install of XI. Damn Adobe stuff.
    Could someone please post the relevant part of the API to give me some pointers, please.
    I ha mucked about with some information I found on the Web, and come up with the following, which fails because I can't work out how to address the current document with the variable myDoc.
    Regards, Brian
    set Params to Params & "var myDoc = this;" & return
    set TempAttachmentName to "(20140717121212Z)"
    set PreserveFileName to "This is a test"
    set bypass to false
    tell application "Adobe Acrobat Pro"
      activate
      set CountOfPages to count of pages
      repeat with PageCounter from 1 to 1 # CountOfPages
      tell application "System Events" to tell process "AdobeAcrobat"
      try
      click menu item "Page..." of menu 1 of menu item "Go To" of menu 1 of menu bar item "View" of menu bar 1
      tell current application to delay 0.1
      keystroke PageCounter as text
      tell current application to delay 0.1
      keystroke return
      if not bypass then
      my ADDHeaderFooter(TempAttachmentName, PreserveFileName & " " & CountOfPages, PageCounter)
      end if
      end try
      end tell
      end repeat
    end tell
    on ADDHeaderFooter(The_String1, The_String2, currentPage)
      tell application "Adobe Acrobat Pro"
      activate
      set myDoc to document 1
      tell myDoc
      tell page currentPage
      set cbox to crop box
      set item 2 of cbox to (item 2 of cbox) + 44
      set item 4 of cbox to (item 4 of cbox) - 44
      set media box to cbox
      set crop box to cbox
      set theResult1 to my Add_WaterMarkText(The_String1, "IDAutomationHC39M", 12, 1, 1, 1, 0, 3, 10, 3, 0, myDoc)
      do script theResult1
      set theResult2 to my Add_WaterMarkText(The_String2, "Times", 16, 1, 1, 1, 0, 4, 10, -6, 0, myDoc)
      do script theResult2
      end tell
      end tell
      end tell
    end ADDHeaderFooter
    on Add_WaterMarkText(cText, cFont, nFontSize, nS, nE, nTA, nHA, nVA, nHV, nVV, nR, myDoc2)
      #set Params to "var myDoc = app.newDoc();" & return
      set Params to ""
      set Params to Params & "var myDoc = this;" & return
      set Params to Params & "var inch = 72;" & return
      set Params to Params & "var Bbox = this.getPageBox(" & "\"Crop\"" & ");" & return
      set Params to Params & "var f = myDoc.addField(" & "\"Text1\"" & ", " & "\"" & cText & "\"" & ", 0, [72, Bbox[1]-inch, Bbox[2]-2*inch, Bbox[1]-2*inch ] );" & return
      set Params to Params & "f.strokecolor = color.black;" & return
      set Params to Params & "f.richText = true;" & return
      set javascript to Params
      return javascript
    end Add_WaterMarkText

  • Usage of attribute1 field of base table as a text field in OA Page

    Hi Gurus,
    Could you please let me know if attribte1 field of an oracle base table can be used as a simple text or LOV input field in OA Page, NOT as a DFF Field.
    Thanks in advance.
    With warm regards,
    SKA

    In my case, Attribute1 is reserved for DFF. But I have to use it with a Text Input Item. OA page is showing the value stored for attribute1 in database. But it doesn't store the value in Database through OA Page. I am able to save other fields of the same VO through same OA Page, but not attribute1.
    Is it because attribute1 is registered with DFF or some other reason??
    Please advice.
    Thanks in advance.
    -SKA

  • Need to display a field for every page

    Hi All.
    I am trying to display a field <?job_no?> for every page of that job.
    I mean if I select job no from 1 to 10. for Job number 1 the data can be printed in one page or several pages.
    But i need to show this Job number( which we show with BARCODE font) in every page of that job.
    This job is under G_JOB group. In general I used like below
    <?for-each:G_JOB?>
    <?job_no?>
    <?...?>
    <?...?>
    <?...?>
    <?...?>
    <?...?>
    <?end for-each?>
    This is getting printed in first page only. If I put it in header, of RTF file, it is ok if I selected only one job number. But if I select for n number of jobs it is not geting displayed.
    Please help.
    Thanks Vasa.

    Vasa,
    Try this:
    <?for-each@section:g_job?>
    <?job_no?>
    <?start:body?>
    <?data?>
    <?end for-each?>The "start:body" makes everything before that a page header.
    Kurz
    Edited by: Kurzweil4 on Feb 7, 2011 1:15 PM
    Added @section. This will reset the header region for each job.

  • Populate Username on a text field in seeded page

    Is it possible to populate some of the text fields in a seeded page with the username who is logged in and accessing the page.
    Harshad

    Hi Harshad,
    Extend the controller and in the processRequest method write this code-->
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    String userName = pageContext.getUserName();
    OAMessageStyledTextBean bean = (OAMessageStyledTextBean)webBean.findIndexedChildRecursive("ButtonID*");
    System.out.println("Setting ViewAttr of CoverageVO");
    bean.setValue(pageContext,userName);
    *-->Button Id which you have created through personalization.
    Also attach this extended controller through personalization.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Loop through user text fields on a page

    I am new to APEX and I have searched for an answer to this problem, but was not able to find one.
    I have a page which has about 40 text boxes for user input. I would like to find a way to loop through all of the text boxes on the page when the user submits the form. I want to check the contents of each text box and filter out any characters that are not alpha or numeric. I would like to do this in one process. Is this possible? If so, how would I access the text boxes and remove the unwanted input? Could you please show me an example?
    Thanks for any guidance on this.

    Hi,
    I did not test this, but could something like after submit process work
    DECLARE
    l_temp VARCHAR2(32000);
    BEGIN
      FOR C IN
      (SELECT item_name
      FROM apex_application_page_items
      WHERE display_as   = 'Text Field'
      AND application_id = :APP_ID
      AND page_id        = :APP_PAGE_ID
      LOOP
        -- Do stuff e.g. remove character  Ö
        l_temp := REPLACE(v(c.item_name),'Ö');
        APEX_UTIL.SET_SESSION_STATE (
          p_name  => c.item_name,
          p_value => l_temp
      END LOOP;
    END;Br,Jari
    Edited by: jarola on Mar 4, 2010 5:26 PM

  • Adding Digital Signature Fields to Multiple Pages in a Document

    Hello,
    I have a batch processing java script which will place digital signature fields in a drawing.
    Sometimes the drawing could have multiple pages and the script needs to place the digital signature fields onto each page.
    The problem with the script I have is that the digital signature fields are only appearing on the first page.
    Can anyone please provide assistance with modifying my script so that the digital signature fields appear on every page?
    // Drawing signature field rev 0
    var numpages = this.numPages;
    for (var i=0;  i < numpages; i++) {
    var a = this.addField("Checked", "signature", i, [1783, 174, 1724, 198]);
    var b = this.addField("Designed", "signature", i, [1783, 149.5, 1724, 173.5]);
    var c = this.addField("Design App", "signature", i, [1783, 125, 1724, 149]);
    var d = this.addField("Proj App", "signature", i, [1783, 101, 1724, 125]);
    Thanks very much.

    Just index the field names:
    var numpages = this.numPages;
    for (var i=0;  i < numpages; i++) {
    var a = this.addField("Checked"+i, "signature", i, [1783, 174, 1724, 198]);
    var b = this.addField("Designed"+i, "signature", i, [1783, 149.5, 1724, 173.5]);
    var c = this.addField("Design App"+i, "signature", i, [1783, 125, 1724, 149]);
    var d = this.addField("Proj App"+i, "signature", i, [1783, 101, 1724, 125]);
    Tho there's no point in signing each page in the same document, tho I also see engineering folk do this. They just love signing every data sheet.
    And the result will not be good. Each signature will cause a problem/alert for the previous signatures.
    Care to indicate your engineering company?

  • How do I select text from multiple pdf pages using Microsoft Document Imaging

    Hello.  I have scanned 3 pages and saved to pdf, now in Microsoft Document Imaging I can only select text from the first page and cannot select text from the other 2 pages.  Is there a way to select multiple pages?
    Thank you.
    Cat

    Why don't you ask in a MS forum? This forum is for an Adobe product and I have no idea why you are asking about Microsoft Document Imaging here.

  • AlignToPage.jsx every page of a document

    I use a script to place multiple pdfs in Indesign CS4. It works fine but does not center them to the page. I then go to every page, select the item than run AlignToPage.jsx for every page.
    I'm trying to modify the script so every placed pdf of all the page will be align to page (center h/v).
    Can anybody help?
    Tx
    Yves

    Yves,
    I don't know the scripts but i suggust to create a script that after each pdf it places, selects that placed pdf or give the placed pdf as a variable to the AlignToPage and run it.
    Because I never tried running another script from a script, i put "aligntopage.jsx" in a function.
    for (..."each pdf"...){
    var myPlacedPDF = place(...);
    alignToPage(myPlacedPDF);
    function alignToPage(myPlacedPDF) {
    This is more to give an quick idea.
    If there is someone who experimented with scripts in scripts i would like to know more :-)
    Greetz,
    Glen

Maybe you are looking for

  • Xcode: Can I create a flag visible to code on a per-configuration basis?

    Hi all, I want to be able to create or change some flag in a build configuration, so I can do something like this in my code: #ifdef (configuration flag) // add some code #endif The idea is that I want to include some code in one configuration, but s

  • Import photos are out of order

    I hope I can explain this so it makes sense.  I am trying to import photos from a compact flash card.  When they come into Lightroom they are out of order.  I have tried sorting them by all the different means in the drop down but still are not corre

  • Need Wireless/Bluetooth webcam for my Libretto

    Hi I would like to purchase a webcam which is either wifi/wireless or bluetooth for my Libretto. Please could you suggest one suitable for this model. Your assistance would be greatly appreciate. Kind regards.

  • ILife '11 Installation Failed? Please Help!

    Okay so basically I wiped my Mac and clean installed OSX Snow Leopard version 10.6.7, then after the installation completed I put the Application Install DVD in (installs the iLife programmes) and went through the necessary steps prior to install, wh

  • Unable to switch on my phone need some serious help

     everyone, i got some issues while switching on my phone. Today my phone has automatically downloaded system update, after completion i installed that update and few minutes after installation, phone restarted and shows this massage "The software upd