Does anyone know how to view a pdf file in fullscreen, without any menu (pages, etc information) on the left side of the pdf.ocx. Maybe how to read a pdf into a picturebox. I know how to remove the toolbar etc.
Printable View
Does anyone know how to view a pdf file in fullscreen, without any menu (pages, etc information) on the left side of the pdf.ocx. Maybe how to read a pdf into a picturebox. I know how to remove the toolbar etc.
Welcome to the Forums.
You can use a javascript file to enable/disable/add/remove menus and toolbars. Then when you start
a process on Acrobat with your document as an argument you will get the results you want or close to it.
Only drawback is that if the user installs Acrobat Reader to a different location you will need to find it.
Thanks, I am a newbie. Could you give me an excample of the process to remove the left toolbar.
As mentioned I know how to remove the toolbar.
AxAcroPDF1.setShowToolbar(False)
Thanks in advance.
Thanks, I am a newbie. Could you give me an excample of the process to remove the left toolbar.
As mentioned I know how to remove the toolbar.
AxAcroPDF1.setShowToolbar(False)
Thanks in advance
Quote:
Originally Posted by RobDog888
Dont forget the drawback that to re-enable/show them you need to restart Acrobat with either
the code commented or remove the js file.
The js file must go in the directory -Code:disclosed = true;
var sPlatform = app.viewerVariation;
var sLogin = identity.loginName;
var sPos = "5";
if (sPlatform == "Reader") {
sPos = "5";
}
if (sPlatform == "Fill-In") {
sPos = "5";
}
if (sPlatform == "Full") {
sPos = "7";
}
//HIDE MENU ITEMS
app.hideMenuItem("Save");
//HIDE TOOLBARBUTTONS
app.hideToolbarButton("Save");
//DETERMINE THE USER LEVEL OF CONTROL
var sTemp = sLogin.toUpperCase();
switch (sTemp) {
case 'ROBDOG888' :
app.alert('Full Control Allowed To User: ' + sTemp,3,0);
default :
app.alert('Controlled Access Only!',3,0);
}
?:\Program Files\Adobe\Acrobat x.0\Reader\Javascripts\
HTH
Thanks a lot, it worked great.
No prob. Glad to help.
Actually that took me some time to figure out back when I did some development with Acrobat. :thumb: