🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.reader
Article #1414

Open PDF from custom menu

#1414
From: GBeaumont
Date: Sat, 07 Feb 2009 15:43
17 lines
1802 bytes
In Adobe Reader 9, there is no offline help available. We have retrieved rather ironically a PDF file copy of the Help content for Reader 9. I have been trying to add a custom menu item to launch the PDF from a chosen location.

I can create the menu structure using the following command:

app.addMenuItem({ cName: "Adobe Reader 9 Help", cParent: "Help", cExec: "????" });

The cExec doesn't load anything at this point because i haven't specified anything, but the menu item "Adobe Reader Help" is now visible.

N.B. I have at this point hidden all other menu structures/toolbar buttons using a HideMenuItems.js supplied on the online support pages, for anything related to the Internet to meet our customers needs.

When i try and add a cExec entry into this to open a document as shown below, the menuitem is no longer visible, which might suggest i am getting the syntax wrong here.

app.addMenuItem({ cName: "Adobe Reader 9 Help", cParent: "Help", cExec: "app.openDoc({ cPath: "/c/temp/myDoc.pdf")}" });

This is the app.opendoc example i have retrieved from the API Reference PDF file which suggests this format for Reader 8, which is close enough. Earlier Reader versions appear to use the following but this doesn't work either.

app.openDoc("/c/temp/myDoc.pdf")
Technical Details
Message-ID: <59b7d020.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: 10273d,1b3e84a5c217d734,start
X-Google-Attributes: gid10273d,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: GBeaumont@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.reader
Subject: Open PDF from custom menu
Message-ID: <59b7d020.-1@webcrossing.la2eafNXanI>
Date: Sat, 7 Feb 2009 07:43:06 -0800
Lines: 30
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit