Patent ID: 8015489

Claim:
A method for adding marks in a process of page rasterizing, comprising: (1) inputting a job file in PostScript or Portable Document Format (PDF) to a Raster Image Processor (RIP); (2) computing enlargements of a page after the marks are added to the job file and generating a description file of the marks in light of types of the marks selected by a user; (3) switching an execution environment to execute the description file of the marks after a page of the job file is interpreted by the RIP so that the marks are added and incorporated into a content of the page; and (4) switching the execution environment of the RIP back after executing the description file of the marks, so as to proceed to interpret and execute the next page; wherein adding the marks in the step (3) is conducted in a process of page rasterizing inside the RIP and the marks are positioned in light of a size of an original page, wherein the description file of the marks in the step (2) is a PostScript file and a protective mechanism is used when a status of the RIP is switched between executing the job file and executing the PostScript description file of the marks in the steps (3) and (4), and wherein the protective mechanism comprises steps of: (1′) pushing a system dictionary “systemdict”, a global dictionary “globaldict” and a user dictionary “userdict” defined in a PostScript language standard into a dictionary stack of a kernel of the RIP; (2′) executing a saving operator “save” defined in the standard; (3′) executing an initialization graphics state operator “initgraphics” defined in the standard; (4′) setting an origin of a current coordinate at a bottom left corner of the page of the job file to which the marks have been added, wherein a unit of 1/72.0 inch and directions of the coordinate are consistent with those of a default coordinate defined in the standard; (5′) setting a current clipping as the page of the job file to which the marks have been added; (6′) setting a current point as the point of the bottom left corner of the page of the job file to which the marks have been added and setting a current path as “empty”; (7′) pushing parameters into an operand stack of the kernel of the RIP, wherein, if the job file is a composite file, the parameters include the size of the original page before adding the marks and Boolean quantity “false”, and if the job file is a color pre-separation file, the parameters include the size of the original page before adding the marks, a current processed color plate name string and the Boolean quantity “true”; (8′) interpreting and executing the PostScript description file of the marks; (9′) executing a restoration operator “restore” defined in the standard; (10′) popping the user dictionary “userdict”, the global dictionary “globaldict” and the system dictionary “systemdict” out from the dictionary stack; and (11′) executing sequentially the next page of the job file.