AddWatermarkFromFile in  livecycle

In "Converting Acrobat® JavaScript for Use in LiveCycle Designer Forms" it says that doc.addWatermarkFromFile()
Works in Livecycle designer
Does NOT have a livecycle designer equivalent
Has a ---- for LiveCycle designer javascript
Does this mean I can or can not use this command? I use this command in Version 7 to place a picture of a signature on a form. When I try to use it on a LiveCycle form (doc = event.target), the console responds with:
Exception in line 504 of function anonymous, script Folder-Level:App:config.js
(504 being the addWatermarFromFile() command)
If I open an older form (not LiveCycle), it works just fine.

My designer is 8.05.
Perhaps you can tell me what I'm doing wrong. Here are two methods I've tried:
Folder Level Javascript:
AddWatermark = app.trustedFunction( function ( docptr)
app.beginPriv();
docptr.addWatermarkFromFile({
cDIPath: "/C/temp/A425.jpg" (I've also tried pdf)
app.endPriv();
Menu that calls it:
app.addMenuItem({
cName: "TestDesigner",
cUser: "Test Designer Form",
cParent: "Tools",
cExec: "AddWatermark(event.target)"
In the form itself, I've added a button.
In the click action:
event.target.addWatermarkFromFile({cDIPath: "/c/temp/A425.pdf"});
I've tried wrapping the above in a beginPriv()/endPriv() but that causes an exception on the app.beginPriv()
Thank you for your help.

Similar Messages

  • Error while invoking Livecycle process with Java

    Hi,
    I am trying to invoke a short lived process using java code. But when i try doing that i get the following error
    cannot access class com.adobe.idp.dsc.clientsdk.ServiceClient; class file has wrong version 49.0, should be 45.3 or 46.0 or 47.0 or 48.0.
    I am using the following versions:
    Adobe Livecycle: 9.0
    java version "1.5.0_03"
    JDeveloper: 9.0.5.2
    Can some one please suggest the appropriate action i need to take so that i can compile the code.
    Thanks in advance

    If you are invoking LiveCycle ES2 on JBoss compile with JDK 1.6 and run against JRE 6.
    Steve

  • In LIVECYCLE DESIGNER how do I code a submit button to only submit one page of a multipage PDF

    I have a multipage PDF I've designed in Livecycle and have print and submit buttons on each unique form in the document. I am able to create code (which I've copied from someplace) that allows only one page to print but when I click the submit button it wants to submit the entire document.  PS - I created the Submit from the blank button and have it set to submit PDF not XML.

    I don't think you can submit just a page of your PDF like you printed just a page. The difference is that when you print, the PDF becomes dots on paper, while when you submit a PDF it must remain completely intact to be machine readable, especially since the forms on a LiveCycle (XFA) document can have complex dependencies between pages.

  • PDF created with LiveCycle will not display

      All the other PDF links in the email work.  However, the document created with LiveCycle give me this error in Firefox.  I have made all the updates according to Firefox for Adobe Reader and Java.  Still receiving this.  Any suggestions???  I can see it in Explorer but not firefox or Chrome.  Not everyone that will get this particular document will use Explorer.  Unfortunately, I need a fast answer.

    Well, since I fixed it in Chrome, it works for me.  However, my partner beside me doesn't have Chrome and he gets the same generic screenshot that I had earlier, even though we made the changes in his Firefox.  We're baffled...... The interactive form is the only form we can't pull. 

  • Unable to save LiveCycle PDF form in Adobe Reader: Steps on Adobe don't work

    I went to follow the steps provided in the help video on Adobe. Two issues I couldn't solve:
    How do you login to LiveCycle via the web as an admin? How do you get to the LiveCycle admin portal?
    The local host (http://localhost:8080/ReaderExtensions) is unavailable. Every time I try to go there I get a 500 error message page. What is the new local host?
    The steps I followed were:
    So according to a video on its official website, in order to enable LiveCycle forms in Reader so they can be saved you need an Adobe Reader Extension which means we need a Reader Extension Credential loaded onto the server. For that you need to purchase a Reader extension license from Adobe.
    However, there is a trial version Eric or Jay could instal for me on the Remote Desktop. They can find it at:
    http://www.adobe.com/devnet/livecycle.html
    They will want to download the “Trial Reader Extensions Certificate” under “Downloads and updates”. It’s a 30 day trial which should work fine for our needs.
    The credential then needs to be imported into the Adobe Administrator. To do that they need to:
    Login to LiveCycle as an admin (via the web?)
    Go to “Settings"
    Go to “Trust store management”
    Go to “Local credentials”
    Click “Import"
    Trust store type should be “Reader Extensions Credential”
    Give it a name (i.e. Alias)
    Browse to credential file
    .pfx is the credential file
    .txt is the password
    Right-click the .txt
    Click “Open”
    Copy password from notepad
    Close notepad
    Open the .pfx file
    Paste in password copied from .txt file under “Password” in import form
    Click OK
    Then there’s something about going to Adobe LiveCycle Reader Extensions program (http://localhost:8080/ReaderExtensions). Don’t ask. I’m personally lost at this point.
    In Extensions program they need to:
    Select the Extensions credential
    Click the check box next to
    “Basic form fill-in”
    “Import and export data”
    “Submit outside of web browser”
    “Database and web service connectivity”
    “Digital Signatures”
    “Commenting”
    “Online Commenting"
    Set “Draft Level” to “Final”
    Click the check box next to “Full Save”
    “Browse” to the SNAP Survey I created and saved on the server.
    Click “Apply”
    In new window that appears:
    Click “Download”
    Save back to the server

    If you're on the machine that's running LC the administrator console is http://localhost:8080/adminui
    If you're not able to get to localhost:8080/ReaderExtensions then I suspect the LiveCycle server is not on your machine.  If that's the case you'll have to find out the name of the server running LiveCycle and connect using that name instead of localhost.

  • Is LiveCycle only a part of Adobe Acrobat 9 Pro EXTENDED, or does it come with the pro version too?

    Sorry, I know this is dated but my company doesnt offer Acrobat X (yet. It is currently pending approval from IT). Anyway, I am wondering if the Livecycle designer program comes with the Adobe Acrobat 9 Professional version or just the Extended which I cannot get? This is very important as I will be using it to create a form (literally just one form lol).
    Thanks

    Designer ES is distributed with both Acrobat 9 Pro and Acrobat 9 Pro Extended for Windows.
    Steve

  • Adobe Livecycle Submit Problems

    I am using Adobe Livecycle ES.  Putting a button on a page to submit the form.   However although it appears to save the settings it sends the form to a  different address and in a different format.  I can even start a blank form set  it to email address NEW and submit as XML and when submitting it sends to email  address OLD and as a PDF. 
    Where is it picking these settings up from ?  ? ?

    Hi All-
      I have an extremely frustrating problem.  I have designed a form in LiveCycle ES 8.2.1 for users to fill out and submit via xml.  I would like to use Acrobat Pro 9.1.0 to track and collect responses from this form.  When I test the original form, the submit button works perfectly and it opens my email client (Groupwise) attaches the xml and populates the To, Subject, and Body fields perfectly.
    The problem comes when I try to use Acrobat to distribute and track the forms.  It creates a filed called 'form_distributed' that adds a bunch of code that completely screws up my form submission.  When the form_distributed is filled out, and the user clicks the submit button, Groupwise 6.5.7 is invoked, but I get a 'Check Names' dialog box that states
    "Windows Messaging does not recognize "1. Double-click the attachment".
    After I click cancel on that dialog box, the JavaScript Debugger shows:
    Exception in line 63 of function top_level, script XFA:form1[0]:p1[0]:Button1[0]:click
    RaiseError: One of the specified recipients is not resolvable.
    Doc.submitForm:63:XFA:form1[0]:p1[0]:Button1[0]:click
    ===> One of the specified recipients is not resolvable.
    The distributed version has this extra code inserted
    < script contentType="application/x-javascript">//@@SUBMITURL "mailto:[email protected]?subject=Submitting Completed Form&amp;body=Instructions to add this form to a responses file:\n1. Double-click the attachment.\n2. Acrobat will prompt you to select a responses file.&amp;ui=false"&#xD;
    and further down....
    // submit the form&#xD;
    if (bContinue) {&#xD;
        var rawURL = "[email protected]?subject=Submitting Completed Form&amp;body=Instructions to add this form to a responses file:\n1. Double-click the attachment.\n2. Acrobat will prompt you to select a responses file.&amp;ui=false";&#xD;
        var submitURL;&#xD;
        if (app.viewerVersion &lt; 9.0)&#xD;
            submitURL = "mailto:" + rawURL;&#xD;
        else&#xD;
            submitURL = "mailto:" + escape(rawURL);&#xD;
        currentDoc.submitForm({&#xD;
            cURL: submitURL,&#xD;
            cSubmitAs: "PDF"&#xD;
        });&#xD;
    }&#xD;
    Are these lines of code always inserted when the form is distributed?
    How can I distribute and track these responses?
    Does this tie in to Acrobat.com, and is that required to gather responses in this method?
    It seems to be reading
    "[email protected]?subject=Submitting Completed Form&amp;body=Instructions to add this form to a responses file:\n"
    as the first email address and then getting hung up on the body and interpreting it as an incomplete email address.
    Any help would be greatly appreciated.

  • How do I write a specific IF statement in Adobe LiveCycle's FormCalc?

    I am trying to use an IF / ELSEIF  formula in FormCalc to autopopulate a text field in a table, but I keep  getting a syntax error.  Could someone please help?
    My table has 2 rows and 2 columns.  I named each cell (using Binding) in  Column 1 as Data1 and Data2 respectively.  Both cells in Column 1  contain a dropdown menu of numbers 1, 2, and 3.  I want to create a  FormCalc IF expression in Column 2 so that when the user selects a "1"  in the Data1 cell, the cell adjacent to it in Column 2 autopopulates to  "Yes".  Then if they select a "2", the adjacent cell becomes "No", and  if they select a "3", the adjacent cell is "Unknown".  Then, I want to  do the same thing for the Data2 cell and its adjacent cell in Column 2.
    Here is the expression that I've tried using for the first row (it  doesn't work).  (The second row in Column 2 [next to Data2] has the same  formula, except Data1 is replaced with Data2.)
    if (Data1 = 1) then
    "Yes"
    elseif (Data1 = 2) then
    "No"
    elseif (Data1 = 3) then
    "Unknown"
    endif
    Can anyone spot where my syntax error is and how to fix it?  I'd really appreciate it!  Thanks!

    Well thank you!  This actually pointed me in the right direction, however the adjacent cell is still not autopopulating depending on the number that is selected in Data1.
    I renamed the cells (in binding) for simplicity:
    Data1
    qqq1
    Data2
    qqq2
    I used this code (based on your code, just with minor tweaking):
    if (Data1.rawValue == 1) then
    qqq1.rawValue == "Yes";
    elseif (Data1.rawValue == 2) then
    qqq1.rawValue == "No" ;
    elseif (Data1.rawValue == 3) then
    qqq1.rawValue == "Unknown";
    endif
    Given the table above, with this code I do not receive an error like I did before with my erroneous code.  This part is good!  However, qqq1 still is not autopopulating to "Yes", "No", or "Unknown" when I select the different options in the dropdown of Data1.  I can't figure out what I am doing wrong!  I put the code into the Data1 cell, under the "exit" option and in the FormCalc language.  Do the cells need to be formatted a certain way?  Data1 and Data2 are both dropdown cells, and I have qqq1 and qqq2 as Text Fields with a Calculated-Read Only value.
    Is there something else that needs to be done?  I am a beginner at LiveCycle and the FormCalc language.  So any step-by-step help you can provide to the newbie will be extremely appreciated!  Thanks!  :-)

  • Form Designed in LiveCycle will not work for End User

    Please Help!
    I am a newbie to Adobe LiveCycle but recognized the utility in the program, so decided to give it a while to try and streamline some of my employer's forms.  After spending too much time learning how to design a form (much to the dislike of my boss), I am finally going to have to ask for some help.  So here's the deal:
    I've designed a dynamic pdf in LiveCycle with two master pages and two repeating flowed subforms.  The first repeating subform is basically an expanding table intended to be used as a photographer's log where they can log each photo taken with the camera.  The expanding table has some code with a button at the top for the end user to enter the number of photos on the photo roll, click submit, and table expands to however many instances of rows are needed for each photo that was taken.  The second subform is basically an image field and text fields used as photo captions/photo compilation pages.  When the end user clicks submit on the first subform to expand the table, I also have javascript in that click event to also create same amouint of instances of the second subform (the photo compilation page(s)).  Each text field for the photo caption on the second subform is populated by the data entered into the photo log table cells.  I was able to find a script to correctly populate those fields for each instance of the table.  Wish I had the form here, but it's at work at the moment.
    My problem is this: I've scratched and clawed to get all of the forms expanding correctly and the scripts populating each instance of the fields correctly and everything works great in LiveCycle preview.  I then saved the form as PDF for use by my field crew personnel (whom all use, at the very least, Adobe Pro 9, but most Pro X).  I sent the new form to them and they move it to their desktop, open it with Adobe Pro, and populate all of the fields and everything works swimmingly.  However, once they save it, it gets all jumbled and they can't even print it.  We even thought we found a workaround by entering all data and printing to PDF, but even that has turned out to not work.  I checked to make sure that I designed and saved the form in LiveCycle for use with the Adobe Pro versions, but still not working for my end users.
    Anyone have any thoughts on my long explanation??  Please HELLLLPPPP!

    The error(s) occur when trying to save the document.  I want each user to tell the first page how many rows they will need in the photo log table, so they would enter however many photos were taken in the box: "Number of Photos on Roll:"  ---> Then click the "Submit" cmd button.  That should expand the table.  Once it expands, it should also add the same amount of instances of the photo compilation page (2nd Page) as there are rows in 1st page table.  Then the user will populate each cell of the table on page 1 with data.  The data entered into the page 1 table cells will populate the text fields (photo caption) in Page 2 once the user clicks on the "Populate Captions!" cmd button in the lower left corner of the table on Page 1. 
    The problem is in the distributing of the form to the user so they can save the form after populating the data.  I did a test run this morning and for some reason it did do the "print to PDF" correctly for 5 photos on the roll (though this has not been happening every time and especially for a large number of pages, ie. 80 photos).  However, after entering the data for 5 rows on page 1 and then populating the 5 photo compilation pages, I saved a copy as "Save As PDF" and closed the document.  Then re-opened the copy in Acrobat Pro X.  The new copy:
    -had 5 additional rows added to Page 1
    -Duplicates of some of the fields
    -Only retained the 1st instance of the Second Page (Photo w/ Caption) and not all fields were populated
    Again, this all works fine in the LiveCycle Preview but not anywhere else.  I do not have this set up to be linked to an external data source (YET) but there is javascript in the cmd buttons.  I also do not want to distribute this form to end users and then collect the data back from them.  I want them to be able to save a copy of my LiveCycle designed form, open in Adobe Pro, populate the data and save as many copies as needed for form production.

  • Cannot login to JBoss Livecycle Installation

    I cannot figure out how to login through workbench.  I have configured it for port 8080 and can see the JBoss 4.0 page.  The help files say: If you cannot log in successfully, configure the user accounts. To do this, log in to LiveCycle Administration Console as the administrator and click Settings > User Management > Users and Groups. For more information about creating user accounts, see User Management Help.
    None of which tells me how to access the server.  I have never seen such lousy documentation for a server product that sells for this price.  I am evaluating this for my Team to use on a system that will support 20k users for the first year and right now, I'm about to call Rob Tarkoff and tell him that without specialized training, his product is unusable for many.  I am well versed in Server technology, and neither the web console nor the jmx-console is accessable for configuring.  And I am not a fan of either JBoss (especially 4.0) or high priced WebLogic.  Why couldn't they have bundled with Glassfish?
    So what next?  I need something that works out of the box without $250/hr Deloitte consultants to get it working.  Is there a blog or something that someone can point me to where I can get this thing working from?
    XP Installation for development.
    Thanks,
    Curtis Fisher

    Thanks for the quick answer, but this is exactly what I'm trying to do.  I am using the workbench and do have it configured for localhost with port 8080 and it looks like this:
    Your help is much appreciated, but I really need more than simple instructions.  The JBoss server is running, but I get this:
    If i had something that allowed me to configure the server, like a console, i could go even further.  But there is no console.  Do I have a bad installation?  I don't know.  But this is exactly the kind of crap you would expect from open source, little documentation and running on a very old edition of JBoss.
    Do you have any other ideas?  Or did your install work like a champ from the start?  http://localhost:8080/adminui does not work...
    Thanks again...

  • Get All group from LCES using Livecycle java API

    Hello ,
    Can anyone told me how i can retrieve all the groups that exist in my livecyle using JAVA API.
    Some method who return all groups ??
    Thanks!

    First Thank you for your answer
    I tried this part
    //Set connection properties required to invoke LiveCycle ES
                Properties connectionProps = new Properties();
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "jnp://test:1099");
                                                                      connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,Service ClientFactoryProperties.DSC_EJB_PROTOCOL);
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");
                ServiceClientFactory scf = ServiceClientFactory.createInstance(connectionProps);
                DirectoryManager directoryManager = new DirectoryManagerServiceClient(scf);
                PrincipalSearchFilter psf = new PrincipalSearchFilter();
        psf.setPrincipalType(Principal.PRINCIPALTYPE_GROUP);  //Recommended - refines the search to a User or Group
        psf.setRetrieveOnlyActive(); // Recommended - returns only ative users/groups and not obsolete/deleted users/groups
        List<Principal> resultList = directoryManager.findPrincipals(psf);
        System.out.println("Done");
    and when I check the result of my list I find incomprehensible informations.
    So when I debug the code ,  my list  contains little information.
    NB : my LDAP contains hundreds of groups.
    Any suggestion
    Any code Source.

  • I am trying to install livecycle trial version, but i get Error 13:11 Source file not found

    Why do they even offer a free trial version of livecycle es4,  when its obviously not free??????
    i have tried from two different computers, windows 7 and windows 8, and before it can finish installing,
    a messsage pops up saying Error 13:11 Source file not found verify file exsist.  what does that even mean?

    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5.5, 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Unable to open Livecycle forms even with latest plug-ins

    Hi guys,
    I have a created a few dynamic forms designed using livecycle designer ES..In order for my users to open these forms, they need to have atleast Adobe acrobat / reader version 8.1 or higher to view these dynamic files. However, quite a few of my users are saying that they are still unable to open these forms directly from their browser although they have downloaded the latest Acrobat X version and the browser plug-ins in their computer. It happens to both windows and mac computers. But they are able to download these files and open it directly from their adobe reader though. It happens with all browsers for them...some of them have even called up mac support as well as adobe support and they were advised that it could be a problem with my forms that I find hard to believe since it opens in my computer and opens for a lot of other users. Its only a few users still having difficulties and I can't understand why!
    Also, I recently uploaded a dynamic file in acrobat file sharing. Why am I getting the below message when I have the latest adobe installed? I am able to open other dynamic forms in my browsers..why does this happen? I wonder if other user's problem is similar to this...not sure...
    To view the full contents of this document, you need a later version of the PDF viewer. You can upgrade to the latest version of Adobe Reader from etc...etc...etc..
    What can be the problem when the adobe version is already updated and also the plug-ins are updated too?? I have read a lot of links in adobe site itself which suggest various methods to test out the forms, browsers, plug-ins, etc..but this problem still happens to some users even after trying out these troubleshoots. Can someone explain if there are other limitations or solution for these users?

    I don't have an answer. However, since your question is not about Acrobat forms, but Designer forms, you need to ask in the LiveCycle forum that deals with Desginer forms.

  • How can we get LiveCycle to serve forms out of SharePoint?

    Hi Everyone,
    I'm in the middle of confusion here, I've downloaded lc_es2_connector_for_sharepoint_9.0.0.2_v1_win_jboss.zip since I've been using the Suse Linux Appliance installed from Adobe as trial (LiveCycleES2SP2.x86_64-0.0.4)
    on the readme file (PDF) it said that I must install something to the Livecycle ES2 (page 4) like the following:
    On the LiveCycle ES2 server, navigate to the folder that contains the Quick Fix installer and double-click the lces2_qf_install.exe file.
    that is not possible since I'm using the Suse Linux as my Trial Livecycle, how does one test the Livecycle - SharePoint connectivity ?
    Thanks.

    apple.com/feedback.

  • Is it too much to ask that a Mac user can just OPEN and USE a PDF form created by LiveCycle Designer PC software?!?

    My problem is just that- I have created all my forms using LiveCycle Designer because it is easier to make the forms accessible to individuals with disabilities.  Apparently it doesn't make Mac users have access to the forms.  I've received complaints from Mac users that cannot complete or submit the forms that I created.  I'm not asking how to recreate using another software, I know how to do that.  I'm asking is there a work around to allow a Mac user to open a PDF form or even XML (bedded within an HTML page) on a Mac computer WITHOUT having to use bootcamp, parallels, etc. and be able to complete the form and submit, print or email it?????  I've exhausted all my knowledge on this thus far and I'm hoping to find something that will help.  So far all forums talk about how Mac users need to have a PC side to their computer.  Isn't there another way?
    I've attached an example form that we are no longer using (though still created exactly the same as the others)
    Thanks!

    Hi, as far as I can infer, that term means it's not loading any resources until needed, opposite of this...
    -bind_at_load
                     Sets a bit in the mach header of the resulting binary which tells dyld to bind all symbols                when the binary is loaded, rather than lazily.
    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man1/ld.1.html
    Load resources lazily.
    You should never load a resource file until it is actually needed. Prefetching resource files may seem like a way to save time, but this practice actually slows down your app right away. In addition, if you end up not using the resource, loading it wastes memory for no good purpose.
    http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneos programmingguide/PerformanceTuning/PerformanceTuning.html
    And, higher OS versionsare even worse with Bonjour/mDNSResponder, but might see this...
    http://support.apple.com/kb/ht3789

Maybe you are looking for

  • How do I get the weather on my iPad running iOS7 to show celsius in the Notification Center?

    I just upgraded my iPad to iOS 7 and noticed in the notification center, the weather is in farenheit.  I prefer celsius.  Any thoughts on how I can change that?

  • Help on invokelater and invokeandwait

    Hello, i am developing an application using swing API. in this application i have to read ceratin data from the database. and do operation on the data. what i want to do is to fetch data based on a query and display the data to the user in a JTable o

  • Subscription to DPS

    I have a subscription to DPS with Creative Cloud and I have to design an app for a client of mine that will operate on its own as a developer / publisher to the Apple Store and the Google Store. Can I use my subscription to DPS to publish the IPA or

  • Using purchased iTunes in iDVD

    I have just purchased some iTunes for my Mac and followed the procedure to authorize them for this computer, many times actually. When trying to use them in iMovie, I keep getting the message that they aren't authorized for use on this computer. I se

  • "Breaking" a Pack quantity

    Hello experts, some help please...... my client wishes to purchase packs of items, store them as packs in bulk storage and replenish a fixed bin (WM in use) picking face as EA but also to have the option of supplying pakcs as well as individual items