mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-25 09:24:16 +00:00
Bug 324635
Firefox 1.5 PostScript printing will not work (no output) Patch by leon.sha@sun.com kherron+mozilla: review+ roc: superreview+
This commit is contained in:
parent
6c8f21d4da
commit
558e3a4913
@ -1816,14 +1816,14 @@ nsPostScriptObj::write_script(FILE *aDestHandle)
|
||||
// Begin the script section. Set the correct paper size.
|
||||
fputs("%%BeginSetup\n", aDestHandle);
|
||||
fprintf(aDestHandle,
|
||||
"%%%%BeginFeature: *PageSize %s\n"
|
||||
"/setpagedevice where\n" // Test for the feature
|
||||
"{ pop 2 dict\n"
|
||||
"{ pop 1 dict\n"
|
||||
" dup /PageSize [ %s %s ] put\n" // Paper dimensions
|
||||
" dup /Policies 1 dict\n"
|
||||
" dup /PageSize 3 put\n" // Select the nearest page size to fit
|
||||
" put\n"
|
||||
" setpagedevice\n" // Install settings
|
||||
"} if\n",
|
||||
"} if\n"
|
||||
"%%%%EndFeature\n",
|
||||
mPrintSetup->paper_name,
|
||||
fpCString(NSTwipsToFloatPoints(mPrintContext->prSetup->width)).get(),
|
||||
fpCString(NSTwipsToFloatPoints(mPrintContext->prSetup->height)).get());
|
||||
fputs("%%EndSetup\n", aDestHandle);
|
||||
|
Loading…
Reference in New Issue
Block a user