ADC Home > Reference Library > Technical Notes > Legacy Documents > Printing >
Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.
Current information on this Reference Library topic can be found here:
|
IntroductionThere is a problem with pictures that contain PostScript code. Sometimes the PostScript code that is inserted into the picture is dependent on the position of the picture on the page. The problem arises when these pictures are cut or copied from their original position, and pasted into another position or even into another document. The PostScript code will not know the new location of the picture, and will not execute correctly. The solution for this problem, is to provide some way for the PostScript code to determine the current location of the picture relative to the page that it is being printed on. This is done by inserting QuickDraw calls to position the LaserWriter's pen before inserting the position dependent PostScript code. When the PostScript in the picture is executed, the LaserWriter's pen location will be in a location relative to the position of the picture on the page.
The following example illustrates a method for positioning the LaserWriter's
pen before inserting any PostScript code into the picture. The method uses
QuickDraw calls to position the LaserWriter's pen, and will work with any
application that supports QuickDraw pictures. Applications do not have to be
changed to be able to print pictures which use this technique; normal calls to
The following code fragment will create a picture that contains PostScript to draw a rectangle around the picture's frame:
See the LaserWriter Reference Manual for more information about There are some important guidelines to follow when sending PostScript directly to the LaserWriter. See the PostScript Commands section of Technical Note #91, for a complete description of these guidelines. ReferencesThe Print Manager QuickDraw LaserWriter Reference Manual Technical Note M.IM.gifComments -- Optimizing for the LaserWriter--PicComments PostScript Language Reference Manual, Adobe Systems PostScript Language Cookbook and Tutorial, Adobe Systems Downloadables
|
|