Article View: adobe.postscript.programming
Article #1009Re: Number of Pages in a .ps file
From: Aandi Inston
Date: Thu, 22 May 2003 21:33
Date: Thu, 22 May 2003 21:33
14 lines
1296 bytes
1296 bytes
If the file is DSC complaint, it will have a %%Pages: n line in the
header, or %%Pages: (AtEnd) telling you it is in the trailer.
If the file is not DSC compliant, the only way to count pages is to
fully interpret the file.
For instance, counting showpages would not help you here:
1 1 10 { showpage } for
which produces 10 pages. In general, you can't just insert text into
any old PDF - where would you put it in this example?
Aandi Inston
Technical Details
Message-ID:
<3ecd41d3.3055794870@adobeforums.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de93cb1.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c61a,874e20564ac3d3db X-Google-Attributes: gid10c61a,public X-Google-ArrivalTime: 2003-05-22 14:38:52 PST From: quite@dial.pipex.com (Aandi Inston) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.postscript.programming Subject: Re: Number of Pages in a .ps file Message-ID: <3ecd41d3.3055794870@adobeforums.com> Date: Thu, 22 May 2003 14:33:37 -0700 References: <1de93cb1.-1@WebX.la2eafNXanI> Lines: 14 X-Newsreader: Forte Free Agent 1.21/32.243 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit