[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#388569: general: always printed in letter format



Package: general
Severity: important


Sorry for reporting on this unspecific level, but i cannot
isolate.

Since updating to etch some weeks ago i was not able to print
from firefox, because always letter format is requested on the
printer panel. This happens independend of the input in the
printer property fields in the printing dialog if firefox (where
i entered "A4") and independend of the printer settings in cups
(where i also use "A4") - see bug 383.255.

First i thought this a specific problem of firefox, but now i
have the same missbehaviour with xpdf, so i think it is a more
general problem which i cannot identify.

Both programms worked fine in sarge.

The only help i can give, is that i can work around in both cases
by printing to a file and remove the first line containing
"/PageSize 3" with an editor and afterwards use lpr on the
command line to print that modified postscript-file.

Because i cannot think that this is the intended "new debian way
of printing" and because a am happy with debian for years i dont
want to change distribution because of this, but i also dont want
to life with this situation for a long time. 

I use a standard gnome desktop installation and the Cups printing
system. My printer is a HP Laserjet 4 plus.


Two examples:
=============

* head of the original postscript file (requesting letter format
  independend of the "%%DocumentPaperSizes: A4" line) produced by
  firefox:

%!PS-Adobe-3.0
%%BoundingBox: 0 0 595 842
%%HiResBoundingBox: 0 0 595.25 841.9
%%Creator: Mozilla PostScript module (rv:1.8.0.6/0)
%%DocumentData: Clean8Bit
%%DocumentPaperSizes: A4
%%Orientation: Portrait
%%Pages: 1
%%PageOrder: Ascend
%%EndComments
% MozillaCharsetName: iso-8859-1

%%BeginProlog
/setpagedevice where
{ pop 2 dict
  dup /PageSize [ 595.25 841.9 ] put
  dup /Policies 1 dict
    dup /PageSize 3 put
  put
  setpagedevice
} if


* diff file against the modified firefox postscript file which
  worked fine on my printer:

--- firefox_letter.ps	2006-09-21 10:41:32.000000000 +0200
+++ firefox_a4.ps	2006-09-21 10:41:55.000000000 +0200
@@ -15,7 +15,6 @@
 { pop 2 dict
   dup /PageSize [ 595.25 841.9 ] put
   dup /Policies 1 dict
-    dup /PageSize 3 put
   put
   setpagedevice
 } if


* original postscript file (requesting letter format) 
  produced by xpdf:

%!PS-Adobe-3.0
%%Creator: xpdf/pdftops 3.01
%%LanguageLevel: 2
%%DocumentSuppliedResources: (atend)
%%DocumentMedia: plain 595 841 0 () ()
%%BoundingBox: 0 0 595 841
%%Pages: 1
%%EndComments
%%BeginDefaults
%%PageMedia: plain
%%EndDefaults
%%BeginProlog
%%BeginResource: procset xpdf 3.01 0
/xpdf 75 dict def xpdf begin
% PDF special state
/pdfDictSize 15 def
/pdfSetup {
  3 1 roll 2 array astore
  /setpagedevice where {
    pop 3 dict begin
      /PageSize exch def
      /ImagingBBox null def
      /Policies 1 dict dup begin /PageSize 3 def end def
      { /Duplex true def } if
    currentdict end setpagedevice
  } {
    pop pop
  } ifelse
} def
/pdfStartPage {
  pdfDictSize dict begin
  /pdfFillCS [] def
  /pdfFillXform {} def
  /pdfStrokeCS [] def
  /pdfStrokeXform {} def
  /pdfFill [0] def
  /pdfStroke [0] def
  /pdfFillOP false def
  /pdfStrokeOP false def
  /pdfLastFill false def
  /pdfLastStroke false def
  /pdfTextMat [1 0 0 1 0 0] def
  /pdfFontSize 0 def
  /pdfCharSpacing 0 def
  /pdfTextRender 0 def
  /pdfTextRise 0 def
  /pdfWordSpacing 0 def
  /pdfHorizScaling 1 def
  /pdfTextClipPath [] def
} def
/pdfEndPage { end } def


* diff file against the modified xpdf postscript file which
  worked fine on my printer:

--- xpdf_letter.ps	2006-09-21 10:25:32.000000000 +0200
+++ xpdf_a4.ps	2006-09-21 10:38:57.000000000 +0200
@@ -20,7 +20,6 @@
     pop 3 dict begin
       /PageSize exch def
       /ImagingBBox null def
-      /Policies 1 dict dup begin /PageSize 3 def end def
       { /Duplex true def } if
     currentdict end setpagedevice
   } {




By the way printing from openoffice works fine (at least writer
and calc).


Feel free to request any information you need to isolate that
missbehaviour.



-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686
Locale: LANG=de_AT@euro, LC_CTYPE=de_AT@euro (charmap=ISO-8859-15)



Reply to: