in reply to Re: Printing Image within Gtk-Perl Application
in thread Printing Image within Gtk-Perl Application

I am not a Win32::API expert, but I think I can help interpret that (in case someone else is reluctant to try, based on your historical reluctance to try):

my $shellopen = new Win32::API( "shell32", "ShellExecute", ['N', 'P', 'P', 'P', 'P', 'I'], 'N' );
This uses the IMPORTING A FUNCTION BY PROTOTYPE feature of Win32::API to set up a wrapper for the Windows API function ShellExecute() from the shell32.dll
$shellopen->Call(0, "print", $pdf, 0, 0, 0); This calls the "print" verb defined in the Windows registry. This is the same as right-clicking on the file and selecting Print from the context menu in Windows Explorer.

Replies are listed 'Best First'.
Re^3: Printing Image within Gtk-Perl Application
by BillKSmith (Monsignor) on Feb 06, 2019 at 21:36 UTC
    Thanks for the explanation and supporting references. I barely know that there is such a thing as "Windows API". At least now, I can tell that this code does exactly what I want and nothing else.
    Bill