Page 1 of 1

Cross-platform printer commands for pixel perfect printing

Posted: Tue Jan 15, 2013 11:48 pm
by fsw
The PrinterPageHeight() and PrinterPageWidth() commands are fine, but for pixel perfect printing more is needed:

1.) Real Paper Size (Letter or A4 etc.)
2.) DPI (could be calculated from paper size and page height/width)
3.) Margins of all 4 sides (they differ from printer to printer).

Feel free to add more functions to this list if you see a need.

Thanks

Re: Cross-platform printer commands for pixel perfect printi

Posted: Wed Jan 16, 2013 4:42 am
by BorisTheOld
This has already been requested.

http://www.purebasic.fr/english/viewtop ... =3&t=35987

A simple workaround is to set up a preferences file that contains the characteristics of each printer. We've been doing this since we first started using DOS in the early 1980's. Back then it was necessary to include all the control code sequences, but with today's printers it's only necessary to include the few items that you've suggested.

However, as has been suggested in the above link, it would be nice to have commands that would allow for direct control over printer features, such as orientation and bin selection.