gears       01/08/14 10:56:40

  Modified:    src/org/apache/fop/render/pdf PDFRenderer.java
  Log:
  This fixes A4 letter size printing from Jeremias Maerki.
  
  Revision  Changes    Path
  1.83      +5 -3      xml-fop/src/org/apache/fop/render/pdf/PDFRenderer.java
  
  Index: PDFRenderer.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/pdf/PDFRenderer.java,v
  retrieving revision 1.82
  retrieving revision 1.83
  diff -u -r1.82 -r1.83
  --- PDFRenderer.java  2001/08/14 14:50:30     1.82
  +++ PDFRenderer.java  2001/08/14 17:56:40     1.83
  @@ -1,5 +1,5 @@
   /*
  - * $Id: PDFRenderer.java,v 1.82 2001/08/14 14:50:30 keiron Exp $
  + * $Id: PDFRenderer.java,v 1.83 2001/08/14 17:56:40 gears Exp $
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources.
  @@ -736,11 +736,13 @@
           }
           closeText();
   
  +        float w = page.getWidth();
  +        float h = page.getHeight();
           currentStream.add("ET\n");
   
           currentPage = this.pdfDoc.makePage(this.pdfResources, currentStream,
  -                                           page.getWidth() / 1000,
  -                                           page.getHeight() / 1000, page);
  +                                           Math.round(w / 1000),
  +                                           Math.round(h / 1000), page);
   
           if (page.hasLinks() || currentAnnotList != null) {
               if(currentAnnotList == null) {
  
  
  

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

Reply via email to