Example of PDF with javascript

We use javascript to customize PDF forms and one of our customers is experiencing performance issues with Adobe Reader 10.  If the problem is unique to our form then I can narrow down my troubleshooting.  But, if our customer accesses another PDF from another web site and experiences the same issue, I can move my search to Adobe Reader 10.  If you know of one, could you send me a link to some public accessible PDF form with javascript?  I really appreciate your help!
Greg

Performance issues with Acrobat/Reader 10 are known.
In another thread, it is suggested to update Reader to the newest version. Another suggestion is to deactivate Safe Mode.
There are additional things to look at, but that really depends on the individual form, and many of those points have been common knowledge for quite some time.
Hope this can help.
Max Wyss.

Similar Messages

  • Problem saving Reader extended PDF with Javascript functions built in

    Afternoon
    I have created an interactive PDF in Livecycle with built in Javascript functionality.  I need users to be able to complete and save the PDF so have saved it as a Reader extended PDF.  The problem I'm having is that when a user completes the form,saves it, and then opens it again the Javascript functionality is not showing despite showing the original selection that the user has made.  The Javascript is simply a dropdown menu that will show a different table based on the selection so isn't anything major.
    I've trawled forums and this is driving me mad so I'd appreciate some help.
    I am using Adobe Pro XI.
    Thanks in advance
    Ben

    http://forums.adobe.com/community/livecycle/livecycle_modules_and_development_tools/livecy cle_designer_es
    Karl Heinz Kremer
    PDF Acrobatics Without a Net
    PDF Software Development, Training and More...
    [email protected]
    http://www.khkonsulting.com

  • Open protected pdf with javascript

    Hi
    I created a program that opens a local pdf file and shows it with Adobe Reader. I want people to open the pdf file only when using my program.
    It's an Adobe Air program so I am able to pass javascript commands to the pdf. Lets say I pass a string (the password) from my Adobe Air applikation
    to some javascript function inside the pdf file, at the time my application opens the pdf file, when i it opens. Then the javascript function inside the pdf file should be able to pass the password to some security handler and open the pdf file, without prompting the user for a password.
    How do I do this in Adobe Acrobat Javascript ?

    Just search for password in the to files i mentioned. I'd already said that I didn't understand the documentation very well, but here's a copy paste:
    SecurityHandler Methods login
    Provides a mechanism by which digital IDs can be accessed and selected for a particular Security Handler. Through the user interface, a default digital ID can be selected that persists either eternally or for as long as the application is running. If such a selection has
    signInvisible
    Specifies whether the security handler is capable of generating invisible signatures.
    Type: Boolean Access: R
    signValidate
    Indicates whether the security handler is capable of validating signatures.
    Type: Boolean Access: R
    uiName
    Specifies whether the security handler is capable of generating visible signatures.
    Type: Boolean Access: R
    The language-dependent string for the security handler. This string is suitable for user interfaces. All security handlers must support this property.
    Type: String Access: R
    SecurityHandler Methods
    been made through the UI, it might not be necessary to log into a Security Handler prior to using the digital ID.
    Parameters tend to be specific to a particular handler. The behavior for Adobe.PPKLite and Adobe.PPKMS handlers is specified below.
    The parameters cPassword and cDIPath are provided for backward compatibility, or they can be included as properties of the oParams object. This latter method is the preferred calling convention beginning in Acrobat 6.0.
    See also logout, newUser, and loginName.

  • PDF with javaScript function from Pro, not fully functional in Reader

    Hi,
    I followed recommendations to set up a button and apply a javaScript so that when end-user clicks on button, they can upload an image and then save the PDF.
    However, in Reader, the file extension drop-down is locked and forces end-user to only have the option of selecting a PDF as their image. I was going for JPG or GIF here at the very least.
    Is there anything else I could do, or am I stuck? In Pro, the drop down presents a wide array of file types in which to select from...
    Thank you!

    Adobe Reader can only insert PDF files as images. Adobe Reader can't convert other files.

  • Data from PDF  with  javascript

    Looking for some code to get me started doing: 1) moving through subdirectories 2) extracting data from a PDF form to a text file (CSV)
    We need to move through 100's of directories and extract PDF form data.
    Fields are the same but files have different names; in all these files is a form page with the same field structure.
    In other words; we keep track of jobs for hundreds of customers using a
    pdf in hundreds of folders ( folder and file names reflect the customer name( I did not, BTW, design such a silly way of tracking jobs) )
    Some sample code will save me hours or days, of course -

    > but never in Java
    There is no Java interface to Acrobat. Do you perhaps mean a LiveCycle server, as they can be extended with Java?
    > Windows 2003 server box
    Again, this makes me think of a LiveCycle server instead of Acrobat, since Acrobat is not licensed for server use.

  • Editing Pdfs with OCR and image in one file.

    Hi
    I have some scanned documents and are at the same time images and pure text and are giving me problems to read in ereaders or computer.
    Example of normal text in a PDF: The font is constant and vectorial, fine reading
    [b]Example of pdf with problems[/b]
    As you can see I can copy the pure text, but I only see the scanned image wich is bent and I can see text of the original page in the other side
    In this other two, the text is not fine, not bent but it is less readable on ereaders and notebooks, it is like a low quality jpg.
    How can I delete the images and make a pdf only with the text?
    regards

    It is one of the first things that I tried, but the word document is not pressentable
    PDF is like
    this is one line of the document in the pdf and
    here we go with the second
    DOC
    this is one line
    of the document
    in the pdf and
    here we go
    with the second
    with a LOT of space, and I cant convert again to pdf or epub without the breaklines and having half of the page in white without use.

  • Printing PDF attachments with Javascript?

    I am very new to Javascript (and not a programmer) so please excuse my basic or un-correct terminology here! I've created an interactive pdf, and have set buttons (with javascript code) to print specific ranges of pages from the document. I've now been asked to have said buttons print attachments (which are also pdf's) in the same style... is this possible, and if so, does anyone have example code? The code that I used to print the page ranges, for example:
    print ({nStart: 0, nEnd: 5});
    Any assistance/guidance/help would be greatly appreciated!

    The document first has to be opened. You can do this via JavaScript with the doc.openDataObject method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.509.html
    This method returns a doc object, which you can use with the print method to print the document. You should then use the closeDoc method to close the document, as mentioned in and demonstrated in the documentation linked to above.

  • Linking Data Merge Field with JavaScript for PDF link

    Hello everyone,
    I am using the data merge in InDesign to generate a PDF with data from a data source file. The data merge will populate a Product Number field. I want to write a script that will modify the Product Number field to contain a JavaScript Link in the resulting PDF.
    For example, the product number [1234-567] will launch: app.launchURL("plsddr://localhost/1234-567|*", true); when the Product Number link is clicked on in the resulting PDF.
    Can anyone provide an example on how this could be done, or point me in the right direction? If there is a better way to go about this, please let me know.
    Thanks!

    What findText returns is a list of Text, but that's totally interchangeable with Word. It appears InDesign can switch at will between Characters, Words, Lines, Paragraphs, and Stories.
    Text can consist of one single SpecialCharacter (a column break, or a hard return, or any of the SpecialCharacters enumeration), or of a standard JavaScript "String" object -- a simple Unicode string.
    The property that 'holds' the text is "contents" -- so, adding all of this up, to 'get' the text that has been found, you'd typically use
    next = list.pop();
    alert ("The text contents of this one is '"+next.contents+"'");
    and you can build further on that -- using it as a HyperlinkDestination URL, or something like that. The Text item -- 'next' -- still points to the 'live' text it was found at, so be careful not to modify it. Doing something like
    next.contents = 'hey what happened';
    will change the actual text in your document. But it's also useful to add, for example, a hyperlink to the actual position this text was found on.
    (A tip regarding changes: if you are to change your document, the original items findText pointed to will be messed up after you changed the first one! To prevent that, work backwards from the last item found to the first. findText(true) will reverse the order of found items, from last to first -- see the JS Help on that.)
    As for
    (Also, how do you print the contents of a Word object?)
    that depends on what you mean with 'print' . To a printer?

  • Can I with Javascript force Chrome users to open a PDF with Acrobat

    I have built a document in InDesign and exported to an Interactive PDF. I originally had issues with acrobat highlighting interactive buttons with a blue box but was able to get around this with a couple simple JavaScript lines that disabled this feature then re-enabled on closing. You can view the thread with my resolution here:
    Button Highlight in Interactive PDF from InDesign CC
    Great but now I have another issue. If the user opens with Chrome and has not disabled "Chrome's" PDF viewer the above JavaScript is ignored or not functional. It there a way with JavaScript or some other method to force the PDF to be opened with Acrobat in Chrome?
    I Miss FLASH this project would have been 100 times easier with action script and consistent across browsers ... curse you Steve Jobs.

    You need to not just think about Chrome. There is
    - FireFox
    - Microsoft Reader (comes with Windows 8)
    - Preview (comes with Mac)
    - iPad native PDF viewe
    - Android native PDF viewer
    Anyone getting a computer or tablet today can read PDFs without getting Adobe Reader and you need to give them a pretty compelling reason for them to download Adobe Reader to do what (they believe that) they can already do. I think it's the death knell for PDF forms.

  • Calling ABAP Class with Javascript (Example?)

    Can anyone provide an example of calling an ABAP class with Javascript?  I'm looking to retrieve a variable value from a Web Application
    Thanks

    I need this too.
    I have a Selection Screen in JAVA. And I want to fill the f4-help with a abap-function.
    with kind regards
    Maria Kiltz

  • Need Help with Javascript for Acrobat Pro 9

    Hello,
    I am creating a PDF form in Adobe Acrobat Profession 9.  Not having a lot of experience with Javascript, I have found this forum very helpful and have used many of the script examples for other issues I have had.  I was hoping someone could help with the following script, I have tried many variations, cannot get it to work.
    var ratio = this.getField("ratio").value
    var concentration = this.getField("concentration").value
    var result = this.getField("result").value
    if(ratio.value>=50.00)
    {result.value ='PASS';}
    if(ratio.value".value>=40.00)
    {result.value ='PASS';}
    if((concentration.value ==61) && (ratio.value >= 49.25))
    {result.value ='PASS';}
    if((concentration.value ==61) && (ratio.value >= 39.25))
    {result.value ='PASS';}
    if((concentration.value ==62) && (ratio.value >= 48.50))
    {result.value ='PASS';}
    if((concentration.value ==62) && (ratio.value >= 38.50))
    {result.value ='PASS';}
    else
    {result.value = 'FAIL';}
    This is just a piece of the code  The concentration values run from 61 through 99 and the ratio value varies for each concentration value, there is a high ratio and a low ratio.  The result of this field with populate the results field with a PASS or FAIL.  This is not working......any help is greatly appreciated!

    Thanks George.  I updated the script to:
    // Get a reference to the result field
    var ratio = this.getField("ratio");
    // Get a reference to the result field
    var concentration = this.getField("concentration");
    // Get a reference to the result field
    var result = this.getField("result");
    if(ratio.value>=50.00)
    {result.value ='PASS';}
    if(ratio.value >=40.00)
    {result.value ='PASS';}
    if((concentration.value ==61) && (ratio.value >= 49.25))
    {result.value ='PASS';}
    if((concentration.value ==61) && (ratio.value >= 39.25))
    {result.value ='PASS';}
    if((concentration.value ==62) && (ratio.value >= 48.50))
    {result.value ='PASS';}
    if((concentration.value ==62) && (ratio.value >= 38.50))
    {result.value ='PASS';}
    else
    {result.value = 'FAIL';}
    However, I am still getting a FAIL result even when the ratio is 50.00 or equal to the passable ratio.

  • Right Click to convert webpage to pdf creates pdf with website headers but not iframe content

    Hello
    We are having a problem converting webpages to pdf with Acrobat.  Out website uses Iframes to view the website we are converting to pdf.  When I right click on the webpage and click convert to pdf everything works fine. But the pdf that is created is only the header of the page not the content of the iframe I right clicked on.  If you go to file and print to pdf it works fine we get the content of the iframe in the pdf and not the rest of the webpage. But the users prefer to right click. Is there some way to fix this so we can right click to convert to pdf?
    Thanks
    Jason

    I dont think acrobat can convert iframes to pdf (need to check). It can convert html, some javascript, images and swfs for example. Data driven pages, depending of the programming cant be converted too.

  • Combine jpegs to create PDF with blank page background

    Hello, I have hundreds of newspaper scans of various sizes, same dpi, and I want to combine them to create one PDF with each of them on a blank 8.5 x 11 background page? like in a scrapbook. Is this possible using only acrobat? Or does it need to be done on a program like indesign? Appreciate any thoughts.

    Here's a script that you can use to create the blank document with a button on each page. When a page is clicked, it will prompt you to import an image (it defaults to PDF, so select JPG from the from the dropdown) to use for the icon. You can set the "num_pages" variable from 100 to whatever amount you need. To run the script, open the JavaScript console (Ctrl+J), copy the entire script below, paste it into the console, select all of the lines, and press Ctrl+Enter. This will run the script and the result will be a 100 page PDF:
    // Start of script
    // Create a new document and make the page a template
    var newDoc = app.newDoc({nHeight: 11 * 72, nWidth: 8.5 * 72});
    var t1 = newDoc.createTemplate("t1", 0);
    // Add a button to the template and set the various properties
    var f = newDoc.addField("icon", "button", 0, [0, 11 * 72, 8.5 * 72, 0]);
    f.buttonPosition = position.iconOnly;
    f.borderStyle = border.s;  // Solid
    f.buttonAlignX = 50;
    f.buttonAlignY = 50;
    f.buttonFitBounds = true;
    f.buttonScaleHow = scaleHow.proportional;
    f.buttonScaleWhen = scaleWhen.tooBig;
    f.lineWidth = 0;
    f.fillColor = color.transparent;
    f.strokeColor = color.transparent;
    f.setAction("MouseUp", "event.target.buttonImportIcon();");
    // Create multiple pages based on the template
    var num_pages = 100;
    for (var i = 0; i < num_pages; i += 1) {
        t1.spawn(i, true, false);
    // Remove the template page
    newDoc.deletePages(newDoc.numPages - 1);
    // End of script
    Save the file that is generated. After you populate all the buttons by clicking on each page, you can flatten the pages by entering the following line in the console and executing it as you did with the previous script:
    // Convert button appearances to regular page contents.
    flattenPages();
    Save to a different file and you should have what you want. Post again if anything isn't working.
    Note that it would be possible to automatically import the images, but you'd need to create a list of the files you want to import and amend the script a bit. If interested, I could show an example of how you'd do this.

  • The way to open 3D pdf with specific model selection from url link

    I guess this feature is not supported, but let me ask one thing.
    I am looking for the way to open 3D pdf with specific model selection from url link.
    For example, if the following link is opened, is it possoble to open 3d.pdf with automatic selection of "abc" model in the model tree? 
    http://example.org/3d.pdf#model=abc
    If it can be done by javascript, it's really helpful.

    Impossible. There are only very limited command-line options for the Acrobat Family and you cannot change them.

  • Trusted PDFs and Javascript

    Is this possible and if so what is required to make it work.
    Currently if you place print(false); at the document level and save the file. Every time you open it with Acrobat 8 you get a message telling you that the document is trying to print. This was not the case with version 7 and I understand all the security issues.
    If you create a script like this:
    printFile = app.trustedFunction( function ()
    // Additional code may appear above
    app.beginPriv(); // Explicitly raise privilege
    this.print(false);
    app.endPriv();
    // Additional code may appear below.
    Save it in the javascripts folder.
    Then call this trusted function printFile(); at the document level you do not get the message. This is fine but a pain if you have to make each version of acrobat that you want this to occur on have the script installed.
    I've been looking at certifying a pdf and having the Embedded high privilege JavaScript turned on within acrobat. Could I certify a pdf and when the user opens the pdf if they agree to my certificate the pdf will print without the print message coming up?
    Is this possible?

    That´s right I have the same problem using the examples of the Acrobat JavaScript Scripting Refrence.
    why the examples aren´t usable with Designer?
    Thanks

Maybe you are looking for

  • Blending Modes

    Hi All, I am creating a flyer in InDesign, I've got a logo to put at the bottom of the flyer, the logo is white with a black background, I've used the Screen blend mode to remove the black but I can now see a faint white space behind the logo... see

  • Opening PDF Files in Safari

    How do I open a PDF File inside Safari? All I get is a dark grey screen. I know adobe doesn't support the 64bit version of Safari. Is there another option? Thanks!

  • Need help-buyin​g decision new thinkpad

    i am a foreign person who want to buy a laptop .since the price of thinkpad in America is more acceptable and the qulity more reliable than in my country, i d like to ask one of my friend who is now in the us to buy a thinkpad for me.the question is

  • DreamWeaver Extension

    Are extensions included in Creative Cloud?  I am interested in the Dream Weaver Extension for creating a flip book?  Or will I have to download and purchase seperately? Thanks!

  • View Multiple Folders

    I'd like to see the ability to split screen preview material from two separate locations. For a current project, I am trying to have paired Before and After pictures of a home remodeling. These pictures are in separate folders with the appropriate na