www.pudn.com > PDFView.rar > PDFViewOCX.html, change:2009-03-13,size:4293b


<html> 
 
	<head> 
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> 
		<title>VeryPDF.com - PDFViewer OCX Demo</title> 
        <script> 
        	  var nZoom = 100; 
            var res = true; 
            var nViewMode = 0; 
            function OpenFile(name){ 
            	PDFViewer.SetRegCode("XXXXXXXXXXX"); 
              res = PDFViewer.OpenPDF(name, "", ""); 
              if (res){ 
                window.status = name; 
              } 
            }	 
            function actualSize(){ 
            	PDFViewer.ZoomActualPage(); 
            } 
            function fitPage(){ 
            	PDFViewer.ZoomFitPage(); 
            } 
            function fitWidth(){ 
            	PDFViewer.ZoomFitWidth(); 
            } 
            function ViewMode(){ 
            	if(nViewMode == 0) 
            		PDFViewer.ViewModeSinglePage(); 
            	else if(nViewMode == 1) 
            		PDFViewer.ViewModeFacing(); 
            	else if(nViewMode == 2) 
            		PDFViewer.ViewModeContinuous(); 
            	else if(nViewMode == 3) 
            		PDFViewer.ViewModeContinuousFacing(); 
            	nViewMode++; 
            	if(nViewMode >= 4) 
            		nViewMode = 0; 
            } 
            function ZoomIn(){ 
            	PDFViewer.ZoomIn(); 
            } 
            function ZoomOut(){ 
            	PDFViewer.ZoomOut(); 
            } 
            function NextPage(){ 
            	PDFViewer.ViewNextPage(); 
            } 
            function PreviousPage() 
            { 
            	PDFViewer.ViewPreviousPage(); 
            } 
            function RotateLeft() 
            { 
            	PDFViewer.RotateViewLeft(); 
            } 
            function RotateRight() 
            { 
            	PDFViewer.RotateViewRight(); 
            } 
            function SearchFirst(string){ 
            	PDFViewer.SetFindText(string); 
              PDFViewer.FindNextText(); 
            } 
            function SearchNext(){ 
              PDFViewer.FindNextText(); 
            } 
        </script> 
	</head> 
 
	<body style="font-family: Sans-Serif"> 
    <style>BUTTON { width:120 }</style> 
    <table border="0" cellpadding="5" cellspacing="0" width="100%"> 
      <tr> 
        <td width="99%" valign="top"> 
           <OBJECT CLASSID="clsid:433268D7-2CD4-43E6-AA24-2188672E7252" ID="PDFViewer" VIEWASTEXT width="100%" style="height:480;"></OBJECT> 
    	   <!-- optionally provide a download link to a licensed CAB file: codebase="http://../PDFViewerOCX.cab" --> 
           <p><input size="60" name="PdfFileName" title="enter URL or name of file on local disk"> 
             <input type=file onChange=document.all.PdfFileName.value=this.value style="width:0"> 
             <input type=button value="Show" onclick="OpenFile(document.all.PdfFileName.value)" style="width:120"> 
        </td> 
        <td valign="top"> 
          <p><BUTTON type='button' onClick="NextPage()"     ACCESSKEY='' >Next Page</BUTTON> 
          <p><BUTTON type='button' onClick="PreviousPage()" ACCESSKEY='' >Previous Page </BUTTON> 
          <p><BUTTON type='button' onClick="actualSize()"   ACCESSKEY='' >Actual Size</BUTTON> 
          <p><BUTTON type='button' onClick="fitPage()"      ACCESSKEY='' >Fit Page</BUTTON> 
          <p><BUTTON type='button' onClick="fitWidth()"     ACCESSKEY='' >Fit Width</BUTTON> 
          <p><BUTTON type='button' onClick="ZoomIn()"       ACCESSKEY='' >Zoom In</BUTTON> 
          <p><BUTTON type='button' onClick="ZoomOut()"      ACCESSKEY='' >Zoom Out</BUTTON> 
          <p><BUTTON type='button' onClick="ViewMode()"     ACCESSKEY='' >View Mode</BUTTON> 
          <p><BUTTON type='button' onClick="RotateLeft()"   ACCESSKEY='' >Rotate Left</BUTTON> 
          <p><BUTTON type='button' onClick="RotateRight()"  ACCESSKEY='' >Rotate Right</BUTTON> 
          <p>Search String: 
          <input  type='string' size = "16" name="string"> 
          <p><BUTTON type='button' onClick="SearchFirst(string.value)"   ACCESSKEY=''>Search</BUTTON> 
          <p><BUTTON type='button' onClick="SearchNext()"   ACCESSKEY='' >Search Next</BUTTON> 
          <br> 
        </td> 
      </tr> 
    </table> 
	</body> 
</html> 
<script> 
    document.all.PdfFileName.value = "D:/temp/readme.pdf"; 
</script>