Hi,
As shown
here, WebViewer works by taking the original document and converting to XOD. This can be done ahead of time, outputting a XOD file or it can be done on the fly (for example from a XOD byte array).
This post has some information about the tradeoffs between converting ahead of time and streaming.
As the getting started page shows, you'll need to use PDFNet, DocPub or PWS Cloud to convert to XOD. If you want to convert on the fly you'll need to use PDFNet. You can take a look at the WebViewer Streaming Sample in the PDFNet download under the samples folder for more information about using WebViewer with streaming. One thing to note is that if you're converting office documents than you'll need to be using a Windows server with Microsoft Office installed.
By default WebViewer uses HTML5 as its preferred technology, and if that isn't supported it falls back to Silverlight or Flash. To force it to use Silverlight by default you can set the option
type: "silverlight". For example
new PDFTron.WebViewer({ type: "silverlight", ...}). For more information you can find WebViewer documentation here:
http://www.pdftron.com/webviewer/demo/documentation.html.
Matt Parizeau
Software Developer
PDFTron Systems Inc.