Re: declare PDFViewCtrl on Qt platform

140 views
Skip to first unread message

Support

unread,
Jul 4, 2012, 2:46:03 PM7/4/12
to pdfne...@googlegroups.com

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 (http://www.pdftron.com/pdfnet/html/classpdftron_1_1PDF_1_1PDFView.html)

Fore a bit more details please see: 

as well as PDFViewView.cpp in PDFView sample project (http://www.pdftron.com/pdfnet/samplecode/PDFViewView.cpp). ... 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 ? 

thx 
Reply all
Reply to author
Forward
0 new messages