Skip navigation
Currently Being Moderated

Hide only the left navigation pane (has buttons for layers, paperclip, etc.)

Apr 16, 2012 10:29 AM

Tags: #designer #attachment

Is there a script to hide only the left navigation pane containing the buttons (signatures, layers, paperclip, etc)? I can hide it manually by right clicking it and choose "Hide navigation pane buttons".

 

Thanks

 
Replies
  • Currently Being Moderated
    Apr 16, 2012 1:21 PM   in reply to DKinsley

    Try

     

    event.target.viewState = {overViewMode:5};

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 17, 2012 7:45 AM   in reply to DKinsley

    Then try ...

    event.target.viewState = {overViewMode:1};

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 17, 2012 7:48 AM   in reply to DKinsley

    Set it just the way you want manually then run this script in a button click to see what values to use:

     

    var vState = event.target.viewState.toSource();

    app.alert(vState );

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 17, 2012 1:26 PM   in reply to DKinsley

    Ok, here's another suggestion.

    There is another method to show/hide panes too, which is undocumented I think.

     

    // Minimize panes

    event.target.pane = "";

     

    // Show Bookmark pane

    event.target.pane = "B";

     

    // Show Layers pane

    event.target.pane = "L";

     

     

    // Show Thumbnail pane

    event.target.pane = "T";

     

    // Fullscreen mode

    event.target.pane = "F";

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2012 6:58 AM   in reply to DKinsley

    Do you test this in the PDF-Preview? This doesn't work.

    I tested the scripts above in the Acrobat and they worked as expected.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2012 7:45 AM   in reply to DKinsley

    I have no idea what you're wrong.

    Do you have the JavaScript activated in Acrobat?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2012 8:51 AM   in reply to DKinsley

    I'd no problems with your file.

    The script did what it should do.

     

    Does it work when you type it into the JS console of Acrobat?

    You have to replace "event.target" with "this" in that scenario!

    this.pane = "";

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2012 9:16 AM   in reply to DKinsley

    Ok, open Acrobat press Ctrl + J.

    The JS Debugger should open, if not it's not active (check Acrobat's preferences Ctrl + K > JavaScript > Enable Acrobat JavaScript + Enable interactive console).

     

    In the Debugger select the console view if it is not already selected.

    Below you'll see a window you can type in JavaScripts.

    Enter the script and press Ctrl + Return to execute it.

    JSConsole.png

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 18, 2012 10:22 AM   in reply to DKinsley

    Maybe I confused things.

     

    this.pane = ""; or this.viewState = {overViewMode:1}; or app.execMenuItem("ShowHideNavigationPane"); minimizes the left pane to the icon view.

     

    this.viewState = {overViewMode:5}; will hide it completly but also the scroll bar.

     

    There seems to be not way to hide the bar but keep the scroll bar active.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points