Declare PDFViewCtrl on Qt platform

PDFNet does come with an out of the box QT (or wxWidget, MFC, etc…) widget, but you can use the library to quickly implement a framework specific widget.

There are couple of options to implement your PDF QT Widget:

a) The simplest and fastest option is to use ‘pdftron.PDF.PDFView’ - which is a platform and framework independent PDF viewer. You would use view.SetRenderBeginProc/SetRenderFinishProc() to supply your widget ‘OnPaint’ callbacks and you process other messages/events and then invoke corresponding PDFView methods (

Fore a bit more details please see:

as well as PDFViewView.cpp in PDFView sample project ( … yes this is MFC/Windows specific but the same approach works with QT, wxWidgets or and other app framework.

b) use pdftron.PDF.PDFRasterizer or PDFDraw to render pages and implement your own viewer. Despite of what it may seem on first look, this is lots of work and I would not recommend this approach unless you have very particular requirements that can’t be fulfilled with the ‘pdftron.PDF.PDFView’.