Q:
I would like to integrate PDFTron WebViewer in my SharePoint solution in order to expose specific document libraries (containing PDF, Office, and image formats) via web browser.
Do you have any sample code showing how to integrate PDFNet ( the component that creates xod etc) with SharePoint?
---------------------
A:
You can download a sample WebViewer/PDFNet sample integration with SharePoint using the following links:
~~~
The sample shows how to integrate PDFNet and WebViewer controls in a SharePoint web parts in order to display documents hosted on a SharePoint server.

This above sample integrates with SharePoint and can make specific document libraries (containing PDF and MS Office files) viewable in any browser (via WebViewer).
The project uses MS SharePoint Word Automation services (
http://msdn.microsoft.com/en-us/library/ee558278(v=office.14).aspx) to convert DOCX, DOC, and other office formats to PDF which are then converted to web optimized XPS a.k.a. XOD using ‘pdftron.PDF.Convert.ToXod()’.
The sample integration has two main features. First is to be able to convert documents as they are uploaded to a SharePoint document library. The other feature is to display this converted documents using the PDFTron WebViewer. In order to achieve the conversion, an event receiver solution for SharePoint was created. This event receiver handles all events in a SharePoint web site. For this project, the event receiver developed handles three events: uploading of a new file, deleting of an existing file, and updating an existing file. The main goal is to capture these events and then convert the documents to the required format (i.e. WebViewer XPS a.k.a. xod).
----
Please note that the sample is referencing a bit outdated version of PDFNet SDK and the
WebViewer (specifically it refers to WebViewer Silverlight clinet a.k.a. SilverDox), however a switch to the latest version of PDFNet and or latest HTML5 viewer should be relatively painless.