Closed
Bug 426959
Opened 18 years ago
Closed 14 years ago
postscript output does not include page title or any other information to identify the original document
Categories
(Core :: Printing: Output, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jeff, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
Build Identifier: http://download.mozilla.org/?product=firefox-2.0.0.13&os=linux&lang=en-US
Using the PostScript/default printer with the print command "cat > FILE.ps", output does not include any easy to get information on the which page the ps file was generated from. The only way to get it is by parsing all strings in the document, un-encoding them using the encoding given in the file, and find which ones are part of the header. This is unreliable and time-consuming.
Looking at the source for gfx/src/ps/nsPostScriptObj.cpp on line 452 there is a block that does do this:
if (nsnull != mPrintContext->prInfo->doc_title) {
// DSC spec: max line length is 255 characters
fprintf(f, "%%%%Title: ");
PrintAsDSCTextline(f, mPrintContext->prInfo->doc_title, 230);
fprintf(f, "\n");
}
However, this is not being outputted (although there is a document title) which means the doc_title is not set in prInfo.
It may be related to the fact that the following settings are set in prefs.js (and cannot be overridden by editing user.js or prefs.js):
user_pref("print.tmp.printerfeatures.PostScript/default.can_change_jobtitle", false);
user_pref("print.tmp.printerfeatures.PostScript/default.supports_jobtitle_change", false);
Preferably, forcing it always put the title in the PS file would be optimal (it is just a comment, would not hurt any printers/readers). Additionally, adding the URL in a comment would be very nice ("% URL: the url") and useful for situations like mine (see additional information).
Reproducible: Always
Steps to Reproduce:
1. Setup a postscript printer to print to cat > FILE.ps
2. Look at output
Actual Results:
No "%%Title: ", "% URL: ", or other identifying comments in file
Expected Results:
To have some way to identify the original source.
The reason this action is being done is to use Firefox as a HTML to PostScript converter on a headless machine running in a virtual frame buffer. The original name of the HTML file is needed so that the output can be associated with the input file.
Comment 1•15 years ago
|
||
do you see this issue still with version 3.6 or 4.0 beta?
Whiteboard: [closeme 2011-03-15]
| Reporter | ||
Comment 2•15 years ago
|
||
The system this was all setup on is no longer around, sorry I don't really have a way to test anymore.
Closed per Whiteboard
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
Whiteboard: [closeme 2011-03-15]
You need to log in
before you can comment on or make changes to this bug.
Description
•