You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2001/09/09 12:27:57 UTC

[DO NOT REPLY: Bug 3475] Large images cause PDF generation to run out of memory

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3475

*** shadow/3475	Thu Sep  6 14:17:43 2001
--- shadow/3475.tmp.6526	Sun Sep  9 03:27:57 2001
***************
*** 2,9 ****
  | Large images cause PDF generation to run out of memory                     |
  +----------------------------------------------------------------------------+
  |        Bug #: 3475                        Product: Fop                     |
! |       Status: NEW                         Version: all                     |
! |   Resolution:                            Platform: PC                      |
  |     Severity: Major                    OS/Version: Windows NT/2K           |
  |     Priority: Other                     Component: images                  |
  +----------------------------------------------------------------------------+
--- 2,9 ----
  | Large images cause PDF generation to run out of memory                     |
  +----------------------------------------------------------------------------+
  |        Bug #: 3475                        Product: Fop                     |
! |       Status: RESOLVED                    Version: all                     |
! |   Resolution: FIXED                      Platform: PC                      |
  |     Severity: Major                    OS/Version: Windows NT/2K           |
  |     Priority: Other                     Component: images                  |
  +----------------------------------------------------------------------------+
***************
*** 19,22 ****
  that page so it keeps trying until the VM runs out of memory.
  
  This even happens if a max-width and max-height are specified on the external 
! graphic.
--- 19,39 ----
  that page so it keeps trying until the VM runs out of memory.
  
  This even happens if a max-width and max-height are specified on the external 
! graphic.
! 
! ------- Additional Comments From p_d_austin@yahoo.com  2001-09-09 03:27 -------
! The problem was that the code to check the height of the page was looking at 
! the full page height and not the height of the body which is the available 
! area. This caused the height to allways be too big and therefore the scaling 
! did not take place. The following change solves this.
! 
! org/apache/fop/fo/flow/ExternalGraphic.java
! Line 147 old: int pageHeight = area.getPage().getHeight();
! Line 147 new: int pageHeight = area.getPage().getBody().getMaxHeight() - 
! spaceBefore;
! 
! I do not have access to change the source in CVS can someone do this.
! 
! Cheers,
! Paul
! p_d_austin@yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org