Hans said:
I should only open an existing PDF and should show it in a window (device
context; CDC). Maybe I can render the PDF into a bitmap and show the bitmap.
Is there a possibility to do that?
Yes, using the Acrobat SDK. You have to write a plugin for Acrobat.
Since Acrobat is running in a separate process than your application,
you need to use inter-process communication between them to pass the
HDC. Note that you don't have to open an Acrobat window to do this. You
can render a PDF page right on an HDC. It takes a while to learn the
Acrobat SDK, it's enormously complicated, and if you do a google search
on any of the SDK functions, you'll usually get exactly 0 hits.
Then there's the DocuCom PDF Core Library, which is a 3rd party library
that mimics the Acrobat SDK functionality. The advantage of it is that
it doesn't require any Adobe product to be installed.
Then there's always GhostScript, which is able to rasterize a PDF file
(create a .bmp or .tif for you). However, it's always a bit behind the
latest Adobe technology, and I have several perfectly valid PDF files
that GhostScript can't handle very well. Also, it's only free for
personal and academic use, you can't distribute it with your commercial
product without obtaining a license.
Also, there are several print drivers out there that create a .tif file
out of anything printable. There's Black Ice and LeadTools, just to name
two. Then you can make Acrobat print to this virtual printer to
rasterize a PDF file.
Tom