Printing PDF files (win32)
Jan Dries
jdries at mail.com
Wed Aug 16 15:15:26 EDT 2000
Robin Becker wrote:
>
> >Does anyone know how to automate the printing of PDF files through
> >Acrobat Reader?
> >
> under unix it's fairly easy. I looked into doing this at one point, but
> I couldn't figure out the com interface. There is an ActiveX Acrobat
> Control, but I think that would be tough to use.
The ActiveX Acrobat control has a very simple interface:
1 property
LPCTSTR GetSrc()
SetSrc(LPCTSTR)
3 operations
void Print();
BOOL LoadFile(LPCTSTR fileName);
void AboutBox();
Loading the file with LoadFile() and subsequently printing it with
Print() works for me (in a C++ project). But the control is supposed to
be a visual control. I can't tell if it can work as a background
non-visual control.
Regards,
Jan Dries
More information about the Python-list
mailing list