Commandline image printer

已完成 已发布的 Feb 1, 2010 货到付款
已完成 货到付款

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 编程 C# 编程 工程 微软 MySQL PHP 项目管理 Python 软件构架 软件测试 视窗桌面

项目ID: #3141578

关于项目

6个方案 远程项目 活跃的Feb 2, 2010

授予:

AlexNaumov

See private message.

$127.5 USD 在14天内
(95条评论)
6.3

有6名威客正在参与此工作的竞标,均价$122/小时

vrstksvw

See private message.

$136 USD 在14天内
(28条评论)
5.0
mshernan

See private message.

$212.5 USD 在14天内
(0条评论)
0.0
therealzyablik

See private message.

$85 USD 在14天内
(0条评论)
0.0
jasonmcveigh

See private message.

$85 USD 在14天内
(0条评论)
0.0
sedreda

See private message.

$85 USD 在14天内
(1条评论)
0.0