Samples Read Me

PDFTron SilverDox SDK

Collapse imageExpand ImageCopy imageCopyHover image

This topic contains the following sections.

This document contains a brief description of the included sample projects, found in SilverDoxSDK/Samples.

Live versions of these samples are available on the PDFTron website

Tutorial Sample

This is the simplest sample, illustating basic useage of a DocumentViewer to display a .xod file. The sample shows how to send and receive information to a DocumentViewer via data binding and direct method calls.

A step-by-step description of creating this sample is in the Getting Started section.

image 004

Figure 1: DocumentViewer with External Controls.

ReaderControl Sample

This sample shows the use of ReaderControl, which is a viewer built using DocumentViewer. The code for ReaderControl (a user control) is made available in SilverDoxSdk/Samples/ReaderControl.

Reader Control Sample

Figure 2: A ReaderControl created by the Reader Control Sample. A ReaderControl provies buttons for page navigation, a zoom slider, pan and text select modes, full text search, a thumbnail viewer and a bookmark viewer.

FlipBook Sample

This sample does not use a DocumentViewer or ReaderControl, but rather acquires canvases directly from a Document, and uses the open-source Silverlight BookControls project to display the Document's pages.

Page Flip

Figure 3: The FlipBook Sample

FileBrowser Sample

The FileBrowser sample implements a thumbnail-based file browser to load different documents into a ReaderControl.

Browser

Figure 4: The FileBrowser Sample

Annotations Sample

The Annotations sample shows the basic use of the Annotations framework, and now to extend it to create custom annotations.

Annotations

Figure 5: The Annotations Sample