Bug 263177 [ps] mozilla generates level 2 postscript that will not print on a level 1 printer.

Patch by leon.sha@sun.com.
kherron+mozilla: review+
roc: superreview+
This commit is contained in:
leon.sha%sun.com 2005-03-15 02:01:21 +00:00
Родитель c9a689a901
Коммит fa35779a16
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -1855,8 +1855,11 @@ nsPostScriptObj::begin_page()
fprintf(mScriptFP, "%%%%Page: %d %d\n", mPageNumber, mPageNumber);
fprintf(mScriptFP, "%%%%BeginPageSetup\n");
if(mPrintSetup->num_copies != 1) {
fprintf(mScriptFP, "1 dict dup /NumCopies %d put setpagedevice\n",
mPrintSetup->num_copies);
fprintf(mScriptFP,
"/setpagedevice where\n"
"{ pop 1 dict dup /NumCopies %d put setpagedevice }\n"
"{ userdict /#copies %d put } ifelse\n",
mPrintSetup->num_copies, mPrintSetup->num_copies);
}
fprintf(mScriptFP,"/pagelevel save def\n");
// Rescale the coordinate system from points to twips.