I have a program that will output postscript data. In a section of my program, I will draw some shapes and diagrams based on data that is read, and this data can vary in such a degree that the diagrams may extend far enough to over-write other data on the page. This other data may have already been placed on the page or will be placed on the page after the images.
Since these graphics are generated by my program, and not imported EPS files, I am either having no luck with the BoundingBox comment or am not using it properly. I am inserting a %%BoundingBox:0 62 150 139 just before outputting code that draws the boxes, then I do a gsave. After this I will output the postscript code to draw the diagrams, followed by a grestore. After this, more postscript code drawing on other portions of the page and outputting text.
I desire to create an area on my page, a 'window' where when drawing graphics, and drawing outside that 'window' are not visible, thereby not over-writing other data on the page.
Anyone here know if there a command or method in Postscript code that will accomplish this?
Since these graphics are generated by my program, and not imported EPS files, I am either having no luck with the BoundingBox comment or am not using it properly. I am inserting a %%BoundingBox:0 62 150 139 just before outputting code that draws the boxes, then I do a gsave. After this I will output the postscript code to draw the diagrams, followed by a grestore. After this, more postscript code drawing on other portions of the page and outputting text.
I desire to create an area on my page, a 'window' where when drawing graphics, and drawing outside that 'window' are not visible, thereby not over-writing other data on the page.
Anyone here know if there a command or method in Postscript code that will accomplish this?