PDF Preview Control

  • Thread starter Thread starter Steve McKewen
  • Start date Start date
S

Steve McKewen

I am working on project (VS2005 c++) that at one point deals with a
collection of PDF files that get routinely produced (logs and reports).
Is there a way to produce a pdf preview on a control, like a print preview?

I have a listbox showing the current list of PDF files that allows one to be
selected and opened. I would like to show the preview on that form.

Steve
 
Sure it can be done. There are many open source projects can decode PDF
files. I am not sure any of them support print preview though.

If you want to display the file in a listbox or a listview, use owner draw
or custom draw. See Windows SDK documentation for samples/tutorials.
 
Steve said:
I have a listbox showing the current list of PDF files that allows one to be
selected and opened. I would like to show the preview on that form.

The free Adobe Reader comes with an ActiveX control. In .NET you can
just drop it on your form, like any other control. It has a public
function to load a PDF file. If you have to do it from MFC, read this:
http://www.codeproject.com/KB/miscctrl/acroview.aspx

Tom
 
Back
Top