JavaScript in the PDF can hide toolbar buttons

Hi Leonard,
You mentioned in http://forums.adobe.com/message/2161074#2161074 that "JavaScript in the PDF can hide toolbar buttons."
According to the Javascript docs for Acrobat 7 the App.HideToolbarButton function only runs at AppInit.  Which means that I would have to have the javascript in a file.  How can I do that from within the document?  Is there another way to to do set this from our web application?
Rob

Perhaps that's simply a feature that isn't supported by presenting a Captivate intended for the web from inside a PDF?
Just guessing... Rick

Similar Messages

  • How can I change the width of bookmark toolbar buttons?

    I would simply like to alter the width of bookmark toolbar buttons to better display the bookmark title. I also have MultirowBookmarksToolbar addon installed.

    Add code to [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line.
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    </nowiki></pre><pre><nowiki>#personal-bookmarks toolbarbutton.bookmark-item { max-width: 20em; }</nowiki></pre>
    You can use this code for specific bookmarks (label name needs to be an exact, case sensitive, match)
    <pre><nowiki>#personal-bookmarks toolbarbutton.bookmark-item[label="Bookmark_Name"] { max-width: 20em; }</nowiki></pre>
    See http://kb.mozillazine.org/Editing_configuration

  • Need File-Save as-PDF as a toolbar button and one item on menu

    What I'd like to see is a single menu line item and button added for File ->Save as ->PDF.  Right now, you have to open three menus to perform this function,and there is not a toolbar button offered at all.  Every document I save in this program is in PDF format, so it is frustrating to have to perform this action every time.  There are keystroke combinations (Shift + Control + S) but I tend to use the mouse more than the keyboard.

    Here's some barebones code to add a Save As toolbar button. It goes in a folder-level JavaScript file that you have to create and install properly:
    var mySave2 = app.trustedFunction(function(doc) {
        app.beginPriv();
        var oFS = app.browseForDoc({bSave: true, cFilenameInit: doc.documentFileName, cWindowTitle: "Save As"})
        if (oFS) {
            doc.saveAs({cPath: oFS.cPath});
        app.endPriv();
    app.addToolButton(
        cName: "ToolbarSaveAs2",
        cLabel: "Save As",
        cExec: "mySave2(this);",
        cEnable: "event.rc = app.doc;"
    For more information on folder-level scripts, see: http://acrobatusers.com/tutorials/print/entering-folder-level-scripts
    and for updated info, see: http://acrobatninja.blogspot.com/2011/09/acrobat-1011-javascript-changes.html
    As Dave mentioned, in Acrobat 10 you'll have to add the new button from "Tools > Add-on Tools" to the Quick Tools toolbar by right-clicking it and selecting "Add to Quick Tools Toolbar".

  • Protect javascript inside the PDF from de-compilation

    Hi Guys,
    I have developed an fillable PDF using acrobat, which will publish to public. some of the input field needed to be validated using some javascript.
    When I google the de-complilation pdf, I found that some free de-compilation pdf tool and easily de-compile the pdf and my javascript can be found inside the result.
    because these javascript is sensitive that I don't want it to be exposed to public, is there anything I can do to hide the javascript?

    The Reader Extension hash won't stop someone from extracting content; it can potentially make it a little harder but if you can open a file in a non-Adobe application you can always extract content, no matter what the settings are.
    DRM is the only reliable method of file-level security as it ensures only Adobe Reader or Acrobat can be used to open it. However when a secured file is running you still have access to the console, so determined snooping remains possible.

  • How to remove the delete and edit toolbar buttons from the Overview page

    Hi,
    In the account/contact overview page, we see that the interaction history assignment block does not support the EDIT and DELETE options.
    However, when we click on the hyperlink description of an activity in the interaction history, we get into the overview page of the activity. Here we can see the DELETE button and the EDIT button.
    Is there a way to remove these two options from the overview page of an activity which is in COMPLETED status and in the interaction history section?
    Please advice.
    Thanks & Best Regards,
    Ramesh.
    PS: We use CRM 5.2 Web UI.

    You can hide the box that shows the snippets and the "Restore Previous Session" box with code in userContent.css
    *http://kb.mozillazine.org/userContent.css
    *http://kb.mozillazine.org/Editing_configuration
    You can use the ChromEdit Plus or Stylish extension to have easier access to the customization files.
    *ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html
    <pre><nowiki>@-moz-document url(about:home){
    /* hide snippet container on the about:home page */
    #snippetContainer { display: none !important; }
    /* hide sessionRestore container on the about:home page */
    #sessionRestoreContainer { display: none !important; }
    </nowiki></pre>

  • I have written and saved a PDFccess to the data. The PDF can be opened. But what I have written, I can not see. How can I open the text?

    Kann mir jemand helfen?

    Hi Udo,
    Are you converting the PDFs to Word format, so that you can open them in Word to edit? (Word doesn't let you open PDF files directly).
    Have you tried opening the PDF files in Adobe Reader? If you don't have Reader, you can download it from http://www.adobe.com/products/reader.html.
    Best,
    Sara

  • Issue with the FR translation for toolbar buttons and title bar

    Hi All,
    In a report program I have a toolbar with some custom buttons and icons (GI Status) and I have a title bar (GUI Title) with the report heading.
    I have FR translations defined for them in SE63, but they are not actually displayed when I run report in FR language.
    All other translation work fine, only GUI Status and GUI Title translations donu2019t work.
    Your help will be highly appreciated.
    Sagar

    hi sagar,
    1.go to se41
    2. give the report name
        and status name.
    3.then change mode
    then click on application tool bar
    4.menu GOTO---->TRANSLATION
    5. here you can change from EN to FR
    reward me if it is useful
    thanks
    AM

  • How to force using the adobe reader to view the PDF by javascript / PHP / HTML?

    I use the standard way to embed a pdf to my website, however, when I open it the browser will choose the default pdf viewer instead of the adobe reader. I can change it manually by looking at the browser option but it would not be nice if the website visitor need to do this manually. So I would like to know how to force the browser to open the PDF in adobe by using some HTML header / javascript / php or any parameter in object tag. Thanks.
    <object id = 'zoomPage' type='application/pdf' data= '" + sourceFolder + "SingTao/2013/08/17/0/0/A/Content/pdf/pdf_" + currZoomPageNo + ".pdf#toolbar=1&navpanes=0&statusbar=0&messages=0&pagemode=read'><p>The PDF can not display</p></object>

    I know this problem related to the browser behaviour so I would target only :Chrome firefox and IE 9+ (it is ideal if IE8 can also adopt the solution) thanks

  • I cannot view PDF in Firefox at the first time but once I manually open the PDF file from my local computer, I can view other PDF files via Firefox webbrowser

    I install Adobe Acrobat 9 in my laptop which runs on windows 7. I use Firefox 3.6.8 and have the problem with the PDF file. The problem is I cannot open the PDF file in Firefox web browser at the first time I launch firefox. It shows a warning box without any message. Only OK button is shown so I can close it. However, if I manage to open the PDF file from my local computer by just using adobe acrobat itself then the PDF can be opened in the Firefox web browser. I followed the instruction on the mozilla help but nothing works for me. The problem still exists. I wonder if anyone have the same problem like me and know how to solve this. Thank you so much

    Hi there!
    I cannot help you, but I think we have a common problem: We got a system here running Vista SP1 with Acrobat 9 standard on it. When we open a pdf file it works normally, but when we open another pdf file, we see the first one in that second window.
    Think that missing option to watch several files within a single window-thing messed up more than meets the eye ... but as we just purchased the 15 licenses, we have to use version 9.
    I didn't find any clues on this problem, but I will post any new hints I get.

  • How to hide save button / read mode only in browser adobe viewer?

    Currently I embed a pdf to my website , the problem is, I would like to show the read mode only instead of a full tool bar to the visitor , also , I would like to hidden the save file option .
    I checked there is an open parameter in the offical document that can specific
    toolbar=1&navpanes=0&statusbar=0&messages=0
    However, can I specific what opition is allow in the toolbar (actually I would like to allow only zoom function )
    Are there any way to doing this? Thanks.
    <object id = 'zoomPage' type='application/pdf' data= '" + sourceFolder + "/2013/08/17/0/0/A/Content/pdf/pdf_" + currZoomPageNo + ".pdf#toolbar=1&navpanes=0&statusbar=0&messages=0'><p>The PDF can not display</p></object>

    Much of the documentation for Acrobat JavaScript has not changed and still operates exactly as it did with Acrobat 3.1 so it is possible that the old documentation is still valid. I have found that the Acrobat JavaScript Guide fro
    version 5 has some very excellent documentation about the field object UI for the various form Fields.
    If one goes to the Acrobat Developer Center and uses the Working with Distiller, Fonts and more and the uses the PDF Open Parameters one gets the documentation from the version 9.0 SDK form June 2008. This document probably has not been updated since then.  Another issue to consider is the changes in IE, the number of new web browsers, and the introduction of HTML 5 all of which could change how parameters are passed or allowed. This technique has always been problematic.
    Within an external viewer, it is not possible to show/hide the toolbars.
    app.toolbar

  • Example: Customized Segmented ToolBar Buttons

    Hi,
    I have some mistake when I tried the example [Customized Segmented ToolBar Buttons|http://fxexperience.com/2012/02/customized-segmented-toolbar-buttons/] from Richard Bair.
    My css
    #background {
        -light-black: rgb(74, 75, 78);
        -dark-highlight: rgb(87, 89, 92);
        -dark-black: rgb(39, 40, 40);
        -darkest-black: rgb(5, 5, 5);
        -mid-gray: rgb(216, 222, 227);
        -fx-background-color: -mid-gray;
    .segmented-button-bar .button {
        -fx-background-color:
            -darkest-black,
            -dark-highlight,
            linear-gradient(to bottom, -light-black 2%, -dark-black 98%);
        -fx-background-insets: 0, 1 1 1 0, 2 1 1 1;
        -fx-background-radius: 0;
        -fx-padding: 0.4em 1.833333em 0.4em 1.833333em;
    .segmented-button-bar .button.first {
        -fx-background-insets: 0, 1, 2 1 1 1;
        -fx-background-radius: 3 0 0 3, 2 0 0 2, 2 0 0 2;
    .segmented-button-bar .button.last {
        -fx-background-insets: 0, 1 1 1 0, 2 1 1 1;
        -fx-background-radius: 0 3 3 0, 0 2 2 0, 0 2 2 0;
    .segmented-button-bar .button:pressed {
        -fx-background-color:
            -darkest-black,
            rgb(55, 57, 58),
            linear-gradient(to top, -light-black 2%, -dark-black 98%);
    }My fxml
    <BorderPane
        fx:controller="de.pro.typwriter.welcome.WelcomeActivity"
        xmlns:fx="http://javafx.com/fxml">
        <top>
            <HBox alignment="top_right" styleClass="segmented-button-bar">
                <children>
                    <Button text="About" onAction="#onActionGoToAbout" styleClass="first" />
                    <Button text="Help" onAction="#onActionGoToHelp" styleClass="last" />
                </children>
            </HBox>
        </top>
    </BorderPane>When I have the links styleClass="first" and styleClass="last" in the css-file this exception is thrown:
    SEVERE: javafx.scene.control.Control impl_processCSS The -fx-skin property has not been defined in CSS for Button@100bac2[styleClass=first]
    SEVERE: javafx.scene.control.Control impl_processCSS The -fx-skin property has not been defined in CSS for Button@e51b2c[styleClass=last]After removing the links in the buttons the following exception is thrown:
    WARNING: com.sun.javafx.css.StyleHelper lookup caught:
    java.lang.ClassCastException: java.lang.String cannot be cast to javafx.scene.paint.Paint
         at com.sun.javafx.css.converters.PaintConverter$SequenceConverter.convert(Unknown Source)
         at com.sun.javafx.css.converters.PaintConverter$SequenceConverter.convert(Unknown Source)
         at com.sun.javafx.css.Value.convert(Unknown Source)
         at com.sun.javafx.css.StyleHelper.lookup(Unknown Source)
         at com.sun.javafx.css.StyleHelper.lookup(Unknown Source)
         at com.sun.javafx.css.StyleHelper.transitionToState(Unknown Source)
         at javafx.scene.Node.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.control.Control.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.Parent.impl_processCSS(Unknown Source)
         at javafx.scene.Node.processCSS(Unknown Source)
         at javafx.scene.Scene.doCSSPass(Unknown Source)
         at javafx.scene.Scene.preferredSize(Unknown Source)
         at javafx.scene.Scene.impl_preferredSize(Unknown Source)
         at javafx.stage.Window.adjustSize(Unknown Source)
         at javafx.stage.Window.access$700(Unknown Source)
         at javafx.stage.Window$13.invalidated(Unknown Source)
         at javafx.beans.property.BooleanPropertyBase.markInvalid(Unknown Source)
         at javafx.beans.property.BooleanPropertyBase.set(Unknown Source)
         at javafx.stage.Window.setShowing(Unknown Source)
         at javafx.stage.Window.show(Unknown Source)
         at javafx.stage.Stage.show(Unknown Source)
         at de.pro.typwriter.manager.TypWriterManager.initApplication(TypWriterManager.java:122)
         at de.pro.typwriter.TypWriter.start(TypWriter.java:34)
         at com.sun.javafx.application.LauncherImpl$5.run(Unknown Source)
         at com.sun.javafx.application.PlatformImpl$4.run(Unknown Source)
         at com.sun.javafx.application.PlatformImpl$3.run(Unknown Source)
         at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
         at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
         at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:662)
    WARNING: com.sun.javafx.css.StyleHelper lookup styleable = 'artificial' StyleableProperty {property: -fx-background-color, converter: Paint.SequenceConverter, initialValue: <Value>
      <value values="1">
        <Value>
          <value>Color[red=0,green=0,blue=0,opacity=1.0]</value>
          <converter>null</converter>
        </Value>
      </value>
      <converter>Paint.SequenceConverter</converter>
    </Value>
    WARNING: com.sun.javafx.css.StyleHelper lookup resolved = <Value>
      <value values="3">
        <Value lookup="true">
          <value>-darkest-black</value>
          <converter>null</converter>
        </Value>
        <Value lookup="true">
          <value>-dark-highlight</value>
          <converter>null</converter>
        </Value>
        <Value>
          <value values="7">
            <Value>
              <value>0.0%</value>
              <converter>null</converter>
            </Value>
            <Value>
              <value>0.0%</value>
              <converter>null</converter>
            </Value>
            <Value>
              <value>0.0%</value>
              <converter>null</converter>
            </Value>
            <Value>
              <value>100.0%</value>
              <converter>null</converter>
            </Value>
            <Value>
              <value>NO_CYCLE</value>
              <converter>null</converter>
            </Value>
            <Value>
              <value values="2">
                <Value>
                  <value>2.0%</value>
                  <converter>null</converter>
                </Value>
                <Value lookup="true">
                  <value>-light-black</value>
                  <converter>null</converter>
                </Value>
              </value>
              <converter>StopConverter</converter>
            </Value>
            <Value>
              <value values="2">
                <Value>
                  <value>98.0%</value>
                  <converter>null</converter>
                </Value>
                <Value lookup="true">
                  <value>-dark-black</value>
                  <converter>null</converter>
                </Value>
              </value>
              <converter>StopConverter</converter>
            </Value>
          </value>
          <converter>LinearGradientConverter</converter>
        </Value>
      </value>
      <converter>Paint.SequenceConverter</converter>
    </Value>
    WARNING: com.sun.javafx.css.StyleHelper lookup node = ButtonSkin[id=null, styleClass=button]Any idea?
    NetBeans 7.1, Windows XP, JavaFX 2.0.2

    I haven't tried the code locally, but I'm sure that this is due to Richard building his demo with the developer preview JavaFX 2.1, which features numerous improvements to FXML. I note you're using the JavaFX 2.0.2 GA release. If you are in a developer environment (i.e. you aren't deploying to end users), you may want to consider upgrading to JavaFX 2.1 Developer Preview builds. You can go here to download the builds (and note that the builds are updated weekly):
    http://www.oracle.com/technetwork/java/javafx/downloads/devpreview-1429449.html
    -- Jonathan

  • Extract Pantone color from the PDF using c#.

    hi i have an requirement to extact pantone color from PDF. So i had decided will  go for acrobat.dll or illustrator library to get pantone and other color from the PDF.Can you please help me out how to proceed and get pantone color from PDF using c#.thanku in advance

    If the PDF has Pantone colors in it, you can use output preview to see it. If you want a Pantone equivalent of a CMYK value you can do this:
    In Illustrator, make a cmyk swatch of the desired color, open the Color Guide panel (Window > Color Guide), then press the Swatch Library button in the panel's lower left corner and choose color books> Pantone+solid coated. Clicking the first color in the Color Harmony section (the Base Color) at the top of the panel will add the closest PMS Spot Color equivalent to your Swatches panel.
    There is often no exact 4/C match for a spot color, but this method will get you in the ballpark.

  • Hide (not disable, hide) a button

    Hello people!
    Somebody can tell my how i can hide a button and how i can changed the label, i tryed with set itemproperty('button', displayed, PROPERTY_FALSE) & set_item_property('button', label, 'newname')for each case, but doesn´t work...any idea?

    hello, thanks all for your answers
    i want to clarify my situation to see if i have any error that make that my set_item_property('block.item',VISIBLE, PROPERTY_FALSE) doen't work properly:
    1.- i have a WHEN-NEW-FORM-INSTANCE trigger that take a parameter from url and if it value is 'cliente' hide items and change the label of a button..:
    if :PARAMETER.TIPO = 'cliente' then
         set_item_property ('avance_caso.cerrar_caso',label, 'Solicitar Cierre');     
         set_item_property ('avance_caso.publicar', VISIBLE, PROPERTY_FALSE);
         set_item_property ('avance_caso.horas', VISIBLE, PROPERTY_FALSE);
    elsif :PARAMETER.TIPO ='analista1' then
         set_item_property ('avance_caso.cerrar_caso',label, 'Cerrar Caso');
    elsif :PARAMETER.TIPO ='analista2' then
         set_item_property ('avance_caso.cerrar_caso', VISIBLE, PROPERTY_FALSE);
    end if;     
    where: avance_caso.publicar is a check box item
    avance_caso.horas is a text item
    avance_caso.cerrar_caso is a button
    i have to put the set_item_parameter in anothe place maybe? or i have to do another thing?
    Beatriz

  • ToolBar Button State

    Hello,
    i am working on the TestStand 4.0 User Interface with C#.
    Now i have built a ToolBar under the MainMenu. I can invoke the Commands by clicking ToolBar Buttons, and get the actual state (enable/disable) of most buttons, except Cut/Copy/Paste.
    I don't think that the TestStand API or UI provides any method to indicate the custom UI Controls state. My last hope is to catch all WM_LBUTTONDOWN and WM_RBUTTONDOWN messages in the Sequence- and Variable-View. If something editbar is selected, set the Cut/Copy/Paste state to enable.
    Have somebody better idea? Thanks!
    Regards
    MY

    Hi, James Grey,
    thank you for your reply. English is not my mother tongue language
    I have used the ToolStrip in Visual Studio 2005.
    I have tried setting a timer with interval of 2000 ms, it worked, but i don't think it is a efficient way. You know, the TS 4.0 is using much memory.
    I will try your suggestion (b), it is really a clever solution.
    Regards
    MY

  • What's happened to Hide Toolbar in Full Screen?

    Before Mavericks I could hide the toolbar in full screen.
    At present when I right click on the toolbar the option to hide toolbar is no longer there.
    When I go to Menu then View the option Hide Toolbar is greyed out.
    Is there another way to hide the toolbar in full screen?
    Why are Apple driving people to other web browsers?

    Hide/Show Toolbar grayed out?
    Perhaps a Safari extension causing this ...
    From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test.
    If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.

Maybe you are looking for

  • ITunes is empty, how do I get my files back into it?

    This morning I was trying to clean up my Macbook, get rid of applications I'm not using, clearing caches etc. (Everything was seeming to run a bit slow - which prompted the attempt to clean up unnecessary stuff) Something ended up happening with my i

  • Resize photo in Drop Zone

    I have just completed my first non-PC DVD creation!!! I have run into a problem that I can't figure out, I have checked the discussion groups and I don;t believe anyone other than me has run into this: I grabbed some photos (3) from my iPhoto collect

  • Reporting Agent versus Query

    Hi, I run a query in the BEx by selecting 2 cost centers A and B and I receive both results. When I execute the job with the reporting agent I receive only the first cost center. How can I debug this ? Any idea what could be the reason ? Thanks for y

  • Importing external web service with SSL certificate security

    Hello, I'm trying to import an external web service (that resides in another server, independent of ours). However, right after I enter the WSDL in the import window I get the following error in the NWDS: sun.security.validator.ValidatorException: PK

  • Change the SMTP Port number in OIM

    Hi All, I have an email server that its SMTP port is 135. My question is: How can I change the SMTP Port from 25 to 135 in OIM? Because the notificacions are sent by Port number 25 Thanks & Regards, Ariel