@grapecity/gcpdfviewer
Version:
GcDocs PDF Viewer
44 lines (38 loc) • 1.69 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="theme-color" content="#000000" />
<title>GrapeCity Documents PDF Viewer Demo</title>
<script src="gcpdfviewer.js"></script>
<script>
function loadPdfViewer(selector) {
//GcPdfViewer.LicenseKey = 'your_license_key';
var viewer = new GcPdfViewer(selector, {
/*
supportApi: {
// URL to SupportApi service: used to enable PDF editing features.
apiUrl: 'api/pdf-viewer',
// URL to SignalR hub: used for persistent connections in
// collaboration mode.
// Set this setting to false to disable collaboration mode.
webSocketUrl: '/signalr',
// Antiforgery token: used within the 'Synchronizer Token Pattern'
// to safeguard against CSRF attacks. For further details and instructions
// on how to verify the token on the server side, see the 'VerifyAuthToken'
// method in the SupportApi demo service source code.
token: "support-api-demo"
}
*/
});
viewer.addDefaultPanels();
//viewer.addAnnotationEditorPanel();
//viewer.addFormEditorPanel();
}
</script>
</head>
<body onload="loadPdfViewer('#root')">
<div id="root"></div>
</body>
</html>