jeremias    2003/06/20 06:34:48

  Modified:    src/org/apache/fop/render/ps Tag: fop-0_20_2-maintain
                        PSRenderer.java
  Log:
  Fix for bug #20879 (leader broken, missing moveToCurrPosition)
  Submitted by: Larry Moore <[EMAIL PROTECTED]>
  
  Fix for bug #5674 (High memory usage in PS interpreter, FOP
    procs were started for every page but not ended after the page)
  Proc begins moved to end of Setup, so they only get executed once.
  
  Improved DSC-conformance in %%Page comments.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.15.2.20 +6 -4      xml-fop/src/org/apache/fop/render/ps/Attic/PSRenderer.java
  
  Index: PSRenderer.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/ps/Attic/PSRenderer.java,v
  retrieving revision 1.15.2.19
  retrieving revision 1.15.2.20
  diff -u -r1.15.2.19 -r1.15.2.20
  --- PSRenderer.java   6 Jun 2003 08:21:50 -0000       1.15.2.19
  +++ PSRenderer.java   20 Jun 2003 13:34:48 -0000      1.15.2.20
  @@ -874,6 +874,7 @@
   
           int bl = this.currentYPosition;
           // method is identical to super method except next line
  +        movetoCurrPosition();
   
           String fontWeight = area.getFontState().getFontWeight();
           //comment("% --- LineArea begin font-weight="+fontWeight);
  @@ -898,7 +899,7 @@
           this.pagecount++;
           this.idReferences = page.getIDReferences();
   
  -        write("%%Page: " + page.getNumber() + " " + page.getNumber());
  +        write("%%Page: " + page.getNumber() + " " + this.pagecount);
   
           final long pagewidth = page.getWidth();
           final long pageheight = page.getHeight();
  @@ -921,8 +922,6 @@
           }
   
           write("%%BeginPageSetup");
  -        write("FOPprocs begin");
  -        write("FOPFonts begin");
           if (rotate) {
               write(Math.round(pspageheight) + " 0 translate");
               write("90 rotate");
  @@ -1168,6 +1167,9 @@
           write("b4_Inc_state restore");
           write("} bind def");
           write("%%EndResource");
  +
  +        write("FOPprocs begin");
  +        write("FOPFonts begin");
   
           write("%%EndSetup");
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to