Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - Push values to attachments from portfolio
  FAQ FAQ  Forum Search   Register Register  Login Login

Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

Push values to attachments from portfolio

 Post Reply Post Reply
bill.staub View Drop Down
New Member
New Member

Joined: 03 Jul 2015
Points: 1
Post Options Post Options   Quote bill.staub Quote  Post ReplyReply Direct Link To This Post Topic: Push values to attachments from portfolio
    Posted: 03 Jul 2015 at 10:21am
Hi there!

I need some help regarding a JavaScript Acrobat scripting issue.

I have a PDF Portfolio (created with Acrobat), including 3 interactive PDF forms (XFA-Forms, created with Live Cycle). What I want to do is have a script on document level of the portfolios cover sheet which counts the pages of all attachments and puts the String "Page X from Y" to a XFA form field inside each attachment. This is how the script looks like right now:

if (this.collection)


    var attachments = this.dataObjects;

    var doc = null;


    for (var a = 0; a < attachments.length; a++)


        doc = this.getDataObject(attachments[a].name);

        if(doc.xfa) {

            if(doc.xfa.resolveNode("xfa.form..FUSSNOTE_PAGES")) {

               doc.xfa.resolveNode("xfa.form..FUSSNOTE_PAGES").rawValue = "Page X of Y";






Now what I see is that something happens and the documents are filled really with content, but in acrobat reader, only the last attachment remains with the pushed field value, the other two attachments remain without the value. How can I assure that the values will be pushed to all documents using acrobat reader (XI)? Are there any alternatives like global variables (but I cannot have a folder or app level script - only document level)..

Kind Regards, Bill

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.063 seconds.