Bug report for Fop [2009/04/12]

2009-04-13 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=Critical  REG=Regression  MAJ=Major   |
| |   |   MIN=Minor   NOR=NormalENH=Enhancement TRV=Trivial |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
| 1063|New|Nor|2001-03-21|fop does not handle large fo files|
| 3824|New|Blk|2001-09-25|MIF option with tables|
| 5010|New|Enh|2001-11-21|Better error reporting needed |
| 6305|New|Nor|2002-02-07|Using fo:table-and-caption results in empty output|
| 6427|New|Enh|2002-02-13|Type 1 CID fonts are not supported|
| 8003|Ass|Maj|2002-04-12|FopImageFactory never releases cached images  |
| 8463|New|Nor|2002-04-24|SVG clipping in external.fo example doc when rende|
| 9379|New|Nor|2002-05-24|MIF Renderer generates incorrect MIF code |
|12610|New|Enh|2002-09-13|[PATCH] onLoad Action for PDF documents or how to |
|14356|New|Nor|2002-11-07|*NOT* embedding TrueTypeFont in PDF causes Acrobat|
|16713|New|Nor|2003-02-03|Hyphenation error in tables   |
|17369|New|Nor|2003-02-25|Footnote duplication  |
|17380|New|Nor|2003-02-25|Batik Component will not recognize fe SVG elem|
|17921|New|Nor|2003-03-12|Kerning is broken for standard fonts  |
|18292|New|Nor|2003-03-24|24 bit PNG not displayed correctly|
|18801|New|Nor|2003-04-08|visibility property is not implemented  |
|19228|New|Blk|2003-04-22|[PATCH] Child LayoutContext is null in certain cir|
|19341|Ver|Nor|2003-04-26|leader doesn't work since 0.20.5.rc2  |
|19695|New|Enh|2003-05-06|[PATCH] Allow fox:destination as child of fox:outl|
|19717|New|Enh|2003-05-07|Lets add support for JimiClassesPro.zip to build.x|
|19769|Ass|Enh|2003-05-08|Indefinite page size is not implemented   |
|20280|Ass|Enh|2003-05-27|text-align and text-align-last only partially impl|
|20407|New|Enh|2003-06-02|[PATCH] Configure image caching using the configur|
|20827|New|Enh|2003-06-17|Derive other font styles and weights from normal T|
|21265|Opn|Nor|2003-07-02|referencing a custom font (TTF or Adobe Type 1) fo|
|21905|New|Nor|2003-07-26|large list-item-label bleeds into following block |
|21982|New|Maj|2003-07-30|NullPointer Exception in LazyFont with embedded fo|
|22450|New|Maj|2003-08-15|Unterminated iteration in JPEGReader class|
|22627|Opn|Nor|2003-08-21|Update mirror/download page HEADER  README (was [|
|24148|New|Nor|2003-10-27|Kerning upsets text-align=end   |
|24171|New|Nor|2003-10-28|[PATCH] 1st Attempt at Whole Site PDF |
|24378|New|Nor|2003-11-04|Minor problem in sample code for embedding|
|24663|New|Nor|2003-11-12|fo:block space-after property needs fixing|
|25022|New|Nor|2003-11-26|XSL-FO to PCL : images not included   |
|25341|New|Nor|2003-12-08|percentage resolution not being recalculated on di|
|25411|New|Nor|2003-12-10|[WARNING] Error while constructing image from XML |
|25432|Ass|Maj|2003-12-11|Cannot embed the User Defined Characters into the |
|26047|New|Nor|2004-01-11|Space-after value remembered and used on second do|
|26590|New|Nor|2004-02-02|last character width in winansi font is missed|
|26848|New|Nor|2004-02-11|PNG images using JIMI instead JAI |
|27107|New|Maj|2004-02-20|TTF Reader fails  |
|27727|New|Maj|2004-03-17|problem displaying Japanese fonts in PDF. |
|27890|New|Min|2004-03-24|fop.sh doesn't set exit status|
|29632|New|Maj|2004-06-17|Rendered reads fonts from disk everytime it render|
|30006|New|Nor|2004-07-09|eps doesn't show up in recent GhostScript versions|
|30214|New|Nor|2004-07-20|PSGraphics2D.drawImage incorrect matrix generated |
|31039|New|Nor|2004-09-03|URL in basic-link is scrambled by encryption  |
|31225|New|Nor|2004-09-14|Need embedded page sequence functionality |
|31301|New|Nor|2004-09-19|FOP limitation-Summary of columns value at Table F|
|31674|New|Enh|2004-10-12|Allow Print Renderer to select Printer and Tray.  |
|31796|New|Cri|2004-10-20|Fop: Pdf generation dowsn`t work with j2sdk 1.5   |

DO NOT REPLY [Bug 46048] Wrong images used (how to clear image cache?)

2009-04-13 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=46048





--- Comment #32 from Alex Watson alex_wat...@standardandpoors.com  2009-04-13 
22:03:00 PST ---
Hi Jeremias,
Thanks for the pointers to the code base - that is a real help to my
understanding.

I had considered the expiration idea for all images (rather than just for
missing images), but was not sure if it was the ideal solution. This solution
would be perfect for me (with my current problem), but it would not have helped
M.H. who originally raised this issue. It would depend upon how configurable
the expiration was and how expensive it was to re-fetch an image.

Can you explain your comments about the UriResolver being expensive in
high-volume applications? I didn't quite understand the part about HTTP and
timestamps.

I know that the built-in (default) UriResolver will create connections to HTTP
webservers or local FileSystems (etc) - and this can become expensive without
any caching strategies.

However, when a developer plugs-in their own UriResolver it can be as smart and
efficient as they like (and does not need to create external connections). We
have a global ResourceResolver class that implements the UriResolver interface.
This implements its own caching strategy (and caches fonts, nested XSLT,
imported XML as well as images). Our implementation primarily loads resources
from disk (file), but future extensions to our system could allow this to
generate XML, Images or even XSLT on the fly.

I guess that is why I would prefer a hook that will let me take care of (part
of) the caching solutuion.

Sorry I cannot help with the patch - we only specify logical resources within
our XSLT, they are all mapped to real resources via our UriResolver. We do not
use the Base parameter. For what it is worth, I think the patch looks OK to me
and may help some users - but it does not really address my concerns.

Cheers!

Alex

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.