comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: How to get page size for PRINTER device?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: How to get page size for PRINTER device? [message #22691 is a reply to message #22676] Tue, 05 December 2000 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Phillip David (phillip_david@xontech.com) writes:

> Now that you know how to get the exact page size (as returned by the
> printer), can't you just use that to size your printout? You also know
> how to position it to center it by putting the center of your plot at
> the center of the page, whose size you now know.

The problem is not *sizing* the printout. The problem
is *locating* the printout in the middle of the page.
The only tools you really have to do that are the offsets,
but the offsets are calculated from the *printable*
edge of the paper, not from the real edge of the paper
(as they are, for example, in PostScript output).

Of course, it is possible to know what size your paper
is, get the "page size" from the printer, subtract the
reported page size from the known page size, and then
calculate the fudge factors automatically. This is probably
what I should do. I choose the FUDGE keyword mostly
to call attention to the problem. :-)

I'll leave it as an exercise for the reader (or Liam,
more likely) to write it as it *ought* to be written.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: n-point FFT
Next Topic: Re: IDLWAVE 4.6

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 22:36:08 PDT 2025

Total time taken to generate the page: 0.63898 seconds