Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6337338

Printing of medium sized text files causes a very large spool file.

XMLWordPrintable

    • 2d
    • b62
    • x86
    • windows_xp

        FULL PRODUCT VERSION :
        JRE 1.5.0_05-b05

        ADDITIONAL OS VERSION INFORMATION :
        Windows XP SP1

        A DESCRIPTION OF THE PROBLEM :
        Our customers have problems printing big HTML or text files from our application using java.awt.print.* classes. The same bug occurs in JEdit, so I use JEdit to describe the problem:

        When I print a 580 KB text file with JEdit and JRE 1.4.2_06 I get a spool file with 1,69 MB. When I print the same file with JRE 1.5.0_05 the spool file has 196 MB (100 times bigger than the file created by 1.4.2).
        The problem occurs with CSV files or with text files containing 'complex' contents (e.g. program code).
        It does not occur when I print a file that consists of simple lines like "yet another test line" repeated many times. I.e. if I print a file that is 500 KB big but only contains many of these simple lines the problem does NOT occur.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Just create a approx. 500 KB big file consisting of the lines pasted below. Open the file in JEdit and print it. Set the print queue offline and watch the size of the spool file.
        1.4.2_06 - 181 pages - size of spool file: 1,69 MB
        1.5.0_05 - 181 pages - size of spool file 196 MB

        Part of example file:

        Name; ;Soll; ; ; ;S;e;p;t;e;m;b;e;r; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ;Diff
          Vorname; ;GLZ; ; ;

        ;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23;24;25;26;27;28;29;30;1;GLZ
          Pers.-Nr.; ;URL; ; ;

        ;Do;Fr;Sa;So;Mo;Di;Mi;Do;Fr;Sa;So;Mo;Di;Mi;Do;Fr;Sa;So;Mo;Di;Mi;Do;Fr;Sa;So;Mo;Di;Mi;Do;Fr;Sa;URL
        Smith

        C.;;344:00;hl;HL;--;--;--;--;--;hl;.,;--;--;--;--;--;.,;--;--;--;--;--;--;HL;hl;--;--;--;--;--;hl;HL;--;--;--;--;-22

        4:00
        Smith

        M.;;344:00;NK;hl;.,;hl;.,;--;--;.,;hl;NK;hl;NK;--;--;NK;hl;NK;hl;.,;--;--;U;U;U;U;U;--;--;U;hl;Kh;K;K;--;-8:00
        Smith

        I.;;129:00;U;U;U;--;--;--;--;U;U;U;--;--;--;--;U;U;U;--;--;--;--;?;?;?;--;--;--;--;?;?;?;--;--;--;-9:00
        Smith

        M.;;344:00;.,;hl;.,;HL;hl;--;--;.,;hl;.,;hl;HL;--;--;.,;.,;hl;hl;HL;--;--;.,;HL;hl;.,;U;--;--;hl;.,;HL;.,;hl;--;-8:0

        0
        Smith

        D.;;275:12;HL;hl;hl;.,;hl;--;--;HL;.,;hl;.,;--;--;--;.,;U;U;U;--;--;--;--;U;U;U;--;--;--;HL;hl;.,;.,;--;--;-11:12
        Smith

        E.;;344:00;U;U;U;U;U;--;--;.,;hl;HL;.,;hl;--;--;.,;HL;hl;.,;hl;--;--;hl;hl;.,;HL;hl;--;--;.,;hl;hl;hl;U;--;-8:00
        Smith

        C.;;344:00;.,;.,;HL;hl;hl;--;--;.,;HL;.,;NK;hl;--;--;NK;NK;NK;HL;hl;--;--;.,;NK;HL;hl;hl;--;--;.,;NK;.,;hl;HL;--;-8:

        00
        Smith

        K.;;344:00;hl;.,;hl;hl;HL;--;--;hl;.,;hl;HL;.,;--;--;.,;hl;HL;hl;.,;--;--;hl;.,;hl;hl;HL;--;--;.,;.,;hl;HL;hl;--;-8:

        00
        Smith B.;;344:00;U;U;U;U;U;--;--;U;U;U;U;U;--;--;U;.,;.,;s/;.,;--;--;.,;.,;.,;.,;.,;--;--;.,;.,;U;U;U;--;-8:00
        Smith

        F.;;344:00;.,;.,;.,;.,;.,;--;--;.,;.,;.,;.,;.,;--;--;.,;.,;.,;.,;.,;--;--;.,;.,;.,;.,;.,;--;--;NK;NK;NK;NK;NK;--;-8:

        00
        Smith

        A.;;344:00;.,;.,;U;U;s/;--;--;.,;.,;.,;.,;.,;--;--;HL;.,;.,;.,;.,;--;--;.,;.,;.,;.,;.,;--;--;vu;~;.,;.,;.,;--;-7:00
        Smith

        H.;;344:00;.,;.,;.,;.,;.,;--;--;.,;.,;.,;K;.,;--;--;hl;.,;.,;Su;U;--;--;.,;.,;U;.,;.,;--;--;.,;.,;U;U;U;--;-8:00
        Smith

        B.;;344:00;.,;.,;.,;.,;.,;--;--;.,;.,;.,;.,;.,;--;--;U;U;U;U;U;--;--;.,;.,;s/;.,;.,;--;--;.,;.,;.,;.,;.,;--;-8:00
        Smith C.;;103:12;U;U;U;U;U;--;--;?;?;bh;?;?;--;--;?;?;bh;bh;bh;--;--;?;bh;?;?;bh;--;--;?;bh;bh;?;bh;--;-24:00
        Smith

        J.;;344:00;U;U;U;U;U;--;--;U;U;U;U;NK;--;--;NK;NK;NK;U;U;--;--;U;U;U;U;U;--;--;U;U;U;U;U;--;-8:00
        Smith

        T.;;344:00;.,;U;U;.,;.,;--;--;vu;U;.,;.,;.,;--;--;U;U;U;U;U;--;--;U;U;U;.,;.,;--;--;.,;.,;.,;.,;.,;--;-8:00
        Smith

        M.;;344:00;U;U;U;U;U;--;--;.,;.,;.,;.,;.,;--;--;.,;.,;.,;.,;.,;--;--;.,;.,;.,;.,;.,;--;--;.,;.,;.,;.,;.,;--;-8:00
        duty1;;;;;;4;4;;;3;4;3;3;3;;;2;3;3;4;3;;;3;3;3;3;3;;;3;4;3;3;3;;-371:12
        duty1;;;;;;;1;;;;;;;;;;;;;1;;;;;;1;;;;;;;;;;;
        duty1;;;;;;;;;;1;;;;;;;;;;;;;;;;;;;;;1;;;;;;
        duty1

        Term;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1;;;;;
        duty1;;;;;;;;;;;;;1;;;;;;;;;;;;;;;;;;;;1;1;1;;
        duty1

        verplant;;;;;;5;6;;;;6;5;5;5;;;;7;5;5;4;;;;6;6;6;5;;;;6;5;4;3;;
        duty1;;;;;;6;5;;;3;4;3;2;1;;;4;4;4;4;4;;;3;4;5;3;3;;;2;1;3;3;4;;
        duty1.

        Abwesend;;;;;;;;;;;;;;;;;;;;1;;;;;;;;;;;;;;;;;


        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        The 1.5.0 spool file should be as small as the 1.4.2 spool file.
        ACTUAL -
        see above

        REPRODUCIBILITY :
        This bug can be reproduced always.

              prr Philip Race
              prr Philip Race
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: