Christine,
What version of SharePoint are you planning on using? For SharePoint Foundation, the annotation handler written in PHP will not work, the internationalization files encoded in JSON cannot be stored on the server, and the html files in the html5 directory cannot be loaded into an iFrame unless they are renamed as aspx files. In addition to the WebViewer dependencies, there are SharePoint dependencies that also need to be satisfied (Ajax, SharePoint Runtime). The example file will not work without modification.
The preferred way of handling annotations is to add (javaScript) code to BaseReaderControl.js (located in lib/html5). The general flow is something like this: Download a web page to the user containing a collection of XOD documents that he/she can open, the user then picks one of the documents, which then downloads a second webpage which contains the WebViewer, the XOD file and the XFDF file. If you're just getting started, you may want to purchase Brandon Atkinson's book, Custom SharePoint Solutions with HTML and JavaScript (Apress). All of the information in the book can be found on the net, but you can download the code samples and see how they work.
For just being able to load the Getting Started document, you can create a static web page with either a Content Editor Web Part or an XML Page Viewer Web Part with a link to your GettingStarted.html (or .aspx) file. Here's my GettingStarted.aspx file:
[CODE]
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <!-- use latest browser mode for IE -->
<title>WebViewer 2.0</title>
<!-- WebViewer.js Dependencies -->
<!-- SharePoint Dependencies (used to save annotations) -->
<script type="text/javascript">
$(function() {
var viewerElement = document.getElementById("viewer");
var myWebViewer = new PDFTron.WebViewer({
initialDoc: 'GettingStarted.xod',
serverUrl: 'GettingStarted.xfdf',
documentId: "/test", //SP SharePoint Server URL for REST calls
enableAnnotations: true,
annotationUser: 'admin',
annotationAdmin: true,
enableReadOnlyMode: false,
path: '/test/Webparts/lib',
config: '/test/Webparts/lib/PWRconfig.js',
type: "html5,html5Mobile",
mobileRedirect: false
}, viewerElement);
});
</script>
<style>
html, body, #viewer {
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<div id="viewer"></div>
</body>
</html>
[/CODE]
--skip