Modifying a pdf page using Javascript

Hi all,
- I am having an html report that consists of many html pages.
- Each page of these html pages contains a table or more, in addition to some buttons that hides/display specific rows in these tables. And these buttons are programmed using Javascript.
I would like to convert these html files to a single pdf file.
My question is: If I converted the report to html, will my buttons work. I mean will my Javascript buttons hide/display table rows in the pdf pages ?
Thank you,
Moustafa

Even though there is some common objects, properties, and methods between Web JS and Acrobat JS, Acrobat uses some very unique objects, properties, and methods so there is no straight forward conversion possible. You would need to rewrite much of the JS and make form fields that could be manipulated. Also Acrobat makes static forms, so no dynamic re flowing of content would be possible.

Similar Messages

  • How to seperate current page fields in a pdf form using javascript

    Hi,
    Is that possible to seperate current page fields(textbox, Chesckbox) in a pdf form using javascript.
    I have coding to get all the fields in a pdf form. But i want to take CURRENT PAGE alone.
    Please help me out.
    Thanks and regards,
    Christy

    Hi try67,
    Thanks for your support.
    I got the result.
    Thanks and Regards,
    Christy

  • How to show modal window without popup in a web page using javascript

    Hi,
    How to show modal window without popup in a web page using javascript, means when the modalwindow is opened it should not ask for popup blocker alert......
    pls help me.....

    Thanx for ur reply,
    Actually the senario is when i click on a button, another jsp page should be displayed in a modal window without popup, but the functions alert() and confirm() will not accept the url path of the another jsp page...

  • Controlling shockwave content (dcr) from a web page using javascript

    Hi,
    Is it possible to control shockwave content (dcr; object="application/x-director") from a web page using javascript?
    I believe this is possible using 'FSCommand' in Flash...
    I'd like to use HTML to do something like:
    - html_object[1].go(10);
    to send playback to frame 10.
    Thanks.
    Mark

    Sean,
    Thanks - this is exactly what I was looking for.
    'Shockingly' difficult ( pun intended :-)
    Someone really put in some effort on this.
    Very creative solution, putting a flash ( swf ) component in a director project and communicating indirectly through the flash element.
    Apparently, Javascript can communicate with the SWF file & the SWF file can communicate with the DCR file, but it is not possible to have Javascript communicate directly with the DCR. Too bad.
    After looking over this example I think I'll rethink my project.
    Thanks again.
    Mark

  • How to set a pop up calendar control in pdf  form using javascript?

    I'd like to add a pop up calendar control in a PDF form using Adobe Javascript.
    The user should be able to select a date from the calendar control.
    Awaiting a solution at  the earliest.

    Let's say I did provide you with a solution... Wouldn't that be a "third-party solution" as well?
    These tools are not compiled, you know. You have direct access to their source-code and can make sure they don't do anything else beside what they're supposed to do.

  • How to generate a pdf file using javascript?

    I would like to generate a pdf file having images in it using javascript. I tried jsPDF but getting some exceptions like
    Uncaught ReferenceError: pageWidth is not defined,
    fail to load pdf document
    Could anyone show me some pointers?
    Thank You
    Rahul

    Here is my code
    var myImg=new Image();
      myImg.src=arrData['employee'][1]['Image'];
      myImg.crossOrigin ="Anonymous";
       var imgData = this.getBase64Image(myImg);
       var doc = new jsPDF();
       doc.setFontSize(40);
       doc.text(35, 25, "Test Image");
       doc.addImage(myImg, 'JPEG', 15, 40, 180, 160);
       doc.save("sample1.pdf");
    I'm receiving the following error at 'addImage' function.
    Uncaught Error: getJpegSize could not find the size of the image
    Could you please help in pointing out where am I going wrong.
    Thank You

  • How to Redirect to another page Using JavaScript in ADF Faces?

    Hi Guys,
    I have a UI user case that has a af:menu which contains mutiple af:goMenuItem. When user click on the menu, the menu slides down and shows up the af:goMenuItem. As we know, you could define the page destinations in af:goMenuItem to go to another page when user clicked, but af:menu itself cannot be redirected to another page. Well, the user case wants the menu itself could be redirected if user click on it.
    So I am thinking using JavaScript to do this: when the af:menu gets clicked, redirect to another page. BUT, I looked over the ADF Faces Javascript API and was not able to find that piece of code to do this. Any help???
    Another work around for the user case scenario is to use HTML marks + CSS/JavaScript instead of af:menu and af:goMenuItem but this changes the scope of technology although it's not hard to do
    Any other idea to accomplish the user case other than what I could think of ?
    Thanks Guys!
    Jay

    Hi,
    1 - you can have a hidden command item to do the navigation based on a control flow case. In this case, you access the command component from JavaScript create a new ActionEvent and queue it
    2 - JavaScript can use an af:serverListener to call into a server side managed bean method to perform the navigation
    there is no JavaScript API for navigation in ADF Faces because navigation in JavaServer Faces is an event driven framework and we don't support developers fighting the framework.
    Frank

  • SharePoint 2013 implement simple logout button which do not redirect to default sign out page using JavaScript client object model

    I am using windows authentication in my web application.
    My requirement is to implement a sign out button which will sign out the user without having him to close the browser and application should not ask him to login again.
    I tried following two options:
     1. Redirecting the user to default signout.aspx page " /_layouts/15/SignOut.aspx "
     2. Using "Sign In as a different user" URL " /_layouts/15/closeConnection.aspx?loginasanotheruser=true "
    In first case, user is redirected to default sign out page but he can press "Go Back to Site" link to revisit the site. Another major issue is that the user has to close the browser to sign out from the application completely, which is not desirable
    in my project requirement.
    In second case, the the current user is signed out of the application but if the user has saved the password in browser, he gets signed in automatically to the application.
    I also came across the solution where we replace the default sign out page with a custom sign out page, but I am not sure whether it can be implemented using JavaScript Client Object Model of SharePoint.

    Hi 
    I'm basically looking for the exact answer for the query.
    Meanwhile you need to go through the link mentioned below in order to understand how to do it.
    Debugging and Logging Capabilities in SharePoint 2010
    Indul Hassan
    Microsoft Community Contributor
    http://www.indulhassan.com
    You Snooze.. You Lose !!

  • Accessing objects of pdf file using javascript

    Is there a way, using javascript, to accsess objects that are defined in the pdf file, but where not defined using javascript.
    I would like for instance, to access a text stream, or any kind of stream using javascript.
    Thanks
    Moshe

    Not possible with Javascript.

  • How to manipulate pdf files using javascript in action wizard

    Respected all ,
    I am a software programmer from india and i want to make a programe which can do below described things :
    I want to know that how can i achive this kind of steps using javascript in acrobat XI :
    for ex. if i have  4 pdf files :  800123-001.pdf , 800123-002.pdf    and  800555-001.pdf , 800555-002.pdf
    then i want to do using javascript
    step 1 :  pdf to ps , output should be : 800123-001.ps , 800123-002.ps , 800555-001.ps , 800555-002.ps
    step 2 : ps to pdf (acrobat distiller ) : 800123-001.pdf  , 800123-002.pdf , 800555-001.pdf , 800555-002.pdf
    step 3 : pdf merge : 800123.pdf  - > which contains both : 800123-001.pdf and 800123-002.pdf
                   and                     800555.pdf -> which contains both : 800555-001.pdf and 800555-002.pdf
    ----------END------------
    Is it possible using javascript in acrobat or any other way ?

    i can not access adobe site .. can you plz replay me on my personal e
    mail.. [removed personal contact info, please send a forum message instead]
    On Wed, Jun 19, 2013 at 1:16 AM, Test Screen Name
    Message was edited by: sinious

  • To know the Status code of a HTML page using Javascript

    To know the Status code of a HTML page using Javascript

    Hello,
    I am not sure to understand, which status are you talking about? The HTTP Status?
    If your javscript is executed it is more or less sure that the HTTP Status is 200 since the request is back to the browser.
    or are you talking about this is in the context of a XMLHTTPRequest call ?
    Regards
    Tugdual Grall

  • Readdle PDF Expert using JavaScript forms

    Hi there,
    I am trying to build a form that will handle three successive dependent drop-down menus.  I have this working as both a static and interactive PDF in Adobe Reader.  However, I need to ensure there integration with tablets and smart phones via the Readdle PDF Expert app.
    According to Readdle's website, this is the limit of their APIs: https://helpspot.readdle.com/en/index.php?pg=kb.page&id=465
    This code fails with PDF Expert.  Is there a way of achieving the same result with PDF Expert's API?
    FIRST DROPDOWN:
    form1.#subform[0].productGroup::exit - (JavaScript, client)
    productRange.clearItems();
    productFields.clearItems();
    switch(this.formattedValue)  {
       case "Bath panels":
         productRange.addItem("Aspen");
         productRange.addItem("Contemporary");
         productRange.addItem("Evolution");
         break;
       case "Cabinets":
         productRange.addItem("Contemporary cabinets");
         productRange.addItem("Sensory");
         break;
       case "Mirrors":
         productRange.addItem("Clarity");
         productRange.addItem("Source");
         break;
    SECOND DROPDOWN:
    form1.#subform[0].productRange::exit - (JavaScript, client)
    productFields.clearItems();
    switch(this.formattedValue)  {
      case "Aspen":
        productFields.addItem("White");
        break;
      case "Contemporary":
        productFields.addItem("Beech");
        productFields.addItem("Walnut");
        productFields.addItem("Oak");
        break;
      case "Evolution":
        productFields.addItem("White");
        break;
      case "Contemporary cabinets":
        productFields.addItem("Aluminium");
        productFields.addItem("Walnut");
        productFields.addItem("White");
        break;
      case "Sensory":
        productFields.addItem("Oak");
        productFields.addItem("Walnut");
        productFields.addItem("White");
        productFields.addItem("Glass");
        break;
      case "Clarity":
        productFields.addItem("Silver");
        productFields.addItem("Glass");
        break;
      case "Source":
        productFields.addItem("Glass");
        productFields.addItem("Unclassified");
        break;
    Any help would be much appreciated!
    Thanks,
    Rob.

    Hi;
    FormsCentral PDF forms have to be filled out using Adobe Reader or Adobe Acrobat, on the iPad using Adobe Reader you can submit our PDF forms.  I will have to check out what happens with PDF Expert, it should not tell you it completed successfully, but I can say that we do not expect any other PDF viewer applications to be able to submit our forms, only from Adobe Reader/Acrobat.
    Thanks,
    Josh

  • HOW TO KEEP TEXT AT BOTTOM OF PAGE USING JAVASCRIPT-ANSWERED

    UPDATE 5/12/2006: MORE COMPATIBLE CODE:
    Was using OnRequestEnd.cfm to load copyright info at bottom
    of each page but page size varied and copyright info would appear
    at different points on different pages. Didn't look good. Could not
    use tables to align the text for output reasons. Coded a way using
    CSS and JavaScript to keep text at bottom of each page. Be careful
    with CFFORM, us have to set the attribute 'wMode=transparent' in
    CFFORM so text is above form. Tested in IE and Netscape. Put at end
    of individual templates or inside OnRequestEnd.cfm - Enjoy!
    (css goes in your external css file or between local style
    tags)
    .copyright{background-color:#d8d8d8;color:Black;font-size:10px;font-family:Arial;width:10 0%;text-align:center;}
    body {border-bottom-width:0px;}
    (following goes at end of page or in OnRequestEnd.cfm)
    <span id="x" class="copyright">
    my copyright
    </span>
    <!--- *** KEEPS COPYRIGHT LINE AT ABSOLUTE BOTTOM OF EACH
    PAGE --->
    <script>
    if(document.body.scrollHeight <
    document.body.clientHeight){
    var s = 0;
    document.getElementById('x').style.cssText='position:absolute;bottom:'+s+';';
    else {
    var s = document.body.scrollHeight;
    document.getElementById('x').style.cssText='position:absolute;top:'+s+';';
    </script>

    To change it for a given text frame, the frame must be selected when you execute the menu command.
    AlyMcF1 wrote:
    …how can I apply this to the majority (400+) of my text frames at once?
    To change the setting of existing frames throughout your document, use Edit > Find/Change.
    Choose the Object tab.
    Set the Search: field to Document.
    Set the Type: field to Text Frames.
    If there is a formatting attribute common to all the text frames you want to target and change, click the glass/frame icon next to the Find Object Format field to access the Find Object Format Options dialog and set that common attribute.
    Click the glass/frame icon next to the Change Object Format field to access the Change Object Format Options dialog and set the Align: field to Justify under Basic Attributes > Text Frame General Options > Vertical Justification.
    Step through the Find Next/Change sequence to selectively apply the change, or click the Change All button if you're certain you want all the found frames changed.

  • Can I make an Imageboard in a HTML page (using JavaScript)?

    Hello all.
    Just like to say that this is my first post on the Adobe forums!
    Anyways, I've started a website project in Dreamweaver CS6 (full version) and will probably be using Photoshop (CS6) for some parts of the site too. It's gonna be pretty basic but I want to make an imageboard (with JavaScript? I'm not sure...) where users who have logged in can post an image on the feed with a comment/caption to go with it.
    How can I do this? Can anyone point me to a good tutorial on how to make this? Do I do it with JavaScript on the HTML page? (P.S. I am mildly experienced with HTML).
    Thanks in advance!

    Unfortunately, there isn't anything in DW that can do this type of thing for you, although if you were to learn php and mySQL you definitely could use DW to create a site with those types of features.
    There's actually quite a bit that goes into that kind of thing, more than just basic code, you need to think about security especially if you plan to allow someone to upload files, potentially infected with viruses, to your server.
    If you're talking about creating a basic forum (being able to start topics, post pics and comments), there are a lot of free and paid solutions available online. Certain hosting companies even give you basic forums you can add to your site by following the instructions on their pages.
    Unless you have a lot of time on your hands to learn all the ins and outs of PHP and the security necessary to keep your site and server safe, I'd suggest going that route.

  • Reload Page using Javascript

    I developed a Captivate 8.01 project and I'm using Moodle as LMS.
    I need to "Reload" the main web browser page when I Exit the project, so I tried using this JavaScript code: "location.reload(true);" but is not working.
    Should I use the Captivate Common JS interface to run this code, and if true, how do I do that (how do I implement it)? Thank you.

    I tried both but it didn't work. Wondering if changes to the Captivate html file are correct.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <!-- Copyright [2012] Adobe Systems Incorporated.  All rights reserved -->
    <html lang="en">
      <head>
           <link rel="stylesheet" type="text/css" href="captivate.css" />
           <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
           <title>FRA 218 - Engineering</title>
           <!-- Include external JS files -->
           <script language="JavaScript1.2" src="standard.js" ></script>
           <script language="JavaScript1.2" src="scormdriver.js" ></script>
           <script language="JavaScript1.2" src="SCORM_utilities.js" ></script>
           <script language="JavaScript1.2" src="Utilities.js" ></script>
           <script language="JavaScript1.2">
           //Register event handlers
           window.onkeypress   = CheckForDebugCommand;
           window.onload = OnloadActivities;
           window.onbeforeunload = DoFinish;
           window.onunload = DoFinish;
           blnDebug = false ;
      </script>
    </head>
      <body bgcolor="#f5f4f1" onUnload="window.opener.location.reload();">
           OR
    <body bgcolor="#f5f4f1" onUnload="window.opener.location.href = window.opener.location.href;">
              <div id = "CaptivateContent">
                <noscript>
                     This course requires JavaScript to be enabled in your browser.
                     Please enable JavaScript, then relaunch the course.
                </noscript>
           </div>
      </body>
    </html>

Maybe you are looking for

  • Change the Colour of the Text  Field

    Hi Friends, I want to write a validate trigger for Form 6 , where there 2 Fields , 1.DAYTYPE, 2.NAME . If the user select absent name field should get red else it should be normal . or in short (Conditional Formating). Sandy

  • My ipad is stuck on safari

    my ipad is stuck on safari only

  • Sound Application Problems

    Hello, Ive been working on a small sound application that just plays music when is starts up. Ive got this: import java.applet.AudioClip; import java.applet.Applet; import javax.swing.*; import java.net.URL; class Soundf extends JFrame {      public

  • Posting date for MB52 and MB58

    Hi,   I want to add posting date on the selection screen of standard transaction MB52 and MB58 for selecting the stocks within the posting period. I want the table name and the field name for the posting date.                  <b>Helpful answers will

  • CProjects and xRPM integration

    Hello Friends, I am working on portfolio management(xRPM ABAP), i want to integrate capacity management & cost with cProjects. Could you tell me the settings i needed to do for my reqirement. Thanks. Regards, Senthil.