Commandline image printer

Completado Publicado Feb 1, 2010 Pagado a la entrega
Completado Pagado a la entrega

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.

Programación en C Programación en C# Ingeniería Microsoft MySQL PHP Gestión de proyectos Python Arquitectura de software Verificación de software Windows Desktop

Nº del proyecto: #3141578

Sobre el proyecto

6 propuestas Proyecto remoto Activo Feb 2, 2010

Adjudicado a:

AlexNaumov

See private message.

$127.5 USD en 14 días
(95 comentarios)
6.3

6 freelancers están ofertando un promedio de $122 por este trabajo

vrstksvw

See private message.

$136 USD en 14 días
(28 comentarios)
5.0
mshernan

See private message.

$212.5 USD en 14 días
(0 comentarios)
0.0
therealzyablik

See private message.

$85 USD en 14 días
(0 comentarios)
0.0
jasonmcveigh

See private message.

$85 USD en 14 días
(0 comentarios)
0.0
sedreda

See private message.

$85 USD en 14 días
(1 comentario)
0.0