Commandline image printer

Completed Posted Feb 1, 2010 Paid on delivery
Completed Paid on delivery

Commandline image printer, to print an image to any installed printer under Windows. See the specs for more detailed description.

## Deliverables

I would like a commandline program to print an image file of any size to any installed printer under Windows. Some specifications:

[url removed, login to view] -image="c:\[url removed, login to view]" -printer="Canon IP2600 Copy 2"

When passed the above arguments, would print out c:\[url removed, login to view] to the printer named "Canon IP2600 Copy 2" using the default printer options for that printer. In other words, it would print using the default paper size, paper type, orientation, image quality, etc.

No need to save any printer parameters, it simply retrieves them from Windows Control Panel --> Printers.

Can also configure the printer, like this:

[url removed, login to view] -printer="Canon IP2600 Copy 2" -configure=yes

The above command would simply launch the properties page for that printer, so user can configure the default printer options for the printer named Canon IP2600 Copy 2. However note that usually when you configure a printer from a program, it doesn't change the printer's default behavior in Windows Control Panel. With [url removed, login to view], it should actually edit the printer's default options, which makes it so we don't need to save any printer options ourselves, we simply pull the options from the defaults when we're printing.

Extra parameters that can be passed at time of printing:

scaling: original size (from image DPI) / fit to page (aspect ratio) / stretch to page (no aspect ratio)

-scaling="original" or -scaling="fit" or -scaling="stretch". If none specified, using "original".

centering: centered / uncentered (if not centered, ability to specify left and top margin)

-centered=yes or centered=no.?

-leftmargin=.1 and -topmargin=.1

stretching: horizontal and vertical stretching of the image, in pixels. This lets the user stretch the image by a few pixels in width or height. In other words, if the picture isn't quite filling the whole page, the user can stretch it using this method.

-vstretch=10 -hstretch=20

(The above would stretch the image vertically by 10 pixels, and 20 pixels horizontally, before printing it. Note that it wouldn't affect the original image, would simply stretch a temp copy.)

orientation: landscape or portrait orientation

-orientation=landscape or orientation=portrait

The program Irfanview is a good model of the above parameters, especially the scaling. Its "stretch to fit page" printing options are what I have in mind. The only one of the above that it doesn't do is the vstretch and hstretch.

As I said, the program is entirely commandline driven. It needs to work under XP, Vista and Win7.

Let me know if any questions.

C Programming C# Programming Engineering Microsoft MySQL PHP Project Management Python Software Architecture Software Testing Windows Desktop

Project ID: #3141578

About the project

6 proposals Remote project Active Feb 2, 2010

Awarded to:

AlexNaumov

See private message.

$127.5 USD in 14 days
(95 Reviews)
6.3

6 freelancers are bidding on average $122 for this job

vrstksvw

See private message.

$136 USD in 14 days
(28 Reviews)
5.0
mshernan

See private message.

$212.5 USD in 14 days
(0 Reviews)
0.0
therealzyablik

See private message.

$85 USD in 14 days
(0 Reviews)
0.0
jasonmcveigh

See private message.

$85 USD in 14 days
(0 Reviews)
0.0
sedreda

See private message.

$85 USD in 14 days
(1 Review)
0.0