[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange PRINTER Coordinates




I believe that the PRINTER device must keep track of the printable
region on the page.  It's different for different printers.  If you
look under $IDL_DIR/resource/xprinter/ppds, you can locate lines like
this in each ppd file:

*ImageableArea Letter: "18 8 593 784 "
*ImageableArea Legal: "65 42 547 966 "

What is unfortunate is that the IDL coordinate system is referenced to
corner of the printable region rather than the corner of the physical
page, like most sane page description languages would do.

Craig


Ben Tupper <btupper@bigelow.org> writes:

> David Fanning wrote:
> 
> >
> > Does this seem to happen on your printers, too?
> 
> Yes.
> 
> >
> >
> > Here is a test case for an 8.5 x 11 inch sheet of
> > paper:
> >
> >    thisDevice = !D.Name
> >    Set_Plot, 'PRINTER'
> >    Device, /Portrait
> >    Device, XSize=6, YSize=6, XOffset=1.25, YOffset=2.5, /Inches
> >    PlotS, [0,1,1,0,0], [0,0,1,1,0], /Normal
> >    Device, /Close_Document
> >    Set_Plot, thisDevice
> >
> > Is this box centered on your printer? What printer?
> > What version of IDL? If it is not centered, does
> > subtracting 0.25 from each offset help?
> >
> 
> Not centered with code as written.
> 
> Not centered with XOffSet = XOffSet - 0.25  , but closer to being
> centered.  I must remove 0.5 inches to get correct centering.
> 
> Printer:  HP DeskJet 1600CM
> 
> IDL> help, !Version,/Str
> ** Structure !VERSION, 5 tags, length=40:
>    ARCH            STRING    'PowerMac'
>    OS              STRING    'MacOS'
>    OS_FAMILY       STRING    'MacOS'
>    RELEASE         STRING    '5.3'
>    BUILD_DATE      STRING    'Nov 10 1999'
> 
> I have seen this before;  I had always assumed that typical paper
> margins were honored in the background.  of course there are many things
> that I have assumed...
> 
> Ben
> 
> --
> Ben Tupper
> Bigelow Laboratory for Ocean Science
> West Boothbay Harbor, Maine
> btupper@bigelow.org
>      note: email address new as of 25JULY2000
> 
> 

-- 
--------------------------------------------------------------------------
Craig B. Markwardt, Ph.D.         EMAIL:    craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
--------------------------------------------------------------------------