Re: declare PDFViewCtrl on Qt platform

Skip to first unread message


Jul 4, 2012, 2:46:03 PM7/4/12

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'.

On Monday, July 2, 2012 8:33:29 AM UTC-7, Francesco Giorgi wrote:
how can i do ? 

Reply all
Reply to author
0 new messages