Printing PDF files (win32)
Joel Lucsy
jjlucsy at concentric.net
Wed Aug 16 16:57:47 EDT 2000
I used a different approach. I just called the .exe with command line
parameters of "/p /h" along with the file and, bam, it prints using the
current default printer. Just put a bunch of these together and you're all
set.
--
Joel Lucsy (jjlucsy at concentric.net)
"Robin Becker" <robin at jessikat.fsnet.co.uk> wrote in message
news:9B3X3jAk+um5EwKT at jessikat.fsnet.co.uk...
> In article <399AE84E.63AE1144 at mail.com>, Jan Dries <jdries at mail.com>
> writes
> >
> >
> >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
> >
> yes that was exactly my problem; how to get the document processing
> without a window.
> --
> Robin Becker
More information about the Python-list
mailing list