Display PDF from Memory to an HDC

Q: Is it possible to use PDFNet SDK to display a PDF file from Memory to an HDC?

I have my own component on screen and it has a hDC (Display context), now I want to load a PDF file from disk in my own program and do some specific changes to the file, (For example Decrepit it) then us PDFNet SDk to Display it from memory to my own hDC.

A: Yes, you can use PDFNet to load PDF from a memory buffer as shown in PDFDocMemory sample:

PDFDocMemory: http://www.pdftron.com/pdfnet/samplecode.html#PDFDocMemory

You can render the resulting PDF to a DC (Device Context) using PDFDraw.DrawInRect(HDC, …). This is shown in PDFPrint sample (http://www.pdftron.com/pdfnet/samplecode.html#PDFPrint).

In case you need a full-fledged PDF viewer it may be simpler to embed PDFViewCtrl window in your own app/component as shown in PDFViewSimple sample.