Closed Bug 69735 Opened 25 years ago Closed 25 years ago

PostScript DSC "%%Pages" comment is always zero [ps][print][quick]

Categories

(Core :: Printing: Output, defect)

x86
Linux
defect
Not set
minor

Tracking

()

VERIFIED FIXED
Future

People

(Reporter: atontti, Assigned: dcone)

Details

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.0-0.43.12 i686; en-US; 0.8) Gecko/20010221 When printing www page to PostScript file Mozilla writes incorrect DSC comment to header section: %%Pages: 0 That implies that PostScript file don't use showpage operator in this job. Reproducible: Always Steps to Reproduce: 1. Print any www page to PostScript file 2. Check PostScript file with less command
Keywords: patch, review
Status: UNCONFIRMED → NEW
Ever confirmed: true
setting status to NEW to get this looked at.
What is the exact impact of this problem. Does the page print? Are any other programs effected by this. Just trying to get a gauge on this problem.
Severity: normal → trivial
PostScript printers don't normally interpret DSC comments (but there are exceptions). DSC comments are for print servers, PostScript processing and converter programs, error recovery and resource management systems. Mozilla generates PostScript code which says it conforms to Adobe's Document Structuring Conventions (DSC) 3.0 by saying %!PS-Adobe-3.0 but it violates the DSC conformance with incorrect use of %%Pages comment. More information about DSC can be obtained from document Adobe Developer Support: PostScript Language Document Structuring Conventions Specification, Version 3.0, 25 September 1992 It is available from http://www.adobe.com/. So basicly it is correctness and this bug can cause problems with programs and services that counts on DSC "%%Pages" comment.
I forgot the example. HUT/CC has central print service that counts pages by using those DSC %%Pages comments. So it logs Mozilla's print jobs incorrectly. The logs are used to monitor printer usage per user.
So, where are we going with this? Or are there any general problems in fixing this bug? I can try to redo the patch if there is any problems with it. BTW I think the severity should be minor - not trivial because it is not cosmetic problem.
I will look at this.. see if I can put in a quick fix.. but no promises. Marking future.. because this will sneak in if its really easy to fix.
Severity: trivial → minor
Status: NEW → ASSIGNED
Summary: PostScript DSC "%%Pages" comment is always zero → PostScript DSC "%%Pages" comment is always zero [ps][print]
Target Milestone: --- → Future
I will try to fix this.. but no promises. I am marking future, but if its an easy fix.. I will quick fix it.
Summary: PostScript DSC "%%Pages" comment is always zero [ps][print] → PostScript DSC "%%Pages" comment is always zero [ps][print][quick]
dcone, there appears to be a fix already attached to this bug. The reporter has asked if there is anything wrong with his patch. Can you review the patch and if it looks good push this up to super review and get it checked in? Thanks.
see.. it was quicker than I thought. I will check in this patch after the right approvals.
Seems OK to me (although I know next to nothing about postscript). If you have tested it and it works, sr=attinasi
Any chance for getting this in before 0.8.1?
Fixed
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Sorry, but I cannot see it in trunk? Or have I misunderstood something?
Well, don just checked the fix in on 2001-03-12 at 7:00 PST or so. Not sure why it got marked as fixed on the 8th... In any case, the fix should be in tonight's builds.
Boris and Don: thanks
I thought I checked in this fix on the 8th.. but was mistaked. I checked it in this morning.. and things should be ok now.
Asko, is this working for you now? if so please mark VERIFIED-FIXED. thanks.
Tested with PC Linux 2001042508.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: