Article View: adobe.postscript.programming
Article #1200Need to add postscript command to a postscript file.
From: Amit Maheshwari
Date: Wed, 09 Apr 2003 22:31
Date: Wed, 09 Apr 2003 22:31
11 lines
1779 bytes
1779 bytes
We have Xerox DocuPrinter which allows us to store an image on it. This image can be printed along with the contents of the postscript file by including the following command as a part of the postscript file. gsave initgraphics (/var/db/forms/inv1.frm.p0001.b.tif) GetTiff grestore The report utility generating the postscript file does not allow us to add postscript command at the time of postscript generation. The generated postscript file has mutiple pages and the image needs to be printed on all the pages. We have two images to choose from depending on the existance of a specific string on the page. To achieve the above the following logic has been used: 1> Buffer the contents of individual pages with the help of %%Page. 2> Search for existance of the string in the page content buffered by Step1> - so as to ascertain the image that needs to be printed. 3> Look for %%EndPageSetup and add the above command after it. Pl. suggest if the above approach is appropriate and if there any better solution exists?
Technical Details
Message-ID:
<1de8ac21.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c61a,82f6076019d2c9a7,start X-Google-Attributes: gid10c61a,public X-Google-ArrivalTime: 2003-04-09 15:37:44 PST From: "Amit Maheshwari" <amit_maheshwari@mcgraw-hill.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.postscript.programming Subject: Need to add postscript command to a postscript file. Message-ID: <1de8ac21.-1@WebX.la2eafNXanI> Date: Wed, 9 Apr 2003 15:31:45 -0700 Lines: 21 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit