• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3622
  • Last Modified:

Embedding PDF Files in Explorer

How can I show only the PDF document and not Adobe's toolbar in Internet Explorer?
0
edemcs
Asked:
edemcs
  • 4
  • 3
  • 2
  • +1
1 Solution
 
webwomanCommented:
You MUST show the Acrobat toolbar. It's not an option, it's part of the plugin. No toolbar, no PDF.
0
 
lexxwernCommented:
well, the user has to have a plugin for his/her browser, now if that plugin has an option of hiding toolbar, very good. but as far as i know, that option isn't there. i maybe wrong as i dont think i have the latest plugin.
0
 
Wouter BoevinkMasterCommented:
I tried some thins and this is what I found:

<OBJECT id=PDF height=450 width=450 classid="clsid:CA8A9780-280D-11CF-A24D-444553540000">
     <PARAM NAME="SRC" VALUE="mainpage.pdf">
</OBJECT>
<script language=javascript>
alert('test')
PDF.setShowToolbar(false)
</script>

The weird thing is that if I leave out the alert('test') the PDF.setShowToolbar(false) isn't working.

METHODS:

PDF.AboutBox
PDF.goBackwardStack
PDF.goForwardStack
PDF.gotoFirstPage
PDF.gotoLastPage
PDF.gotoNextPage
PDF.gotoPreviousPage
PDF.LoadFile
PDF.Print
PDF.printAll
PDF.printAllFit
PDF.printPages
PDF.printPagesFit
PDF.printWithDialog
PDF.setCurrentPage
PDF.setLayoutMode
PDF.setNamedDest
PDF.setPageMode
PDF.setShowScrollbars
PDF.setShowToolbar
PDF.setView
PDF.setViewRect
PDF.setViewScroll
PDF.setZoom
PDF.setZoomScroll

PROPERTIES:
PDF.src

There should be some more information on the adobe website in the acrobat sdk but I couldn't find anything.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
edemcsAuthor Commented:
you are missing the semi-colon in your JavaScript.  That's probably why.  I'll try that, if it works I'll increase your points.  Thanks.
0
 
Wouter BoevinkMasterCommented:
"you are missing the semi-colon in your JavaScript."

I only wish it was that simple :-)
0
 
edemcsAuthor Commented:
that doesn't work either
0
 
Wouter BoevinkMasterCommented:
Ok this page wroks

<HTML>
<HEAD>
<TITLE></TITLE>
<BODY bgcolor=black onload="disableToolbar()">

<OBJECT id=PDF style="LEFT: 0px; TOP: 0px" height=450 width=450 classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" VIEWASTEXT>
     <PARAM NAME="SRC" VALUE="mainpage.pdf">
</OBJECT>

<script language=javascript>
function disableToolbar(){
PDF.setShowToolbar(false);
}
</script>
</BODY>
</HTML>
0
 
edemcsAuthor Commented:
Great work wboevink!  That information is rare!  Thanks, again.  -200 for webwoman for being so pessimistic :)
0
 
edemcsAuthor Commented:
Great work wboevink!  That information is rare!  Thanks, again.  -200 for webwoman for being so pessimistic :)
0
 
webwomanCommented:
I would be very surprised if that would work correctly for everybody... and I doubt if you'll be able to DO anything with the PDF. Like move from one page to the next... which is a pretty important thing to be able to do.

But I'd be happy to be proved wrong. Try it, see what the limitations are. I'm sure there are some.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now