JavaScript to launch Designer form PDF w / password

Hello

Trying to solve the problem for smaller developers, in my case, e-Learning, to indicate a way to protect from unauthorised use of a PDF form through password restriction. I got a bunch of e-Learning (KnowledgePresenter) which, in its latest version, has the ability to add JavaScript routines for example to launch a PDF file. So, if I were to create a form designer, password protect/encrypt the PDF version, to open in the e-Learning lesson, the lesson would need to do 2 operations: (1) launch of the PDF file and (2) to deter unauthorized use, password for the PDF file to launch the JavaScript form. Not sure if # 2 is possible, especially since I'm not very good at writing the JS routines, as well as launch of this PDF file with a password, all in a single action, perhaps not even possible for a Designer PDF?

The "fall back" would be to give the student the password to open the PDF form launched themselves. But, if the password could be hardcoded in the JS/HTML script lesson, as described above, then no one should know the password. It would open from within the lesson. And, since the password is protected so that it could be copied for external use, it does not open without the password.

Any suggestion would be appreciated, especially ideas on what the JS routine would look like.

Kind regards

saratogacoach

* sign... kickoff after typing the long answer. This is an abridged version *.

We used this script to modify the values of the objects.

The script of 'close' will close only the PDF not the application form. Also, I tested it and it looks like any script "app.execMenuItem" will not work when opened in a browser. I suspect that it is because it is open in a browser plugin, instead of Acrobat/Reader.

I would recommend removing the script 'app.execMenuItem' and by placing a white rectangle on the content of the form in the designer of the LC (it might also include some notice/warning). Defined the presence of this rectangle to hidden.

Then in the docReady script you would replace its visible presence if the url test failed match to the requested url.

If it works you need to extend the trial to Acrobat/Reader, so that if a person saved on their computer, they still would be able to display the content.

Niall

Tags: Adobe LiveCycle

Similar Questions

  • Determine if the form is a form PDF static or dynamic XML form programmatically

    Hello

    We have a software Macromedia Adobe form is used. With Adobe LiveCycle Designer, Staic form PDF and dynamic XML form can be created. We want to make the distinction between these two types. Is there available Adobe API which returns the type of PDF form; Static PDF or XML dynamic form?

    Thank you - Marie Laure

    Your script does not for me but when I used this modified following version he detected the form correctly (as long as the pdf file is saved in the designer using either save as static or save as dynamic)

    Dim app, pddoc
    Dim js
    
    Set app = CreateObject("AcroExch.App")
    Set pddoc = CreateObject("AcroExch.PDDoc")
    
    If pddoc.Open("E:\Untitled1.pdf") Then
         Set js = pddoc.GetJSObject
    
         If Not js Is Nothing Then
              If js.dynamicXFAForm Then
                  MsgBox "It's a dynamic form!"
              Else
                  MsgBox "It's a static form!"
              End If
           End If
    End If
    
    Set app = Nothing
    Set pddoc = Nothing
    

    Regarding the 2nd approah, I don't have a sample that can be shared, but essentially, it is to use API of COS calls to open the stream XFA in PDF and determine what type of rendering.

    Alternatively, you can run javascript using the API / C code

  • How to use a PDF form as a source of data for the second form PDF

    Hello world

    I have the following scenario:

    We want that our sales staff to collect data of our clients through a PDF form.

    We do not like to combine with the PDF we print them or sending them by E-Mail.

    Therefore, there is a solution to fill a second PDF with data from the first.

    1. 1 PDF form with input fields

    2. 1 PDF form must be registered with the entry

    3. 2nd PDF form with a table filled with 1 form data

    4. 2nd PDF form displays the data under the graph with the abilty to edit these data to dynamically change table

    I don't want a hollow guide the whole scenario. I just first of all whether it is even possible to supply a PDF form with data in another form PDF.

    If it is possible please give me advice to know what to look for everything.

    If this isn't the case, I would like to read the recommendations for solutions easy possible to solve this task.

    We do not want to send our staff of sales with PDF solutions to our clients, their collection and their work through a big pile of measures to manage this scenario.

    Thank you and regards

    Christian

    You must understand that there is a big difference between the JS, you might be familiar with (the one used in web pages) and one used in PDF files.

    Although the basic syntax is the same most of the objects and methods are different, as PDF files are fundamentally different from web pages.

    You can find the reference to API JS Acrobat here: JavaScript for Acrobat | Adobe Developer Connection

    The form data can be copied by exporting it to a file FDF then import this file into the other PDF (assuming that the field names are the same), or it can be done using a script that uses global variables. The latter is more automatic, but may require adjustment of the parameters of the application or using a function of confidence (IE, a feature that is installed on the local computer instead of just in the file itself).

    The first is easier to implement and use, but requires the intervention of the user.

  • Present form PDF URL data without submit button

    Our customers use LiveCycle Designer to design PDF Forms. We have an ASP.Net Web form application, where they want us to embed the PDF form part of our data-entry form. The registration form has a button 'save'. And we want to save the entry of all entries in form (including the PDF form) in the click on the button Save.

    The client PC will adobe reader is installed, so I guess we can integrate the PDF form easily. I know form PDF can have the "submit" button and can send data (XML) to a URL. But the client does not want to place a button to send separate in the PDF file as the registration form has a Save"" button.

    Do you have any suggestions? If I post in the wrong place or a question already answered, I sincerely apologize and please guide me.

    You may be able to use the FormBridge to communicate between the PDF and HTML form. I've not used it before, so I can't provide details.

  • Submit data form pdf as a custom model fields

    Hello

    Is it possible to send form pdf as a custom model fields?

    When the form is submitted, I want it to be sent to me in the form of text and form field data would be autopopulated in the text template.

    Im not sure, but is this how fdf works?

    If so, how can I get my form to submit as fdf?

    Help, please.

    Thank you.

    Oh so what happens if we had a special hot spot on the form... .the admins would open the form. Click the hot spot... one could ask for a password and then display the hidden field.

    Acceptable?

    Paul

  • Sites that use javascript to launch code download fail in FF but work in Internet Explorer.

    All financial sites that I use (TD Ameritrade, SunTrust bank, AmEx, etc.) allow to download monthly statements in pdf format. These used to be direct links to a pdf file, which can be downloaded or played directly in Firefox. They are now the javascripts which probably make the PDF on the fly from documents, and then download. I get a garbage file on my desk instead. In Internet Explorer, the javascript code triggers a query to view or download. In Firefox, I believe that there is a flash of a window that opens, then nothing. I tried to disable AdBlocker and have the sites listed to allow pop-ups, and is not.

    Try running Firefox in questions to troubleshoot Firefox in Safe Mode. If it works properly in this configuration, then one of your modules is the culprit.

    See also: https://support.mozilla.com/en-US/questions/819362

  • How to disable automatic query when launching a form page?

    Dear Sir:
    In Jdev 12.1.3,
    I create a form page that is based on a data control which itself is created from a ViewObject and its criteria view.
    I put the display criteria UI guidance "Query automatically" attribute disabled.
    However, when I run the form on the page every time, the query is executed automatically.
    How can I disable the automatically query when launch a form page?
    Thanks!

    You haven't checked out my previous comment, I've shared a link here?

    Anyway, it's not a bug, just a change

    You can change its value in the XML source of the viewObject (I think that the problem is for this reason, otherwise it should work)

    If you still face problem after changing this property then you can go for the second option (new link is part in the previous comment)

    Ashish

  • How can save a PDF with password

    How can save a PDF with password

    Hi MacUser2,

    Trial is for 30 days.

    Once the trial is over you will be able to open PDF files by using the password that you have installed.

    Kind regards
    Nicos

  • Edit the adobe livecycle designer form of acrobat?

    Edit the adobe livecycle designer form of acrobat?

    Is not possible. You need LiveCycle Designer to edit these forms.

  • CD player and LiveCycle Designer Forms

    Is - this new version of the CD player works well with LiveCycle designer forms?

    Problems?

    Thank you

    Maybe... There was a lot of complaints about the new right hand pane and there was an update released yesterday, which addes some optimizations to it.

    You should check it yourself to see if does what you want.

  • How to launch the adobe pdf printer

    How to launch the adobe pdf printer

    Hi tiffjonleigh10,

    Printer Adobe PDF is a virtual printer that behaves like a printer, but it does not explicitly launched.

    Please refer to the doc. the following KB using Acrobat | Using the Adobe PDF printer for any help.

    In case if you have still any query please let us know. We will be more than happy to help you.

    Kind regards

    Nicos

  • HOW TO FILL OUT FORM PDF WITH HEBROW ON CHROME?

    HOW TO FILL OUT FORM PDF WITH HEBROW ON CHROME?

    Chrome uses its own PDF Viewer (incompatible).

    Download the PDF file to your local drive, then fill it out of there with Adobe Reader.  Or use a browser that uses the Adobe PDF plugin.

  • I can't delete page 1 or page 1 of my pdf document passwords. How to remove this page?

    I can not delte page 1 or page 1 of my pdf document passwords. How to cancel it?

    Not possible with Adobe Reader.

  • QUICK LAUNCH THE FORM ON THE BROWSER check box... I don't see it?

    Hello

    A few months for some reason any when I try to open it I developed adobe interactive form... I used to get an error message in a popup (sorry, I forgot this description of error message), then when I checked in google (I guess, adobe forums), someone suggested to uncheck QUICK LAUNCH THE FORM IN the BROWSER to the level of the form so, I did, worked fine.error disappeared, although

    Now, I want to use (check) the QUICK LAUNCH area again for the same shape, but, I couldn't find this check box in the options PEOPERTIES of the form menu, pls let me know where I can see this QUICK LAUNCH THE FORM ON THE BROWSER?

    Thank you

    Yes, that's correct. The users will have control on their preferences. I don't think that you can access it through the script.

    Niall

  • This file is set to be launched by the PDF file. It is currently against you system administration

    After an update to adobe, I'm having this problem suddenly:

    This file is set to be launched by the PDF file. It is currently against you system administrator.


    How can I fix it? If anyone can help?

    Hello

    It is a deliberate Adobe fix to prevent your system vulnerable to security attacks. Therefore, any link which tries to open any executable file has been blocked with the error message that you are talking about.

    The following links have more detail on the same:

    http://News.Softpedia.com/News/Adobe-finally-fixes-launch-bug-145757.shtml

    http://www.Adobe.com/support/security/bulletins/APSB10-15.html

    Ankit

Maybe you are looking for

  • With multi tabs open I'm going to close Firefox 5.0 and it will not keep the tabs closes all tabs

    With multi tabs open I'm going to close Firefox 5.0 and it will not keep the tabs it closes all tabs so when I restart I have to reopen the tabs. I was using firefox 3.6 and had the opportunity to close, but keep the tabs so they would open when I re

  • I can't get my computer to defragment...

    at the same time when I went on the disk defragment, I got two different file systems (NTFS and one that I don't remember) now, there is just one and it is not allowing me to defragment due to lack of sufficient disk space. How to fix or recover disk

  • Having problems with signature of a file flash swf for Whiteboard Tower Defense

    I presented the Whiteboard Tower Defense game well before March 15. Apparently, I have problems he signed. The process runs, ends and I submitted it, but I thought it was supposed to generate a lot of files more than what he has done. I sent applicat

  • using CSS on my own nodes substructure

    HelloI noticed that you can style JavaFX controls using their secondary structure.for example in the style of the label in a table to be framed left column header, I can do that.table-view .column-in-head-background .label {-fx-alignment: center-left

  • .. reflector .branch seems unnecessary

    Could the windows firewall blocks reflector of branch to do its job?One of our reflectors is like a fish dead - totally useless.  Each host being upgraded must download the entire package individually.  I saw how the reflector can be effective when i