- Products & ServicesGreat pdf developer solutions
- SupportDeveloper 2 developer support
- ResourcesCommunity & developer resources
The following section contains a brief description of the included SilverDox sample projects, found in SilverDoxSDK/Samples.
This is the simplest sample, illustating basic usage 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 included in the Getting Started section.
Figure 1: DocumentViewer with External Controls.
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.
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.
Silverlight document publisher is available as a command-line utility (called DocPub) or as an add-on option to PDFNet SDK. Both DocPub and PDFNet SDK are available on Windows, Linux, and Mac.
The following sample illustrates how to convert PDF, XPS, image, MS Office, and other image document formats to Silverlight XPS format (also know as XOD).
Certain file formats such as PDF, generic XPS, EMF, and raster image formats can be directly converted to Silverlight XPS (XOD). Other formats such as MS Office (Word, Excel, Publisher, Powerpoint, etc) can be directly converted via interop. These types of conversions guarantee optimal output, while preserving important information such as document metadata, intra document links and hyper-links, bookmarks etc.
In case there is no direct conversion available, PDFNet can still convert from any printable document to Silverlight XPS using a virtual printer driver. To check if a virtual printer is required use Convert::RequiresPrinter(filename). In this case the installing application must be run as administrator. The manifest for this sample specifies appropriate the UAC elevation. The administrator privileges are not required for direct or interop conversions.
Please note that 'pdftron.PDF.Convert.ToSilverlight' is part of PDFTron SilverDox publishing platform which can also be licensed as an extension to PDFNet SDK.