FunctionPackage: common-graphicsToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1

printer-physical-offset

Arguments: printer-stream

Takes a printer stream and returns a position indicating the left and top "physical" margins outside of which the printer is not able to print. The returned position is in stream units (which means pixel units unless (setf stream-units-per-inch) (see stream-units-per-inch) has been called to change the scaling factor, which is allowed for a printer stream since it is a subclass of scaling-stream). The right physical margin will be the same size as the left, and the bottom the same size as the top. This margin is typically around a quarter of an inch for a laser printer.

An important aspect of this physical margin is that whenever you draw something on a printer stream, the output will always be offset by this physical margin from the edge of the paper, no matter what the "logical" margins are as returned for example by

(left-margin printer-stream t)

(See left-margin.) So if you want to draw something on a printer stream at a half of an inch from the left edge of the paper, then the x position at which you need to draw will be:

(- (floor (stream-units-per-inch printer-stream) 2) 
                                ; half an inch
   (position-x (printer-physical-offset printer-stream)))

Copyright (c) 1998-2002, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 6.2. This page was not revised from the 6.1 page.
Created 2002.2.26.

ToCDocOverviewCGDocRelNotesIndexPermutedIndex
Allegro CL version 6.2
Unrevised from 6.1