Wednesday, July 19, 2006

Foxit...

Nick pointed to this application, Foxit that is a light-weight PDF reader... Well I was digging around the site and found out that they have an SDK that allows you to embed a PDF reader into your application.  They even mention that it is fully usable from Delphi.  It's actually really easy if you look at the... ahem... PDF document on how to call into the DLL.  It's just a simple matter of passing in a DC.  So you could just create a TCustomControl descendant and override the Paint method, and pass the Canvas.Handle property to the FPDF_RenderPage() function.  I wonder if Nick realized that they support Delphi?