Article # 586, added by Geoworks, historical record
| first | previous | index | next | last |

Random stuff about printing in GEOS.



Q. @call printControl::MSG_PRINT_CONTROL_GET_PAPER_SIZE( &pd );
   pss->PSS_paperHeight = PAPER_HEIGHT( pd );
   pss->PSS_paperWidth = PAPER_WIDTH( pd );

   I'm assuming that this value is the physical paper size?

A. It is the height and width of the paper in points (1 point = 1/72 inch).

--------------------

Q. @call printControl::MSG_PRINT_CONTROL_GET_PRINTER_MARGINS
       ( &(pss->PSS_printerMargins), TRUE );

   TRUE sets the document margins to be the same as the printer
   margins. But what are "document margins," and what effect
   do they have on the print job?

A. I believe that these margins are useful when you are not actively
   placing text/graphics (e.g., GrDrawTextAtCP).

--------------------

Q. dsp.PCDSP_width = pss->PSS_paperWidth;
   dsp.PCDSP_height = pss->PSS_paperHeight * ( pss->PSS_pageNo + 1 );
   @call (pss->PSS_printControl)::
       MSG_PRINT_CONTROL_SET_EXTENDED_DOC_SIZE( &dsp );

A. You need to make sure that PCI_endPage is set to PSS_pageNo.

--------------------

Q. When the second page finally comes out, the font has been reset
   to the original font (a bitmap font, which comes out teeny tiny)
   instead of MONO. The margins have also shifted a bit. What gives?

A. This could be caused by GrInitDefaultTransform.