Bug report for Fop [2007/01/14]

2007-01-14 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
|  953|Opn|Nor|2001-03-12|Incorrect hyperlinks area rendering in justified t|
| 1063|New|Nor|2001-03-21|fop does not handle large fo files|
| 1180|New|Maj|2001-04-02|Problem with monospaced font  |
| 1773|Opn|Blk|2001-05-16|A table that is bigger than the page produces an e|
| 1859|Opn|Min|2001-05-22|org.apache.fop.apps.Driver.reset() doesn't fully r|
| 1998|New|Nor|2001-06-05|linefeed-treatment not understood |
| 2150|Ass|Maj|2001-06-13|New page with  a table-header but without any tabl|
| 2475|Ass|Nor|2001-07-06|Borders don't appear to work in fo:table-row|
| 2740|New|Maj|2001-07-23|multi-page tables sometimes render badly  |
| 2909|New|Maj|2001-07-30|Gradient render error |
| 2964|Ass|Nor|2001-08-02|problems with height of cells in tables   |
| 2988|New|Maj|2001-08-03|0.19: list-item-label does not stick to list-item-|
| 3044|Ass|Maj|2001-08-08|keep-together not functioning |
| 3280|New|Nor|2001-08-27|PCL Renderer doesn't work |
| 3305|Opn|Nor|2001-08-28|list-block overlapping footnote body  |
| 3497|New|Cri|2001-09-07|id already exists error when using span=all attr|
| 3824|New|Blk|2001-09-25|MIF option with tables|
| 4030|New|Nor|2001-10-08|IOException creating Postscript with graphics on S|
| 4126|New|Nor|2001-10-12|FontState.width() returns pts instead of millipts |
| 4226|New|Nor|2001-10-17|The orphans property doesn't seem to work |
| 4388|New|Nor|2001-10-24|Nullpointer exception in the construction of new D|
| 4415|New|Nor|2001-10-25|scaling=uniform does not work on images...  |
| 4510|New|Nor|2001-10-30|fo:inline common properties ignored?  |
| 4535|New|Maj|2001-10-31|PCL renderer 1.13 not rendering SVG   |
| 4767|New|Nor|2001-11-09|SVG text is distored in PDF output|
| 4814|Opn|Nor|2001-11-12|0.20.2RC infinitely loops if there are tables in f|
| 5001|New|Nor|2001-11-21|content-width and content-height ignored? |
| 5010|New|Enh|2001-11-21|Better error reporting needed |
| 5124|New|Maj|2001-11-27|fo:block-container is not rendered properly using |
| 5335|New|Min|2001-12-10|Text with embedded CID fonts not retrievable from |
| 5655|Ass|Nor|2002-01-02|text-decoration cannot take multiple values   |
| 6094|Opn|Maj|2002-01-29|0.20.3rc hangs in endless loop|
| 6237|Opn|Nor|2002-02-05|#xFB01 (fi ligature) produces a sharp? |
| 6305|New|Nor|2002-02-07|Using fo:table-and-caption results in empty output|
| 6427|New|Enh|2002-02-13|Adding additional Type 1 fonts problem|
| 6437|New|Maj|2002-02-13|Tables without fo:table-column don't render   |
| 6483|New|Nor|2002-02-15|Table, Loop, footer could not fit on page, moving|
| 6844|New|Nor|2002-03-04|No line breaks inserted in list-item-label|
| 6918|New|Enh|2002-03-06|reference-orientation has no effect   |
| 6997|New|Nor|2002-03-09|[PATCH] Row-spanned row data breaks over a page wi|
| 7241|New|Nor|2002-03-19|keep-with-previous, keep-with-next only working on|
| 7283|New|Nor|2002-03-20|Table border misaligned when using margin-left in |
| 7337|New|Nor|2002-03-21|border around external image leaves empty space   |
| 7487|New|Nor|2002-03-26|break-before=page for table inserts empty page  |
| 7496|New|Nor|2002-03-26|The table header borders are not adjusted to the b|
| 7525|New|Cri|2002-03-27|table with spans inside a list-block  |
| 7919|New|Cri|2002-04-10|problem to use attribute linefeed-treatment and li|
| 8003|Ass|Maj|2002-04-12|FopImageFactory never releases cached images  |
| 8050|New|Nor|2002-04-13|Soft hyphen (shy;) is not handled properly   |
| 8321|New|Nor|2002-04-19|from-parent('width') returns 0 for nested tables  |
| 8463|New|Nor|2002-04-24|SVG clipping in external.fo example doc when rende|
| 8767|Ass|Min|2002

DO NOT REPLY [Bug 41044] - [PATCH] FOP memory usage patches.

2007-01-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41044.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41044


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #19289|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2007-01-16 02:25 ---
Created an attachment (id=19410)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19410action=view)
Updated properties patch

Relative to revision 496642. Includes previous changes and further
modifications to CommonXXX and XXXProperty classes. Breaks TXTHandler and will
affect any other code which relies on Mutable properties. For the most part,
the patch consists of adding hashCode() and equals() methods and replacing
constructor calls with calls to static getInstance methods.


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


DO NOT REPLY [Bug 41376] New: - FOTreeBuilder throws IllegalStateException

2007-01-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41376.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41376

   Summary: FOTreeBuilder throws IllegalStateException
   Product: Fop
   Version: 0.92
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: fo tree
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


Hi!

I want to process XSL-FO generated from XML using XSLT 2.0.
So i use Saxon-8.8 for the transformation.
With Fop-0.91 it works fine.
But when i use Version 0.92 or 0.93
an IllegalStateException encountered (see stack below).

Regards
Jörg


java.lang.IllegalStateException: FOTreeBuilder (and the Fop class) cannot be 
reused. Please instantiate a new instance.
at org.apache.fop.fo.FOTreeBuilder.startDocument(FOTreeBuilder.java:147)
at 
net.sf.saxon.event.ContentHandlerProxy.open(ContentHandlerProxy.java:242)
at net.sf.saxon.event.ProxyReceiver.open(ProxyReceiver.java:76)
at 
net.sf.saxon.event.ImplicitResultChecker.open(ImplicitResultChecker.java:24)
at 
net.sf.saxon.event.ImplicitResultChecker.firstContent(ImplicitResultChecker.java:59)
at 
net.sf.saxon.event.ImplicitResultChecker.startElement(ImplicitResultChecker.java:30)
at 
net.sf.saxon.event.NamespaceReducer.startElement(NamespaceReducer.java:54)
at 
net.sf.saxon.event.ComplexContentOutputter.startContent(ComplexContentOutputter.java:481)
at 
net.sf.saxon.event.ComplexContentOutputter.startElement(ComplexContentOutputter.java:153)
at 
net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:243)
at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:353)
at net.sf.saxon.instruct.Instruction.process(Instruction.java:91)
at 
net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:250)
at net.sf.saxon.instruct.Template.expand(Template.java:113)
at 
net.sf.saxon.instruct.CallTemplate$CallTemplatePackage.processLeavingTail(CallTemplate.java:375)
at net.sf.saxon.Controller.transformDocument(Controller.java:1607)
at net.sf.saxon.Controller.transform(Controller.java:1426)

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


DO NOT REPLY [Bug 41377] New: - Alignment (end, right) does not work in table-cells

2007-01-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41377.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41377

   Summary: Alignment (end, right) does not work in table-cells
   Product: Fop
   Version: 0.93
  Platform: All
OS/Version: Windows XP
Status: NEW
  Severity: blocker
  Priority: P1
 Component: rtf
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


Trying to create right aligned text within tablecells doesn't work for rtf.
Using code like this:

fo:table
fo:table-column column-width=9cm /
fo:table-column column-width=9cm /
fo:table-body
fo:table-row
fo:table-cell display-align=end
fo:block text-align=end
right1
/fo:block
/fo:table-cell
fo:table-cell display-align=start
fo:block text-align=start
left1
/fo:block
/fo:table-cell
/fo:table-row
fo:table-row
fo:table-cell display-align=end
fo:block text-align=end
right2
/fo:block
/fo:table-cell
fo:table-cell display-align=start
fo:block text-align=start
left2
/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body

produces a rtf document with a table where all strings are left-aligned.

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


DO NOT REPLY [Bug 41377] - Alignment (end, right) does not work in table-cells

2007-01-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41377.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41377





--- Additional Comments From [EMAIL PROTECTED]  2007-01-16 03:50 ---
Created an attachment (id=19411)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19411action=view)
complete sample fo 

Complete sample demonstrating the problem

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


DO NOT REPLY [Bug 41377] - Alignment (end, right) does not work in table-cells

2007-01-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41377.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41377





--- Additional Comments From [EMAIL PROTECTED]  2007-01-16 03:54 ---
I also tried the sample with current svn trunk version, but failed,
I tried with jfor-0.7.1 and it also did not work.
Then I tried with jfor-0.7.2rc1 and it worked !!!
So jfor-0.7.2rc1 might contain the necessary fixes for fop-0.93...

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


DO NOT REPLY [Bug 41376] - FOTreeBuilder throws IllegalStateException

2007-01-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41376.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41376


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




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


DO NOT REPLY [Bug 41376] - FOTreeBuilder throws IllegalStateException

2007-01-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41376.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41376


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |NEEDINFO




--- Additional Comments From [EMAIL PROTECTED]  2007-01-16 06:10 ---
How are you running FOP? From the command line or via an embedded application? 
The API has changed since 0.91. Have you read?

http://xmlgraphics.apache.org/fop/0.93/upgrading.html

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


DO NOT REPLY [Bug 41379] New: - VerifyError on FopFactory.newInstance() using Tomcat 5.5.17 and JDK 1.5.0_07

2007-01-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41379.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41379

   Summary: VerifyError on FopFactory.newInstance() using Tomcat
5.5.17 and JDK 1.5.0_07
   Product: Fop
   Version: 0.93
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Keywords: ErrorMessage
  Severity: major
  Priority: P1
 Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


Trying to convert 0.20.5 to fop-0.93-bin-jdk1.4.zip (1/3/2007).  0.20.5 worked 
fine other than 'Out of Memory' exceptions.  0.93 generates the following error 
when FopFactory.newInstance() is called during my PDFGenerator class's initial 
PDFGenerator.getInstance():

java.lang.VerifyError: (class: org/apache/fop/fo/ElementMappingRegistry, 
method: findFOMaker signature: 
(Ljava/lang/String;Ljava/lang/String;Lorg/xml/sax/Locator;)
Lorg/apache/fop/fo/ElementMapping$Maker;) Wrong return type in function
org.apache.fop.apps.FopFactory.init(FopFactory.java:134)
org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:144)
com.mbh.pds.ccd.documents.PDFGenerator.init(PDFGenerator.java:46)
com.mbh.pds.ccd.documents.PDFGenerator.clinit(PDFGenerator.java:40)
com.mbh.pds.ccd.action.ReportPdfAction.doDerivedExecute
(ReportPdfAction.java:77)
com.mbh.esln.security.action.SecurityAction.execute
(SecurityAction.java:42)
org.apache.struts.action.RequestProcessor.processActionPerform
(RequestProcessor.java:421)
org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:226)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Tried downloading from 2 different mirror sites.  I'm using Eclipse 3.1.2 (with 
MyEclipse Tomcat Server configuration).  Configured Eclipse/MyEclipse to use 
jdk 1.5.0_07 for Tomcat and Eclipse compiler, but Eclipse compiler is set to 
compliance level 1.4.

FopFactory is private as in your Servlets Example although not in a servlet:
private FopFactory fopFactory = FopFactory.newInstance();
private TransformerFactory tFactory = TransformerFactory.newInstance();

Didn't install xalan, xercesImpl, xml-apis, or serializer jars (using jdk's xml 
funcitonality instead), although that seems irrelevant for this. 

Perhaps 0.93 isn't compatible with java 5.0?  Seems like it should be - the 
older 0.20.5 version works. 

I hope I'm not overlooking something and that this is enough information.

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


DO NOT REPLY [Bug 41380] New: - Content in tables affecting conditional spacing of an adjacent block

2007-01-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41380.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41380

   Summary: Content in tables affecting conditional spacing of an
adjacent block
   Product: Fop
   Version: 0.93
  Platform: All
OS/Version: All
Status: NEW
  Severity: minor
  Priority: P4
 Component: pdf
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


I fined out that the content in tables was affecting the conditional spacing of
adjacent block.

Here are some examples:
dfg: The pdf file has spacing problems arround the text tableName1.
dfg2: No spacing problems when the tables are empty.
dfg3: Same document as dfg, but printed landscape, no spacing problems arround
tableName1 but arround tableName4.

dfg.fo: http://ez-files.net/download.php?file=7f54c1fd4355191a3991116585396d7b
dfg.pdf: http://ez-files.net/download.php?file=345f3b0fc7cde0a60c460d66d8a47f4f
dfg2.fo: http://ez-files.net/download.php?file=dc33ed605ce28bd1907a27124ee2bed1
dfg2.pdf: http://ez-files.net/download.php?file=363e5847d4e64e8d038ac4c5b22800de
dfg3.fo: http://ez-files.net/download.php?file=b9ca5bc586a8e1c297db9cb471504b70
dfg3.pdf: http://ez-files.net/download.php?file=b3289927e5e745d4bec3bbc8d913295c

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


DO NOT REPLY [Bug 41376] - FOTreeBuilder throws IllegalStateException

2007-01-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41376.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41376





--- Additional Comments From [EMAIL PROTECTED]  2007-01-16 07:42 ---
As well as.
I have change the fop.bat to add saxon-8.8.0.jar to use XSLT 2.0

I have notice, that the FOTreeBuilder has changed from 0.91 to 0.92
He cannot be reused since 0.92.
(See FOTreeBuilder#startDocument():
public void startDocument() throws SAXException {
if (used) {
throw new IllegalStateException(FOTreeBuilder (and the Fop class) 
cannot be reused.
+  Please instantiate a new instance.);
}
used = true;
rootFObj = null;// allows FOTreeBuilder to be reused
if (log.isDebugEnabled()) {

)

But it seems, that Saxon calls #startDocument() once again.


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


DO NOT REPLY [Bug 41376] - FOTreeBuilder throws IllegalStateException

2007-01-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41376.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41376





--- Additional Comments From [EMAIL PROTECTED]  2007-01-16 07:58 ---
(In reply to comment #2)
 As well as.

I don't understand this remark.

 But it seems, that Saxon calls #startDocument() once again.

Well then isn't the fault with Saxon. startDocument event should only be 
called once! Have you asked why startDocument event is generated twice on a 
Saxon users list? I'll leave this bug open for now.



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


DO NOT REPLY [Bug 41376] - FOTreeBuilder throws IllegalStateException

2007-01-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41376.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41376


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2007-01-16 09:50 ---
Hi,

 But when i use Version 0.92 or 0.93
 an IllegalStateException encountered (see stack below).
snip /
 java.lang.IllegalStateException: FOTreeBuilder (and the Fop class) cannot be 
 reused. Please instantiate a new instance.

I'm wondering whether FOP can be any clearer than this? 
It seems that the Fop class is being used for multiple runs (which, IIC, was 
perfectly possible with 
0.91)...

Doesn't look like a bug to me.

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


DO NOT REPLY [Bug 41377] - Alignment (end, right) does not work in table-cells

2007-01-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41377.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41377





--- Additional Comments From [EMAIL PROTECTED]  2007-01-16 13:32 ---
Created an attachment (id=19416)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19416action=view)
Fixed FO sample file


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


DO NOT REPLY [Bug 41377] - Alignment (end, right) does not work in table-cells

2007-01-16 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41377.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41377


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WORKSFORME




--- Additional Comments From [EMAIL PROTECTED]  2007-01-16 13:34 ---
After fixing some serious mistakes in your sample FO file, it worked just fine
for me with FOP 0.93 and FOP Trunk. Note that start and end are invalid
values for display-align. There you need to use before and after for
vertical alignment. Note also, that display-align doesn't work for RTF output in
0.93. This is fixed in FOP Trunk.

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


DO NOT REPLY [Bug 41377] - Alignment (end, right) does not work in table-cells

2007-01-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41377.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41377


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|VERIFIED




--- Additional Comments From [EMAIL PROTECTED]  2007-01-17 02:47 ---
(In reply to comment #4)
 After fixing some serious mistakes in your sample FO file, it worked just fine
 for me with FOP 0.93 and FOP Trunk. Note that start and end are invalid
 values for display-align. There you need to use before and after for
 vertical alignment. Note also, that display-align doesn't work for RTF output 
 in
 0.93. This is fixed in FOP Trunk.

Thanks for the effort!
I can verify that it work's when using the standalone fop processor (fop.bat).
Seems that I have a problem with my cocoon integration...


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


DO NOT REPLY [Bug 41389] New: - Rtf numbered lists without numbers

2007-01-17 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41389.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41389

   Summary: Rtf numbered lists without numbers
   Product: Fop
   Version: 0.93
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: major
  Priority: P2
 Component: rtf
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


I convert DocBook XML document to RTF, using xsltproc for generation of .fo
file, and next FOP 0.93. Document has orderedlist and itemizedlists.
Itemizedlists are converted to bullets very well, but orderedlist has no numbers
in front of paragraphs. I've done some experiments with .fo file which showed to
me that everything starting with a digit is treated as a numbered list element. 
fo:list-item-label
 fo:block1./fo:block
/fo:list-item-label
Next I browsed trough source code of
fop/trunk/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListItem.java and
found confirmation:
if (label.length()  0  Character.isDigit(label.charAt(0))) {
 rtfListItem.setRtfListStyle(new RtfListStyleNumber());
} else {
 rtfListItem.setRtfListStyle(new RtfListStyleText(label));
}
I suspect that there is something wrong with RtfListStyleNumber, but I'm not
java programmer so my possibilities end here.

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


DO NOT REPLY [Bug 40798] - page-position=last doesn't work for 1 page document

2007-01-18 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40798.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40798


[EMAIL PROTECTED] changed:

   What|Removed |Added

 OS/Version|Linux   |Windows 2000




--- Additional Comments From [EMAIL PROTECTED]  2007-01-18 09:29 ---
I am having this same problem in fop on windows.
If you do not know if that is correct in view of the FO spec, you may 
leave 'last' as is and support the 'only' trait (both first and last) as 
specified in XSL-FO 1.1 Recommendation.
So, the example stated would work as:
fo:conditional-page-master-reference 
 page-position=only master-reference=last-page/ 
fo:conditional-page-master-reference 
 page-position=last master-reference=last-page/ 
fo:conditional-page-master-reference 
 page-position=any master-reference=default-page / 


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


DO NOT REPLY [Bug 37157] - Port fox:destination to FOP Trunk

2007-01-19 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=37157.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37157


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




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


DO NOT REPLY [Bug 41426] New: - FOP dies with ClassCastException in org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements

2007-01-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41426.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41426

   Summary: FOP dies with ClassCastException in
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthE
lements
   Product: Fop
   Version: 0.93
  Platform: Other
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


In my tests, FOP 0.93 dies with a ClassCastException in
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements:

21.01.2007 15:34:58 org.apache.fop.cli.Main startFOP
SCHWERWIEGEND: Exception
java.lang.ClassCastException
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:160)
at org.apache.fop.cli.Main.main(Main.java:191)

-

java.lang.ClassCastException
at
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:76)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextKnuthElements(PageSequenceLayoutManager.java:272)
at
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:554)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextBlockList(PageSequenceLayoutManager.java:264)
at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:301)
at 
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:263)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:157)
at 
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:385)
at 
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:148)
at 
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1050)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)
at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:452)
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:160)
at org.apache.fop.cli.Main.main(Main.java:191)

(will attach test file)

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


DO NOT REPLY [Bug 41426] - FOP dies with ClassCastException in org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements

2007-01-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41426.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41426





--- Additional Comments From [EMAIL PROTECTED]  2007-01-21 06:37 ---
Created an attachment (id=19439)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19439action=view)
Test case

This test input shows the bug, when run under JDK 1.4, producing PDF output.

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


DO NOT REPLY [Bug 41426] - FOP dies with ClassCastException in org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements

2007-01-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41426.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41426


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




--- Additional Comments From [EMAIL PROTECTED]  2007-01-21 07:27 ---
I reported this problem with one of the fop examples
(examples/fo/advanced/cid-fonts.fo) last week.  The following patch fix the
exception.

--- snip ---

C:/workspace/fop/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java
===
---
C:/workspace/fop/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java
(revision 497065)
+++
C:/workspace/fop/src/java/org/apache/fop/layoutmgr/FlowLayoutManager.java
(working copy)
@@ -69,11 +69,11 @@
 int flowBPD = (int) getCurrentPV().getBodyRegion().getBPD();

 // currently active LM
-BlockLevelLayoutManager curLM;
+LayoutManager curLM;
 LinkedList returnedList;
 LinkedList returnList = new LinkedList();

-while ((curLM = ((BlockLevelLayoutManager) getChildLM())) !=
null) {
+while ((curLM = getChildLM()) != null) {
 if (curLM instanceof InlineLevelLayoutManager) {
 log.error(inline area not allowed under flow -
ignoring);
 curLM.setFinished(true);

--- snip ---

Adrian

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


DO NOT REPLY [Bug 41426] - FOP dies with ClassCastException in org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements

2007-01-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41426.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41426


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]
 Status|ASSIGNED|NEW




--- Additional Comments From [EMAIL PROTECTED]  2007-01-21 07:34 ---
I am new to the Apache FOP project and do not have commit rights yet so have
reassiged this bug to owner.

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


Bug report for Fop [2007/01/21]

2007-01-21 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
|  953|Opn|Nor|2001-03-12|Incorrect hyperlinks area rendering in justified t|
| 1063|New|Nor|2001-03-21|fop does not handle large fo files|
| 1180|New|Maj|2001-04-02|Problem with monospaced font  |
| 1773|Opn|Blk|2001-05-16|A table that is bigger than the page produces an e|
| 1859|Opn|Min|2001-05-22|org.apache.fop.apps.Driver.reset() doesn't fully r|
| 1998|New|Nor|2001-06-05|linefeed-treatment not understood |
| 2150|Ass|Maj|2001-06-13|New page with  a table-header but without any tabl|
| 2475|Ass|Nor|2001-07-06|Borders don't appear to work in fo:table-row|
| 2740|New|Maj|2001-07-23|multi-page tables sometimes render badly  |
| 2909|New|Maj|2001-07-30|Gradient render error |
| 2964|Ass|Nor|2001-08-02|problems with height of cells in tables   |
| 2988|New|Maj|2001-08-03|0.19: list-item-label does not stick to list-item-|
| 3044|Ass|Maj|2001-08-08|keep-together not functioning |
| 3280|New|Nor|2001-08-27|PCL Renderer doesn't work |
| 3305|Opn|Nor|2001-08-28|list-block overlapping footnote body  |
| 3497|New|Cri|2001-09-07|id already exists error when using span=all attr|
| 3824|New|Blk|2001-09-25|MIF option with tables|
| 4030|New|Nor|2001-10-08|IOException creating Postscript with graphics on S|
| 4126|New|Nor|2001-10-12|FontState.width() returns pts instead of millipts |
| 4226|New|Nor|2001-10-17|The orphans property doesn't seem to work |
| 4388|New|Nor|2001-10-24|Nullpointer exception in the construction of new D|
| 4415|New|Nor|2001-10-25|scaling=uniform does not work on images...  |
| 4510|New|Nor|2001-10-30|fo:inline common properties ignored?  |
| 4535|New|Maj|2001-10-31|PCL renderer 1.13 not rendering SVG   |
| 4767|New|Nor|2001-11-09|SVG text is distored in PDF output|
| 4814|Opn|Nor|2001-11-12|0.20.2RC infinitely loops if there are tables in f|
| 5001|New|Nor|2001-11-21|content-width and content-height ignored? |
| 5010|New|Enh|2001-11-21|Better error reporting needed |
| 5124|New|Maj|2001-11-27|fo:block-container is not rendered properly using |
| 5335|New|Min|2001-12-10|Text with embedded CID fonts not retrievable from |
| 5655|Ass|Nor|2002-01-02|text-decoration cannot take multiple values   |
| 6094|Opn|Maj|2002-01-29|0.20.3rc hangs in endless loop|
| 6237|Opn|Nor|2002-02-05|#xFB01 (fi ligature) produces a sharp? |
| 6305|New|Nor|2002-02-07|Using fo:table-and-caption results in empty output|
| 6427|New|Enh|2002-02-13|Adding additional Type 1 fonts problem|
| 6437|New|Maj|2002-02-13|Tables without fo:table-column don't render   |
| 6483|New|Nor|2002-02-15|Table, Loop, footer could not fit on page, moving|
| 6844|New|Nor|2002-03-04|No line breaks inserted in list-item-label|
| 6918|New|Enh|2002-03-06|reference-orientation has no effect   |
| 6997|New|Nor|2002-03-09|[PATCH] Row-spanned row data breaks over a page wi|
| 7241|New|Nor|2002-03-19|keep-with-previous, keep-with-next only working on|
| 7283|New|Nor|2002-03-20|Table border misaligned when using margin-left in |
| 7337|New|Nor|2002-03-21|border around external image leaves empty space   |
| 7487|New|Nor|2002-03-26|break-before=page for table inserts empty page  |
| 7496|New|Nor|2002-03-26|The table header borders are not adjusted to the b|
| 7525|New|Cri|2002-03-27|table with spans inside a list-block  |
| 7919|New|Cri|2002-04-10|problem to use attribute linefeed-treatment and li|
| 8003|Ass|Maj|2002-04-12|FopImageFactory never releases cached images  |
| 8050|New|Nor|2002-04-13|Soft hyphen (shy;) is not handled properly   |
| 8321|New|Nor|2002-04-19|from-parent('width') returns 0 for nested tables  |
| 8463|New|Nor|2002-04-24|SVG clipping in external.fo example doc when rende|
| 8767|Ass|Min|2002

DO NOT REPLY [Bug 40271] - [PATCH] auto table layout -- dirty draft

2007-01-22 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40271.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40271


[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|auto table layout -- dirty  |[PATCH] auto table layout --
   |draft   |dirty draft




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


DO NOT REPLY [Bug 41434] New: - [PATCH] Fix PDF Genaration for non ASCII compatibable locales

2007-01-22 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41434.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41434

   Summary: [PATCH] Fix PDF Genaration for non ASCII compatibable
locales
   Product: Fop
   Version: all
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: pdf
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


Currently, the PDF library of FOP uses getBytes in various places. The behaviour
of this functions depends on current locale. If the locale is not compatible
with ASCII, an invalid PDF will be generated (eg. with default locale IBM-1047).

To fix this, the getBytes call are replaced with a call to PDFDocument.encode.
Patch is made for the 0.93 version. As the pdf library in the trunk version is
the same, the patch should also be applied there.

diff -urN fop-orig/fop-0.93/src/java/org/apache/fop/pdf/PDFDocument.java
fop-brz/fop-0.93/src/java/org/apache/fop/
pdf/PDFDocument.java
--- fop-orig/fop-0.93/src/java/org/apache/fop/pdf/PDFDocument.java 
2007-01-03 21:44:52.0 +0100
+++ fop-brz/fop-0.93/src/java/org/apache/fop/pdf/PDFDocument.java  
2007-01-11 18:14:07.0 +0100
@@ -849,7 +849,7 @@

 getProfile().verifyPDFVersion();

-byte[] pdf = (%PDF- + getPDFVersionString() + \n).getBytes();
+byte[] pdf = encode(%PDF- + getPDFVersionString() + \n);
 stream.write(pdf);
 this.position += pdf.length;

@@ -870,9 +870,9 @@
 try {
 MessageDigest digest = MessageDigest.getInstance(MD5);
 DateFormat df = new
SimpleDateFormat('-'MM'-'dd'T'HH':'mm':'ss'.'SSS);
-digest.update(df.format(new Date()).getBytes());
+digest.update(encode(df.format(new Date(;
 //Ignoring the filename here for simplicity even though it's
recommended by the PDF spec
-digest.update(String.valueOf(this.position).getBytes());
+digest.update(encode(String.valueOf(this.position)));
 digest.update(getInfo().toPDF());
 byte[] res = digest.digest();
 String s = PDFText.toHex(res);
diff -urN fop-orig/fop-0.93/src/java/org/apache/fop/pdf/PDFRectangle.java
fop-brz/fop-0.93/src/java/org/apache/fop
/pdf/PDFRectangle.java
--- fop-orig/fop-0.93/src/java/org/apache/fop/pdf/PDFRectangle.java
2007-01-03 21:44:49.0 +0100
+++ fop-brz/fop-0.93/src/java/org/apache/fop/pdf/PDFRectangle.java 
2007-01-11 18:20:50.0 +0100
@@ -79,7 +79,7 @@
  * @return the PDF
  */
 public byte[] toPDF() {
-return toPDFString().getBytes();
+return PDFDocument.encode(toPDFString());
 }

 /**
diff -urN fop-orig/fop-0.93/src/java/org/apache/fop/pdf/PDFStream.java
fop-brz/fop-0.93/src/java/org/apache/fop/pd
f/PDFStream.java
--- fop-orig/fop-0.93/src/java/org/apache/fop/pdf/PDFStream.java   
2007-01-03 21:44:44.0 +0100
+++ fop-brz/fop-0.93/src/java/org/apache/fop/pdf/PDFStream.java 2007-01-11
18:21:19.0 +0100
@@ -57,7 +57,7 @@
  */
 public void add(String s) {
 try {
-data.getOutputStream().write(s.getBytes());
+data.getOutputStream().write(PDFDocument.encode(s));
 } catch (IOException ex) {
 //TODO throw the exception and catch it elsewhere
 ex.printStackTrace();

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


DO NOT REPLY [Bug 41426] - FOP dies with ClassCastException in org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements

2007-01-22 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41426.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41426


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-01-22 14:42 ---
Patch applied. Thanks, Adrian!
http://svn.apache.org/viewvc?view=revrev=498835

Please note that while Adrian's fix removes the ugly ClassCastException,
fo:wrapper will still not fully work as expected. You can use it to set
inheritable properties but setting an id attribute will not have the desired
effect. It will simply be ignored. The test wrapper_block_id.xml shows this.

So, Julian, you will not be able to use fo:wrapper like you did in your example
file for now. Please use an empty fo:block instead.

I'm not sure how best to solve the id problem. Maybe something with an LM
checking whether its parent is a wrapper. Suggestions welcome. Anyway, I'm
closing this bug as this was about the ClassCastException and we're rid of that.

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


DO NOT REPLY [Bug 41440] - PDFSVGHandler causes missing resource bundle

2007-01-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41440.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41440


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |NEEDINFO




--- Additional Comments From [EMAIL PROTECTED]  2007-01-23 04:39 ---
How are you running FOP? From the command line or an embedded Application? If 
you are running from an embedded Application can you try running FOP from the 
command line to see if the error persists? If your XSL-FO can be processed 
from the command line then can you check that your embedded Application can 
find batik-all-1.6.jar on the classpath?

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


DO NOT REPLY [Bug 41440] - PDFSVGHandler causes missing resource bundle

2007-01-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41440.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41440





--- Additional Comments From [EMAIL PROTECTED]  2007-01-23 05:11 ---
(In reply to comment #1)
Embedded. However...
after quick test on testing project, fop0.93 works with fo:external-graphic
instructions without problems, this bug is existing on
fo:instream-foreign-object instructions for example ..

Currently retesting code after build from source, and will upload a simple
example if this does not resolve it.



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


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2007-01-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




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


DO NOT REPLY [Bug 41426] - FOP dies with ClassCastException in org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements

2007-01-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41426.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41426





--- Additional Comments From [EMAIL PROTECTED]  2007-01-23 09:45 ---
FYI: Adrian recently discovered that one of our examples generates SEVERE 
errors due to the usage of 
fo:wrapper as direct descendant of the fo:flow (= advanced/cid-fonts.fo)

The reason being the bare white-space node descendants of the wrapper 
--ultimately collapsed, that's 
true, but whitespace handling is done later...

As a workaround there, the usage of fo:wrapper could easily be avoided, I 
think, because it is merely used 
for inherited properties... These might as well be specified on the fo:flow 
itself, and overridden only for 
the trailing fo:table (which is not enclosed by the fo:wrapper), if necessary.

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


DO NOT REPLY [Bug 41443] New: - [PATCH] FOP can't handle mixed-case hyphenation exceptions

2007-01-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41443.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41443

   Summary: [PATCH] FOP can't handle mixed-case hyphenation
exceptions
   Product: Fop
   Version: 0.93
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


FOP can't handle mixed-case words (for example German nouns) as hyphenation 
exceptions, for example Dateiname (file name) which is hyphenated 
as Datein-ame (Datei-name would be correct).

The words in the stoplist are mixed-case. However, when FOP checks if there's 
an hyphenation exception for a certain word (that is, it is in the stop list), 
all the characters of the word have already been converted to lowercase. 
Therefore mixed-case words in the stoplist cannot be found.

With the attached patch applied, FOP enters the exception words in lowercase 
into the stop list.

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


DO NOT REPLY [Bug 41443] - [PATCH] FOP can't handle mixed-case hyphenation exceptions

2007-01-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41443.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41443





--- Additional Comments From [EMAIL PROTECTED]  2007-01-23 10:00 ---
Created an attachment (id=19443)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19443action=view)
Patch to convert exceptions to lower-case


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


DO NOT REPLY [Bug 41445] New: - no searchable text in pdf for image xlink:href to svg file

2007-01-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41445.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41445

   Summary: no searchable text in pdf for image xlink:href to svg
file
   Product: Fop
   Version: 0.93
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Keywords: XSLTBug
  Severity: normal
  Priority: P2
 Component: pdf
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


When linking svg in fo-file like image xlink:href... as shown on fop svg
examples, text is graphic and no searchable text in the resulting pdf file. It
works on full embedded svg and, and partly on embedded with use xlink:href
The pdf file shows complete drawing except to the problem with searchable text.
It's independent on selected font.

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


DO NOT REPLY [Bug 41445] - no searchable text in pdf for image xlink:href to svg file

2007-01-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41445.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41445


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |NEEDINFO




--- Additional Comments From [EMAIL PROTECTED]  2007-01-23 12:39 ---
Not all text in SVG can be rendered as text. Some texts have to be rendered as
shapes and that's where you lose the ability to search for that text in the 
PDF. 
I'm pretty sure the text painting routines could be improved, so I'll keep the
bug open but I don't think this is on any FOP committer's radar at the moment.
So don't expect a quick resolution.

This is also documented at:
http://xmlgraphics.apache.org/fop/0.93/graphics.html#svg

You say that in certain situations it works. Please be more specific how exactly
we should reproduce the differences since I can't be sure that I'll do the right
thing based on your explanations. For example, there is no image
xlink:href... in FO as you suggest. This is strictly an SVG operation. If it
really works in some situations but not in others we may be able to improve the
situation without too much work.

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


DO NOT REPLY [Bug 41448] New: - java.lang.ClassCastException: org.apache.fop.layoutmgr.inline.WrapperLayoutManager

2007-01-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41448.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41448

   Summary: java.lang.ClassCastException:
org.apache.fop.layoutmgr.inline.WrapperLayoutManager
   Product: Fop
   Version: 0.93
  Platform: All
OS/Version: All
Status: NEW
  Severity: blocker
  Priority: P1
 Component: page-master/layout
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


Using DocBook XML 4.5 (test.xml, below), DocBook XSL 1.71.1 (test.xsl, below),
and xsltproc 
 xsltproc --version
Using libxml 20626, libxslt 10117 and libexslt 813
xsltproc was compiled against libxml 20626, libxslt 10117 and libexslt 813
libxslt 10117 was compiled against libxml 20626
libexslt 813 was compiled against libxml 20626

consistently getting this error (partial listing here, full listing at bottom)
on both cygwin and Linux:

Jan 23, 2007 9:56:49 PM org.apache.fop.cli.InputHandler error
SEVERE: javax.xml.transform.TransformerException:
org.apache.fop.layoutmgr.inline.WrapperLayoutManager
Jan 23, 2007 9:56:49 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
javax.xml.transform.TransformerException: java.lang.ClassCastException:
org.apache.fop.layoutmgr.inline.WrapperLayoutManager
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:160)
at org.apache.fop.cli.Main.main(Main.java:191)

*
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE book PUBLIC -//OASIS//DTD DocBook XML V4.5//EN
 http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd;
book
  chaptertitle/title
indextermprimary/primary/indexterm
  /chapter
/book





?xml version=1.0 encoding=utf-8?
xsl:stylesheet
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format;
version=1.0
  xsl:import href=/usr/share/xml/docbook/xsl-stylesheets-1.71-1/fo/docbook.xsl
/
  xsl:param name=fop1.extensions select=1/
  xsl:param name=use.svg select=1/xsl:param
  xsl:param name=draft.mode select=no/

/xsl:stylesheet



*** full error listing, happens every time ***
*** seems to me it could only be an FOP error *
** my apologies if not **

Making portrait pages on USletter paper (8.5inx11in)
Jan 23, 2007 10:15:16 PM org.apache.fop.cli.InputHandler error
SEVERE: javax.xml.transform.TransformerException:
org.apache.fop.layoutmgr.inline.WrapperLayoutManager
Jan 23, 2007 10:15:16 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
javax.xml.transform.TransformerException: java.lang.ClassCastException:
org.apache.fop.layoutmgr.inline.WrapperLayoutManager
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:160)
at org.apache.fop.cli.Main.main(Main.java:191)

-

javax.xml.transform.TransformerException: java.lang.ClassCastException:
org.apache.fop.layoutmgr.inline.WrapperLayoutManager
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:647)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:279)
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
at org.apache.fop.cli.Main.startFOP(Main.java:160)
at org.apache.fop.cli.Main.main(Main.java:191)
Caused by: java.lang.ClassCastException:
org.apache.fop.layoutmgr.inline.WrapperLayoutManager
at
org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:76)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextKnuthElements(PageSequenceLayoutManager.java:272)
at
org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:554)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.getNextBlockList(PageSequenceLayoutManager.java:264)
at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:301)
at
org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:263)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:157)
at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:385

DO NOT REPLY [Bug 41448] - java.lang.ClassCastException: org.apache.fop.layoutmgr.inline.WrapperLayoutManager

2007-01-23 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41448.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41448





--- Additional Comments From [EMAIL PROTECTED]  2007-01-23 21:21 ---
Test files in description, made as small as possible to still produce the error.

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


DO NOT REPLY [Bug 41448] - java.lang.ClassCastException: org.apache.fop.layoutmgr.inline.WrapperLayoutManager

2007-01-24 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41448.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41448


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |NEEDINFO




--- Additional Comments From [EMAIL PROTECTED]  2007-01-24 06:00 ---
You've haven't attached the XSL-FO that is generated by docbook which we will 
need for us to make an accurate diagnosis of the problem. If I had to guess 
then I would say this is caused by an fo:wrapper element as an immediate child 
of fo:flow. This bug exists in the released 0.93 but has been fixed in SVN.

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


DO NOT REPLY [Bug 41448] - java.lang.ClassCastException: org.apache.fop.layoutmgr.inline.WrapperLayoutManager

2007-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41448.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41448





--- Additional Comments From [EMAIL PROTECTED]  2007-01-25 00:29 ---
Created an attachment (id=19453)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19453action=view)
broken.xml reproduces this error, works.xml works. Includes .fo files

Used xsltproc:
   B:\xsltproc --version
   Using libxml 20619CVS2407, libxslt 10114CVS1012 and libexslt 812CVS1012
   xsltproc was compiled against libxml 20619, libxslt 10114 and libexslt 812
   libxslt 10114 was compiled against libxml 20619
   libexslt 812 was compiled against libxml 20619

DocBook XSL Stylesheets 1.71.1

fop-0.93

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


DO NOT REPLY [Bug 41448] - java.lang.ClassCastException: org.apache.fop.layoutmgr.inline.WrapperLayoutManager

2007-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41448.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41448


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEEDINFO|RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-01-25 01:50 ---
The FO generated by docbook contains fo:wrapper elements as direct children of 
fo:flow, e.g.

fo:wrapper id=id91268
!--index term--
/fo:wrapper

In 0.93 this is the cause of the ClassCastException. The ClassCastException 
has been fixed in SVN. But the id attribute has no affect on an fo:wrapper in 
FOP currently. I guess docbook generates this as a placeholder for PDF 
destinations. If you don't care about PDF destinations and just want to 
overcome the ClassCastException then get an SVN client, download the code and 
compile it yourself. If you don't fancy doing that then you may want to tell 
the docbook folks about this problem. Maybe when fop1.extensions is set they 
could skip generating such fo:wrapper elements for PDF Destinations, since PDF 
Destinations aren't supported in FOP anyway.

I'm closing this bug as the ClassCastException is fixed.

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


DO NOT REPLY [Bug 41460] New: - Forced Line break breaks word wrap

2007-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41460.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41460

   Summary: Forced Line break breaks word wrap
   Product: Fop
   Version: 0.93
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: page-master/layout
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


When generating a simple PDF which includes a word which is wider that the width
of the document, the word-wrapping of the rest of the document is wrong.  It
seems to half the horizontal space used.

Example fo:

?xml version=1.0?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
fo:simple-page-master master-name=my-page page-width=100mm
page-height=70mm
fo:region-body margin-top=2px margin-bottom=2px
column-count=1 /
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=my-page
fo:flow flow-name=xsl-region-body
fo:block color=black
 fo:block
This next little bit will test out us font sizes,
which we need to be able to change and play with.
Another interesting little test is this following URL, which
is too wide to fit on to a single
line of htis PDF.  Question is, will FOP split is in a
sensible way.
   
https://some.imaginary.long.url.com/chaptereight/love_experience/ecommerce/admin?showinfo
That'd be a yes then!
/fo:block
/fo:block
/fo:flow
/fo:page-sequence
/fo:root

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


DO NOT REPLY [Bug 41460] - Forced Line break breaks word wrap

2007-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41460.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41460


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE




--- Additional Comments From [EMAIL PROTECTED]  2007-01-25 04:08 ---
This problem seems to be cropping up a lot

*** This bug has been marked as a duplicate of 41019 ***

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


DO NOT REPLY [Bug 41019] - Left-align oddness with long, unbreakable strings following

2007-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41019.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41019


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC||[EMAIL PROTECTED]




--- Additional Comments From [EMAIL PROTECTED]  2007-01-25 04:08 ---
*** Bug 41460 has been marked as a duplicate of this bug. ***

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


DO NOT REPLY [Bug 41019] - Left-align oddness with long, unbreakable strings following

2007-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41019.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41019





--- Additional Comments From [EMAIL PROTECTED]  2007-01-25 04:53 ---
Enabling hyphenation also seems to prevent the problem.

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


DO NOT REPLY [Bug 41019] - Left-align oddness with long, unbreakable strings following

2007-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41019.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41019





--- Additional Comments From [EMAIL PROTECTED]  2007-01-25 06:35 ---
I have created a patch fixing the BreakingAlgorithm, so that, when a restart is
needed, the algorithm starts from a previously deactivated node (if it exists)
instead of using either a short break or a long one (there are a few messages in
fop-dev concerning this).

This should solve the bug, but makes the testcase block_uax14_linebreaking.xml
fail; in particular, the block testing exclamation and question marks creates a
different set of breaks that looks quite worse than the expected one, while
still being correct.

I already have a couple of suspects:
- the LineLM can call findBreakingPoints() with a threshold equal to 20: this
allows a huge overstretch, especially with unjustified text when the glue
elements have some conventional (and quite high) stretch value
- the element sequences created by the TextLM have some unintentional feasible
breaks that could be actually chosen while the algorithm is ignoring the
hyphenation points

For the moment I'm attaching the partial patch, as I'm reluctant to apply it
before fixing the other details; I should have some time to finish it tomorrow
afternoon, but if someone else is quicker  :-)

   Luca

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


DO NOT REPLY [Bug 41019] - Left-align oddness with long, unbreakable strings following

2007-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41019.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41019





--- Additional Comments From [EMAIL PROTECTED]  2007-01-25 06:36 ---
Created an attachment (id=19459)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19459action=view)
Partial fix, patching the BreakingAlgorithm


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


DO NOT REPLY [Bug 41019] - Left-align oddness with long, unbreakable strings following

2007-01-25 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41019.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41019


[EMAIL PROTECTED] changed:

   What|Removed |Added

 CC|[EMAIL PROTECTED]  |
   |tech.com|




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


DO NOT REPLY [Bug 41440] - PDFSVGHandler causes missing resource bundle

2007-01-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41440.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41440





--- Additional Comments From [EMAIL PROTECTED]  2007-01-26 00:16 ---
It would appear the exception is caused in use of invalid targets in the script.
The localisation message also appears for EN version as well.

***
!-- svg no.1 --
 fo:external-graphic
src=file:/home/assan/javaproj/FOPTest/svg/boxes.svg/

// FOP error message caused by svg no.1, if url of svg file is not
valid:
SEVERE: Image not available:
file:/home/assan/javaproj/FOPTest/svg/boxes.svg
***
!-- svg no.2 --
 fo:instream-foreign-object
svg xmlns=http://www.w3.org/2000/svg; width=20mm
height=20mm xml:space=preserve
   svg viewBox=0 0 20 20 preserveAspectRatio=none
  image
xlink:href=file:/home/assan/javaproj/FOPTest/svg/boxes.svg x=0 y=0
width=20mm height=20mm/
   /svg
/svg
 /fo:instream-foreign-object

// FOP error message caused by svg no.2, if url of svg file is not
valid:
SEVERE: svg graphic could not be built: Can't find bundle for base name
org.apache.fop.svg.resources.Messages, locale cs_CZ
java.util.MissingResourceException: Can't find bundle for base name
org.apache.fop.svg.resources.Messages, locale cs_CZ

Also gives same for locale en
***
!-- svg no.3 --
 fo:instream-foreign-object
svg xmlns=http://www.w3.org/2000/svg; width=100mm
height=100mm xml:space=preserve
   g transform=scale(10)
  image
xlink:href=file:/home/assan/javaproj/FOPTest/svg/boxes.svg x=0 y=0
width=100mm height=100mm/
   /g
/svg
 /fo:instream-foreign-object

// FOP error message caused by svg no.3, if url of svg file is not
valid:
SEVERE: svg graphic could not be built: Can't find bundle for base name
org.apache.fop.svg.resources.Messages, locale cs_CZ
java.util.MissingResourceException: Can't find bundle for base name
org.apache.fop.svg.resources.Messages, locale cs_CZ

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


DO NOT REPLY [Bug 41440] - PDFSVGHandler causes missing resource bundle

2007-01-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41440.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41440





--- Additional Comments From [EMAIL PROTECTED]  2007-01-26 00:19 ---
You would expect an Invalid target exception but the response is that the
relevant message bundle is not in the class path.  Where is the required message
bundle setup for the PDFSVGHandler.?

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


DO NOT REPLY [Bug 41440] - PDFSVGHandler causes missing resource bundle

2007-01-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41440.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41440


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEEDINFO|ASSIGNED




--- Additional Comments From [EMAIL PROTECTED]  2007-01-26 01:29 ---
(In reply to comment #4)
 You would expect an Invalid target exception but the response is that the
 relevant message bundle is not in the class path.  Where is the required 
 message
 bundle setup for the PDFSVGHandler.?

It is in Batik's org.apache.batik.bridge.resources.Messages.properties. It seems
that Batik's message i18n doesn't cope well with situations where Batik's
classes are subclassed and used in other packages. In this case it's
org.apache.fop.svg.PDFImageElementBridge which subclasses
org.apache.batik.bridge.SVGImageElementBridge. Now, the IO error happens due to
a missing file at the other end of the URL and Batik's
i18n.LocalizableSupport.formatMessage() goes looking for the message bundle in
the wrong place. I think we'll have to discuss the best course of action with
the Batik people.

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


DO NOT REPLY [Bug 41376] - FOTreeBuilder throws IllegalStateException

2007-01-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41376.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41376





--- Additional Comments From [EMAIL PROTECTED]  2007-01-26 06:21 ---
I had the same problem with saxon 8.8 and fop 93.

Then i have changed to saxonb8-7-1j
(http://downloads.sourceforge.net/saxon/saxonb8-7-1j.zip?modtime=1144880744big_mirror=0).
I works absolute perfectly now! So it seems that it's rather a problem with
saxon 8.8, not fop.

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


DO NOT REPLY [Bug 41440] - PDFSVGHandler causes missing resource bundle

2007-01-26 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41440.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41440


Bug 41440 depends on bug 41473, which changed state.

Bug 41473 Summary: DefaultBrokenLinkProvider causes MissingResourceException
http://issues.apache.org/bugzilla/show_bug.cgi?id=41473

   What|Old Value   |New Value

 Status|NEW |RESOLVED
 Resolution||DUPLICATE



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


Bug report for Fop [2007/01/28]

2007-01-28 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
|  953|Opn|Nor|2001-03-12|Incorrect hyperlinks area rendering in justified t|
| 1063|New|Nor|2001-03-21|fop does not handle large fo files|
| 1180|New|Maj|2001-04-02|Problem with monospaced font  |
| 1773|Opn|Blk|2001-05-16|A table that is bigger than the page produces an e|
| 1859|Opn|Min|2001-05-22|org.apache.fop.apps.Driver.reset() doesn't fully r|
| 1998|New|Nor|2001-06-05|linefeed-treatment not understood |
| 2150|Ass|Maj|2001-06-13|New page with  a table-header but without any tabl|
| 2475|Ass|Nor|2001-07-06|Borders don't appear to work in fo:table-row|
| 2740|New|Maj|2001-07-23|multi-page tables sometimes render badly  |
| 2909|New|Maj|2001-07-30|Gradient render error |
| 2964|Ass|Nor|2001-08-02|problems with height of cells in tables   |
| 2988|New|Maj|2001-08-03|0.19: list-item-label does not stick to list-item-|
| 3044|Ass|Maj|2001-08-08|keep-together not functioning |
| 3280|New|Nor|2001-08-27|PCL Renderer doesn't work |
| 3305|Opn|Nor|2001-08-28|list-block overlapping footnote body  |
| 3497|New|Cri|2001-09-07|id already exists error when using span=all attr|
| 3824|New|Blk|2001-09-25|MIF option with tables|
| 4030|New|Nor|2001-10-08|IOException creating Postscript with graphics on S|
| 4126|New|Nor|2001-10-12|FontState.width() returns pts instead of millipts |
| 4226|New|Nor|2001-10-17|The orphans property doesn't seem to work |
| 4388|New|Nor|2001-10-24|Nullpointer exception in the construction of new D|
| 4415|New|Nor|2001-10-25|scaling=uniform does not work on images...  |
| 4510|New|Nor|2001-10-30|fo:inline common properties ignored?  |
| 4535|New|Maj|2001-10-31|PCL renderer 1.13 not rendering SVG   |
| 4767|New|Nor|2001-11-09|SVG text is distored in PDF output|
| 4814|Opn|Nor|2001-11-12|0.20.2RC infinitely loops if there are tables in f|
| 5001|New|Nor|2001-11-21|content-width and content-height ignored? |
| 5010|New|Enh|2001-11-21|Better error reporting needed |
| 5124|New|Maj|2001-11-27|fo:block-container is not rendered properly using |
| 5335|New|Min|2001-12-10|Text with embedded CID fonts not retrievable from |
| 5655|Ass|Nor|2002-01-02|text-decoration cannot take multiple values   |
| 6094|Opn|Maj|2002-01-29|0.20.3rc hangs in endless loop|
| 6237|Opn|Nor|2002-02-05|#xFB01 (fi ligature) produces a sharp? |
| 6305|New|Nor|2002-02-07|Using fo:table-and-caption results in empty output|
| 6427|New|Enh|2002-02-13|Adding additional Type 1 fonts problem|
| 6437|New|Maj|2002-02-13|Tables without fo:table-column don't render   |
| 6483|New|Nor|2002-02-15|Table, Loop, footer could not fit on page, moving|
| 6844|New|Nor|2002-03-04|No line breaks inserted in list-item-label|
| 6918|New|Enh|2002-03-06|reference-orientation has no effect   |
| 6997|New|Nor|2002-03-09|[PATCH] Row-spanned row data breaks over a page wi|
| 7241|New|Nor|2002-03-19|keep-with-previous, keep-with-next only working on|
| 7283|New|Nor|2002-03-20|Table border misaligned when using margin-left in |
| 7337|New|Nor|2002-03-21|border around external image leaves empty space   |
| 7487|New|Nor|2002-03-26|break-before=page for table inserts empty page  |
| 7496|New|Nor|2002-03-26|The table header borders are not adjusted to the b|
| 7525|New|Cri|2002-03-27|table with spans inside a list-block  |
| 7919|New|Cri|2002-04-10|problem to use attribute linefeed-treatment and li|
| 8003|Ass|Maj|2002-04-12|FopImageFactory never releases cached images  |
| 8050|New|Nor|2002-04-13|Soft hyphen (shy;) is not handled properly   |
| 8321|New|Nor|2002-04-19|from-parent('width') returns 0 for nested tables  |
| 8463|New|Nor|2002-04-24|SVG clipping in external.fo example doc when rende|
| 8767|Ass|Min|2002

DO NOT REPLY [Bug 41488] New: - [PATCH] PNG causes NPE for RTF output

2007-01-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41488.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41488

   Summary: [PATCH] PNG causes NPE for RTF output
   Product: Fop
   Version: 1.0dev
  Platform: PC
OS/Version: Linux
Status: NEW
  Severity: normal
  Priority: P2
 Component: rtf
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


A fix for bug 41149. As proposed by Jeremias, ImageIOImage now doesn't call
loadBitmap() if it has the width and height of the image. I tested the patched
version width JPG, GIF and PNG images for PS, PDF and RTF output. So far it
seems to be OK...

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


DO NOT REPLY [Bug 41488] - [PATCH] PNG causes NPE for RTF output

2007-01-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41488.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41488





--- Additional Comments From [EMAIL PROTECTED]  2007-01-29 02:06 ---
Created an attachment (id=19474)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19474action=view)
Patch file


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


DO NOT REPLY [Bug 41488] - [PATCH] PNG causes NPE for RTF output

2007-01-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41488.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41488





--- Additional Comments From [EMAIL PROTECTED]  2007-01-29 02:07 ---
Created an attachment (id=19475)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19475action=view)
Test file


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


DO NOT REPLY [Bug 41488] - [PATCH] PNG causes NPE for RTF output

2007-01-29 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41488.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41488


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #19475|application/octet-stream|application/zip
  mime type||




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


DO NOT REPLY [Bug 41019] - Left-align oddness with long, unbreakable strings following

2007-01-30 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41019.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41019


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-01-30 08:41 ---
This should now be fixed in revision 501453.

Thanks for signalling this bug!

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


DO NOT REPLY [Bug 41500] New: - ClassCastException after generating FO with an XSLT 1.0 for a PDF output

2007-01-30 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41500.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41500

   Summary: ClassCastException after generating FO with an XSLT 1.0
for a PDF output
   Product: Fop
   Version: 0.93
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: blocker
  Priority: P1
 Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


Below please find the error trace, the same error was available using 0.92 
beta.

Exception in thread AWT-EventQueue-0 java.lang.ClassCastException: 
org.apache.fop.layoutmgr.InlineKnuthSequence
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.wrapPositionElements
(BlockStackingLayoutManager.java:1454)
at 
org.apache.fop.layoutmgr.BlockStackingLayoutManager.wrapPositionElements
(BlockStackingLayoutManager.java:1439)
at 
org.apache.fop.layoutmgr.BlockContainerLayoutManager$BlockContainerBreaker.getN
extKnuthElements(BlockContainerLayoutManager.java:612)
at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList
(AbstractBreaker.java:554)
at org.apache.fop.layoutmgr.AbstractBreaker.doLayout
(AbstractBreaker.java:301)
at 
org.apache.fop.layoutmgr.BlockContainerLayoutManager.getNextKnuthElements
(BlockContainerLayoutManager.java:355)
at 
org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements
(TableCellLayoutManager.java:168)
at 
org.apache.fop.layoutmgr.table.TableContentLayoutManager.createElementsForRowGr
oup(TableContentLayoutManager.java:480)
at 
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRow
Iterator(TableContentLayoutManager.java:243)
at 
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements
(TableContentLayoutManager.java:183)
at 
org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements
(TableLayoutManager.java:229)
at 
org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements
(TableCellLayoutManager.java:168)
at 
org.apache.fop.layoutmgr.table.TableContentLayoutManager.createElementsForRowGr
oup(TableContentLayoutManager.java:480)
at 
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRow
Iterator(TableContentLayoutManager.java:243)
at 
org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements
(TableContentLayoutManager.java:183)
at 
org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements
(TableLayoutManager.java:229)
at 
org.apache.fop.layoutmgr.StaticContentLayoutManager$StaticContentBreaker.getNex
tKnuthElements(StaticContentLayoutManager.java:317)
at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList
(AbstractBreaker.java:554)
at org.apache.fop.layoutmgr.AbstractBreaker.doLayout
(AbstractBreaker.java:301)
at org.apache.fop.layoutmgr.StaticContentLayoutManager.doLayout
(StaticContentLayoutManager.java:239)
at org.apache.fop.layoutmgr.PageSequenceLayoutManager.layoutSideRegion
(PageSequenceLayoutManager.java:771)
at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage
(PageSequenceLayoutManager.java:777)
at org.apache.fop.layoutmgr.PageSequenceLayoutManager.makeNewPage
(PageSequenceLayoutManager.java:741)
at org.apache.fop.layoutmgr.PageSequenceLayoutManager.handleBreakTrait
(PageSequenceLayoutManager.java:827)
at org.apache.fop.layoutmgr.PageSequenceLayoutManager.access$300
(PageSequenceLayoutManager.java:62)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.startPart
(PageSequenceLayoutManager.java:505)
at org.apache.fop.layoutmgr.AbstractBreaker.addAreas
(AbstractBreaker.java:420)
at org.apache.fop.layoutmgr.AbstractBreaker.addAreas
(AbstractBreaker.java:370)
at 
org.apache.fop.layoutmgr.PageSequenceLayoutManager$PageBreaker.doPhase3
(PageSequenceLayoutManager.java:369)
at org.apache.fop.layoutmgr.AbstractBreaker.doLayout
(AbstractBreaker.java:345)
at org.apache.fop.layoutmgr.AbstractBreaker.doLayout
(AbstractBreaker.java:263)
at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout
(PageSequenceLayoutManager.java:157)
at org.apache.fop.area.AreaTreeHandler.endPageSequence
(AreaTreeHandler.java:385)
at org.apache.fop.fo.pagination.PageSequence.endOfNode
(PageSequence.java:148)
at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement
(FOTreeBuilder.java:378)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194

DO NOT REPLY [Bug 41500] - ClassCastException after generating FO with an XSLT 1.0 for a PDF output

2007-01-30 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41500.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41500





--- Additional Comments From [EMAIL PROTECTED]  2007-01-30 15:33 ---
Transformation has been made using SAXON 7.9.1

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


DO NOT REPLY [Bug 41500] - ClassCastException after generating FO with an XSLT 1.0 for a PDF output

2007-01-30 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41500.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41500





--- Additional Comments From [EMAIL PROTECTED]  2007-01-30 15:55 ---
Any chance of attaching an FO file demonstrating the problem? Not XML + XSLT  
just plain FO please.

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


DO NOT REPLY [Bug 41503] New: - IndexOutOfBoundsException when missing fo:table-cell column-number and number-rows-spanned used in the same fo:table

2007-01-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41503.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41503

   Summary: IndexOutOfBoundsException when missing fo:table-cell
column-number and number-rows-spanned used in the same
fo:table
   Product: Fop
   Version: 0.93
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: regression
  Priority: P2
 Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


Platform: XP SP2, Java JDK 1.5.0_06.

Executing fop0.92 with the FO below produces the correct PDF.
Executing same FO with fop0.93 gives following run-time exception:

java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at java.util.ArrayList.RangeCheck(ArrayList.java:546)
at java.util.ArrayList.set(ArrayList.java:337)
at 
org.apache.fop.fo.flow.TableFObj.updateColumnIndex(TableFObj.java:160)
.

--- Sample FO -
?xml version=1.0?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
fo:simple-page-master master-name=content page-width=210mm
page-height=297mm
  fo:region-body/
/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=content
fo:flow flow-name=xsl-region-body
  fo:table table-layout=fixed width=100%
fo:table-column column-width=proportional-column-width(1)/
fo:table-column column-width=100mm/
fo:table-column column-width=proportional-column-width(1)/
fo:table-body
  fo:table-row
fo:table-cell border=1pt solid black column-number=1
  fo:blockcolumn 1/fo:block
/fo:table-cell   
fo:table-cell border=1pt solid black column-number=3
number-rows-spanned=2
  fo:blockcolumn 3/fo:block
/fo:table-cell
  /fo:table-row
  fo:table-row
fo:table-cell border=1pt solid black column-number=1
  fo:blockcolumn 1/fo:block
/fo:table-cell
fo:table-cell border=1pt solid black column-number=2
  fo:blockcolumn 2/fo:block
/fo:table-cell
  /fo:table-row
/fo:table-body
  /fo:table
/fo:flow
  /fo:page-sequence
/fo:root
--- Sample FO -

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


DO NOT REPLY [Bug 41503] - IndexOutOfBoundsException when missing fo:table-cell column-number and number-rows-spanned used in the same fo:table

2007-01-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41503.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41503





--- Additional Comments From [EMAIL PROTECTED]  2007-01-31 01:03 ---
Created an attachment (id=19488)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19488action=view)
test FO to reproduce exception in fop-0.93


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


DO NOT REPLY [Bug 41503] - IndexOutOfBoundsException when missing fo:table-cell column-number and number-rows-spanned used in the same fo:table

2007-01-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41503.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41503





--- Additional Comments From [EMAIL PROTECTED]  2007-01-31 01:06 ---
Created an attachment (id=19489)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19489action=view)
resulting PDF in fop-092


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


DO NOT REPLY [Bug 41508] New: - Thread hang at image loading

2007-01-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41508.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41508

   Summary: Thread hang at image loading
   Product: Fop
   Version: 0.20.4
  Platform: HP
OS/Version: HP-UX
Status: NEW
  Severity: major
  Priority: P2
 Component: images
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


Hello,
we are running on Weblogic 8.1 and using FOP for rendering report PDF's with
images. It works fine, but sometimes (till now 2x) it happens that all threads
in  WLS are blocked at the same place - when rendering PDF and loading some
image. Threads never get awaked, restart of WLS is needed. I attach piece of
thread dump. All threads have the same stacktrace as seen bellow.
Vasek Tregner

ExecuteThread: '19' for queue: 'weblogic.kernel.Default' daemon prio=8
tid=000b1980 nid=52 lwp_id=1404872 waiting on condition [0x12a89000
..0x12a884f0]
at java.lang.Thread.sleep(Native Method)
at org.apache.fop.image.GifImage.loadImage(Unknown Source)
at org.apache.fop.image.AbstractFopImage.getBitmaps(Unknown Source)
at org.apache.fop.pdf.PDFXObject.output(Unknown Source)
at org.apache.fop.pdf.PDFDocument.output(Unknown Source)
at org.apache.fop.render.pdf.PDFRenderer.render(Unknown Source)
at org.apache.fop.apps.StreamRenderer.queuePage(Unknown Source)
- locked 4f570c80 (a org.apache.fop.apps.StreamRenderer)
at org.apache.fop.layout.AreaTree.addPage(Unknown Source)
at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.fop.apps.Driver.render(Unknown Source)
- locked 4f570fd8 (a org.apache.fop.apps.Driver)
at org.apache.fop.apps.Driver.run(Unknown Source)
- locked 4f570fd8 (a org.apache.fop.apps.Driver)
at 
cz.csas.cicnet.tapestry.services.PdfService.service(PdfService.java:75)

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


DO NOT REPLY [Bug 41500] - ClassCastException after generating FO with an XSLT 1.0 for a PDF output

2007-01-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41500.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41500





--- Additional Comments From [EMAIL PROTECTED]  2007-01-31 10:48 ---
Created an attachment (id=19491)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19491action=view)
FO source do generate the error (transforming to PDF)


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


DO NOT REPLY [Bug 41508] - Thread hang at image loading

2007-01-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41508.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41508


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||WONTFIX




--- Additional Comments From [EMAIL PROTECTED]  2007-01-31 11:17 ---
Sorry, but we won't look into this bug. Since the code of GifImage didn't change
much I'd assume it would resurface in your particular environment even if you
upgraded to FOP 0.93. We're likely to soon drop support for JDK 1.3 which
removes the necessity to keep GifImage around in the first place, as image
loading for GIF will be done through ImageIO. BTW, it would have been
interesting to know the maker and version of the JVM you're using.

Anyway, I've got a possible work-around (no guarantees) for you if you
absolutely have to stay with FOP 0.20.4 which is by now 4 years old: Make JAI
available to FOP and change org/apache/fop/image/FopImageFactory by changing the
following code section:

if (image/gif.equals(imgMimeType)) {
imgClassName = org.apache.fop.image.GifImage;
// imgClassName = org.apache.fop.image.JAIImage;

Comment the line with GifImage and uncomment the line below. Recompile FOP
from the sources and FOP will attempt to load GIF images through JAI.

Upgrading to FOP 0.20.5 won't help in this case as the code is pretty much the
same. You could also try to use a different JVM in your environment as I don't
think this is just a FOP bug. After all, a lot of people used GIF images with
FOP 0.20.4 and 0.20.5 and it worked for them.

If you can upgrade to FOP 0.93 that particular problem would go away anyway but
you have to do a migration which may be more work for you.

Good luck!

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


DO NOT REPLY [Bug 41500] - ClassCastException after generating FO with an XSLT 1.0 for a PDF output

2007-01-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41500.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41500


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




--- Additional Comments From [EMAIL PROTECTED]  2007-01-31 12:16 ---
The problem appears as fo:wrapper is used as a direct child of
fo:block-container with block-level content. As documented in
http://xmlgraphics.apache.org/fop/compliance.html#fo-object-wrapper fo:wrapper
is currently only working properly around inline-level content. The work-around
at the moment is to use fo:block instead of fo:wrapper.

Let's keep this bug open until the implementation is fully finished for
fo:wrapper. Thanks for the test case.

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


DO NOT REPLY [Bug 41503] - IndexOutOfBoundsException when missing fo:table-cell column-number and number-rows-spanned used in the same fo:table

2007-01-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41503.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41503


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-01-31 12:40 ---
Fixed in FOP Trunk.

Contrary to what Chris indicated on fop-users, the FO is valid. Nothing in the 
Rec forbids columns being 
empty in certain rows, or simply skipping a few column-numbers, or even the 
cells being placed in 
random order in the row...

see: http://svn.apache.org/viewvc?view=revrev=501977

Thanks for reporting.

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


DO NOT REPLY [Bug 41514] New: - [PATCH] Strict url validation of user config

2007-02-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514

   Summary: [PATCH] Strict url validation of user config
   Product: Fop
   Version: 0.93
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


Configuration checking for fonts and base urls is now much stricter
given strict-validationtrue/strict-validation (this is the default value)
in the user config

This should address the following bugs :-

http://issues.apache.org/bugzilla/show_bug.cgi?id=40120
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288

Patch file and zip file containing new files will be attached.

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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514





--- Additional Comments From [EMAIL PROTECTED]  2007-02-01 07:32 ---
Created an attachment (id=19492)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19492action=view)
main patch file


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


DO NOT REPLY [Bug 40288] - base url requires /, failes otherwise

2007-02-01 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40288.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40288


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-02-01 07:38 ---
This bug should be fixed/addressed by [PATCH]
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514

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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #19492|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2007-02-02 03:53 ---
(From update of attachment 19492)
This patch attachment has been superceeded


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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514





--- Additional Comments From [EMAIL PROTECTED]  2007-02-02 03:55 ---
Created an attachment (id=19497)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19497action=view)
main patch file

(In reply to comment #3)
 The patch is fairly large and seems to address more than only validation of
the
 configuration file. Can you give a summary?

The patch seems quite large because I have added a new suite of configuration
unit tests for the fix (these are contained in the attached zip file).  A
summary of the changes is given below.
 
 I am against this exception being thrown if I do not use the font arial at
all:
 
 [ERROR] FOP - Exception
 org.apache.avalon.framework.configuration.ConfigurationException: Failed to
 resolve font metric-url
 'arial.xml'org.apache.avalon.framework.configuration.ConfigurationException:

 Failed to resolve font metric-url 'arial.xml'

In order for this to be the case, the user configuration would have to be
(re-)read/parsed at the runtime of the rendering operation in order that it
would be able to know if a particular font is being used in the given FO file. 
This would be an inefficient way of doing things and would require some
structural changes.
 
 I am also against combining strict validation of the FO file and the user
 configuration; they are two different things. I would appreciate a separate
 option 'validate-configuration', which checks every entry in the
configuration file.


I did raise this as a question on forum and I remember you responded to it.

http://www.nabble.com/Bad-FOP-configurations-tf3064300.html#a8522251

Chris Bowditch suggested that it be combined with strict-validation.  I can
see your argument for this and this was my original idea but I can also see
Chris' argument too.  On balance I have decided to go with your suggestion and
make it separate a separate configuration option so as to not cause any
confusion.

I have introduced a new configuration variable called strict-configuration. 
I haven't called it validate-configuration because validation should always
occur, its how the resulting error is handled that is the important thing (see
Andreas' comments from the thread).

If strict-configuration == false then FOP will simply log the error and
continue to parse the user configuration.  If strict-configuration == true
then FOP will immediately raise an exception and will not continue trying to
configure itself.

I have attached a new patch file containing these changes (this includes
related documentation changes).  This new patch file superceeds the previous
one.

Kind regards,

Adrian Cumiskey.

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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #19497|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2007-02-02 04:03 ---
Created an attachment (id=19498)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19498action=view)
main patch file

Includes relevant changes to site (xdocs) documentation.

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


DO NOT REPLY [Bug 41532] New: - Bookmark Links are not working properly...

2007-02-02 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41532.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41532

   Summary: Bookmark Links are not working properly...
   Product: Fop
   Version: 0.93
  Platform: All
OS/Version: other
Status: NEW
  Severity: major
  Priority: P2
 Component: pdf
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


I tried to create a PDF file from pdfoutline.fo file that is being shipped with
the FOP0.93v.  It generated the PDF file successfully. But when I click on the
bookmarks' links, it's not displaying the content (of that link) on top of the 
page.

Is it a known issue? Or do I need to configure something to make it work?

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


DO NOT REPLY [Bug 41532] - Bookmark Links are not working properly...

2007-02-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41532.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41532





--- Additional Comments From [EMAIL PROTECTED]  2007-02-03 13:16 ---
Confirmed. The jump is made only when the bookmark's destination is not on the 
current page.

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


DO NOT REPLY [Bug 41488] - [PATCH] PNG causes NPE for RTF output

2007-02-03 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41488.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41488


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




--- Additional Comments From [EMAIL PROTECTED]  2007-02-03 14:56 ---
Patch applied. Thanks, Dominic.
http://svn.apache.org/viewvc?view=revrev=503326

While reviewing I noticed one problem. PNGReader does not read the resolution
from the PNG file. So, if a PNG were used with a resolution other than 72dpi,
the intrinsic size of the image will be wrong when processed through the layout
engine. The problem is that PNG is a format consisting of chunks. The pHYs
chunk with the resolution info is optional any doesn't have to be near the
beginning of the file so it's not so easy to just extend PNGReader.

I'll have to think about how best to implement this, especially in the light of
the image library redesign where I'd like to avoid decoding the whole image just
to get the resolution. Therefore I'm keeping this issue open. One way or the
other, we need to fix this before the next release, because the bug fixes one
thing but essentially breaks another.

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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED




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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-05 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514





--- Additional Comments From [EMAIL PROTECTED]  2007-02-05 03:57 ---
Created an attachment (id=19514)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19514action=view)
patch file update for fop config validating xsd file


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


DO NOT REPLY [Bug 40542] - fo:character not working correctly

2007-02-06 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40542.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40542


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 OS/Version|Windows 2000|All
   Platform|PC  |All
Version|0.20.5  |1.0dev




--- Additional Comments From [EMAIL PROTECTED]  2007-02-06 11:48 ---

Just browsing through the bug-list, and noticed that this also happens with 
current FOP Trunk on OS X, so 
changed the properties accordingly.

Found out so far that first a String is created for the literal 00EA, then 
subsequently, the character is 
erroneously determined by charAt(0)... Hmmm (read: fix coming soon)

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


DO NOT REPLY [Bug 40542] - fo:character not working correctly

2007-02-06 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40542.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40542


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||INVALID




--- Additional Comments From [EMAIL PROTECTED]  2007-02-06 11:53 ---

Errm... Sorry, invalid bug for 0.93/Trunk, and probably also for 0.20.5

should be:
fo:character character=#x00EA; /


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


DO NOT REPLY [Bug 38710] - NPE with fo:title

2007-02-06 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=38710.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38710


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2007-02-06 12:02 ---

Fixed in FOP Trunk (for quite some time already, I believe...)

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


DO NOT REPLY [Bug 40529] - [PATCH] Possible bug in PSTextRenderer

2007-02-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=40529.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40529


[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|Possible bug in |[PATCH] Possible bug in
   |PSTextRenderer  |PSTextRenderer




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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #19498|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2007-02-07 08:01 ---
Created an attachment (id=19539)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19539action=view)
main patch file


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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #19539|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2007-02-07 08:11 ---
Created an attachment (id=19540)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19540action=view)
main patch file

I have updated the main patch file following feedback from Vincent.

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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-07 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514





--- Additional Comments From [EMAIL PROTECTED]  2007-02-07 11:40 ---
I had a short look at the patch, and I have the following comments:

Do not change the 0.93 documentation but the trunk documentation:
src/documentation/content/xdocs/trunk/configuration.xml, etc.

TargetResolution is a property of FOUserAgent because it may easily vary with
each run. It is not a good idea if you move properties around. They are in
FopFactory or in FOUserAgent for a reason. See
http://xmlgraphics.apache.org/fop/trunk/embedding.html.

Although I did not (and will not) have enough time to look at the patch in
detail, I have the feeling that it addresses more than user configuration
validation. It does some refactoring. That requires careful inspection.


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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514





--- Additional Comments From [EMAIL PROTECTED]  2007-02-08 02:28 ---
(In reply to comment #10)
 I had a short look at the patch, and I have the following comments:
 
 Do not change the 0.93 documentation but the trunk documentation:
 src/documentation/content/xdocs/trunk/configuration.xml, etc.

Oops, yes I missed that.  I will update the patch file to make changes to the
trunk xdocs and not 0.93.
 
 TargetResolution is a property of FOUserAgent because it may easily vary with
 each run. It is not a good idea if you move properties around. They are in
 FopFactory or in FOUserAgent for a reason. See
 http://xmlgraphics.apache.org/fop/trunk/embedding.html.

There is no real change here.  TargetResolution is still a property of
FOUserAgent, it is just configured from FopFactory and propagated to the
FOUserAgent.  As before, the value of this property in FOUserAgent can be
programmatically set at anytime during rendering.

 Although I did not (and will not) have enough time to look at the patch in
 detail, I have the feeling that it addresses more than user configuration
 validation. It does some refactoring. That requires careful inspection.

It may look like quite a large patch, but there really isn't very much
refactoring, just stricter value checking which addresses issues raised in bugs
40288 and 40120.

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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #19540|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2007-02-08 02:42 ---
Created an attachment (id=19545)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19545action=view)
main patch file

Who ever commits this patch will need to remember to update fop/status.xml with
something resembling the following (remember to fill in the dev attribute in
the action tag).

Index: status.xml
===
--- status.xml  (revision 504579)
+++ status.xml  (working copy)
@@ -28,6 +28,9 @@
 
   changes
 release version=FOP Trunk
+  action context=Code dev=?? type=fix fixes-bug=40120,40288
due-to=Adrian Cumiskey
+Strict FOP user configuration checking.
+  /action
   action context=Code dev=JM type=add
 Support for GIF images in RTF output (RTF handler, only. Does not
affect the RTF library.)
   /action

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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514





--- Additional Comments From [EMAIL PROTECTED]  2007-02-08 07:02 ---
(In reply to comment #12)
 Created an attachment (id=19545)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19545action=view) 
[edit]
 main patch file

I have another comment: this would be better to put the test config files in a
subdirectory of test/ --typically, test/conf.
Also, the tests fail with a SAXParseException: The processing instruction
target matching [xX][mM][lL] is not allowed. Can aynyone else try and tell me
if the problem also occurs?

Finally, I got a small error applying your patch. I could recover easily, but
next time be sure to create it from scratch and against the latest svn revision.

Thanks,
Vincent

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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514





--- Additional Comments From [EMAIL PROTECTED]  2007-02-08 07:20 ---
(In reply to comment #13)
 (In reply to comment #12)
  Created an attachment (id=19545)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19545action=view) 
[edit] [edit]
  main patch file
 
 I have another comment: this would be better to put the test config files in a
 subdirectory of test/ --typically, test/conf.

The reason I didn't do this is because of concerns raised about this patch
containing too much refactoring.  But I am in agreement that it makes sense for
the config files to live separately.  So if nobody objects I will provide them
in a separate zip attachment and move/remove the existing test/test.xconf to
test/config/test.xconfig.

 Also, the tests fail with a SAXParseException: The processing instruction
 target matching [xX][mM][lL] is not allowed. Can aynyone else try and tell 
 me
 if the problem also occurs?

Do you have the stack trace for this?

 Finally, I got a small error applying your patch. I could recover easily, but
 next time be sure to create it from scratch and against the latest svn 
 revision.
 
 Thanks,
 Vincent

Sorry about this, I will try to be mindful of this in the future.  Ideally I
would do this everytime, but there have been a number of revisions to this patch
and preparing a new patch from scratch every half day is not a good use of time.
 Its not always practically quick and easy to do as I am in parallel cracking on
with other FOP development work.

regards,

Adrian.

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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514





--- Additional Comments From [EMAIL PROTECTED]  2007-02-08 07:40 ---
(In reply to comment #14)
 (In reply to comment #13)
  (In reply to comment #12)
   Created an attachment (id=19545)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19545action=view) 
[edit] [edit] [edit]
   main patch file
  
  I have another comment: this would be better to put the test config files 
  in a
  subdirectory of test/ --typically, test/conf.
 
 The reason I didn't do this is because of concerns raised about this patch
 containing too much refactoring.  But I am in agreement that it makes sense 
 for
 the config files to live separately.  So if nobody objects I will provide them
 in a separate zip attachment and move/remove the existing test/test.xconf to
 test/config/test.xconfig.

Well, the existing test.xconf might be used for other purposes. AFAIU its
purpose its not to test that the handling of user config files is correct, but
only to configure other tests. So I would leave it as is and put in the conf/
subdirectory only files meant as tests for the config handling code.


  Also, the tests fail with a SAXParseException: The processing instruction
  target matching [xX][mM][lL] is not allowed. Can aynyone else try and 
  tell me
  if the problem also occurs?
 
 Do you have the stack trace for this?

Of course, sorry, here it is:
 at
org.apache.fop.config.BaseUserConfigTestCase.testUserConfig(BaseUserConfigTestCase.java:6
8)
Same error message for all of the testcases. It's a bit weird, I'm not even sure
to understand it.


  Finally, I got a small error applying your patch. I could recover easily, 
  but
  next time be sure to create it from scratch and against the latest svn 
  revision.
  
  Thanks,
  Vincent
 
 Sorry about this, I will try to be mindful of this in the future.  Ideally I
 would do this everytime, but there have been a number of revisions to this 
 patch
 and preparing a new patch from scratch every half day is not a good use of 
 time.
  Its not always practically quick and easy to do as I am in parallel cracking 
 on
 with other FOP development work.

I can understand. You may want to work on several copies of the Trunk for each
different task. That way it will be very easy to generate new patches.

Thanks,
Vincent

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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #19545|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2007-02-08 08:19 ---
Created an attachment (id=19548)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19548action=view)
main patch file

Contains suggested ammendments from Vincent.

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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #19514|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2007-02-08 08:21 ---
(From update of attachment 19514)
this is now included in the main patch file


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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #19493|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2007-02-08 08:27 ---
(From update of attachment 19493)
this is now contain in the main patch file


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


DO NOT REPLY [Bug 41572] New: - Error in url(...) URI processing

2007-02-08 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41572.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41572

   Summary: Error in url(...) URI processing
   Product: Fop
   Version: 0.93
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: fo tree
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: [EMAIL PROTECTED]


URISpecification.getURL() cannot handle URIs like url('(foo)bar'). It will
extract (foo only. 

The problem can be fixed by replacing

href = href.substring(4, href.indexOf())).trim();

with

href = href.substring(4, href.lastIndexOf())).trim();

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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514





--- Additional Comments From [EMAIL PROTECTED]  2007-02-09 01:33 ---
(In reply to comment #19)
 (From update of attachment 19493 [edit])
 this is now contain in the main patch file
 

I have compilation errors when applying this patch: PDFRenderer, PSRenderer and
XMLRenderer now expect the FontSetup.buildFontListFromConfiguration method to
have 2 arguments, which is not the case. It seems you forgot to include the
modifications of FontSetup in your latest patch.

Also, did you manage to reproduce the SAXParseException error?

Thanks,
Vincent

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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514


[EMAIL PROTECTED] changed:

   What|Removed |Added

  Attachment #19548|0   |1
is obsolete||




--- Additional Comments From [EMAIL PROTECTED]  2007-02-09 04:24 ---
Created an attachment (id=19561)
 -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19561action=view)
main patch file

Hi Vincent,

I have the flu today but checked my email earlier this morning and noticed your
reply.  I have attached a new patch..  I did leave FontSetup out..  it is one
of the files I am working on for the font directory functionality.

I haven't experienced any SAXException problems, all the config unit tests
passed fine.  I will try and investigate this when I am feeling a little
better.

Wishing you a nice weekend,

Adrian.

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


DO NOT REPLY [Bug 41514] - [PATCH] Strict url validation of user config

2007-02-09 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=41514.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41514





--- Additional Comments From [EMAIL PROTECTED]  2007-02-09 07:10 ---
(In reply to comment #16)
 I yet encountered this kind of error:
 it occurs during xsd validation if there is extra spaces or line brak before 
 the XML declaration.
 
 HTH,

lightbulb/
Indeed, this is probably due to extra ^M at the end of lines in the new files.
When converting the patch to the unix file format the problem no longer
appeared. Thanks for the hint Pascal!

Adrian, please create your patch from a unix box next time.

Wait, just kidding :-P 

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


Bug report for Fop [2007/02/11]

2007-02-11 Thread bugzilla
+---+
| Bugzilla Bug ID   |
| +-+
| | Status: UNC=Unconfirmed NEW=New ASS=Assigned|
| | OPN=ReopenedVER=Verified(Skipped Closed/Resolved)   |
| |   +-+
| |   | Severity: BLK=Blocker CRI=CriticalMAJ=Major |
| |   |   MIN=Minor   NOR=Normal  ENH=Enhancement   |
| |   |   +-+
| |   |   | Date Posted |
| |   |   |  +--+
| |   |   |  | Description  |
| |   |   |  |  |
| 1063|New|Nor|2001-03-21|fop does not handle large fo files|
| 1180|New|Maj|2001-04-02|Problem with monospaced font  |
| 1773|Opn|Blk|2001-05-16|A table that is bigger than the page produces an e|
| 2150|Ass|Maj|2001-06-13|New page with  a table-header but without any tabl|
| 2475|Ass|Nor|2001-07-06|Borders don't appear to work in fo:table-row|
| 2740|New|Maj|2001-07-23|multi-page tables sometimes render badly  |
| 2909|New|Maj|2001-07-30|Gradient render error |
| 2964|Ass|Nor|2001-08-02|problems with height of cells in tables   |
| 2988|New|Maj|2001-08-03|0.19: list-item-label does not stick to list-item-|
| 3044|Ass|Maj|2001-08-08|keep-together not functioning |
| 3280|New|Nor|2001-08-27|PCL Renderer doesn't work |
| 3305|Opn|Nor|2001-08-28|list-block overlapping footnote body  |
| 3497|New|Cri|2001-09-07|id already exists error when using span=all attr|
| 3824|New|Blk|2001-09-25|MIF option with tables|
| 4030|New|Nor|2001-10-08|IOException creating Postscript with graphics on S|
| 4126|New|Nor|2001-10-12|FontState.width() returns pts instead of millipts |
| 4226|New|Nor|2001-10-17|The orphans property doesn't seem to work |
| 4388|New|Nor|2001-10-24|Nullpointer exception in the construction of new D|
| 4510|New|Nor|2001-10-30|fo:inline common properties ignored?  |
| 4535|New|Maj|2001-10-31|PCL renderer 1.13 not rendering SVG   |
| 4767|New|Nor|2001-11-09|SVG text is distored in PDF output|
| 4814|Opn|Nor|2001-11-12|0.20.2RC infinitely loops if there are tables in f|
| 5001|New|Nor|2001-11-21|content-width and content-height ignored? |
| 5010|New|Enh|2001-11-21|Better error reporting needed |
| 5124|New|Maj|2001-11-27|fo:block-container is not rendered properly using |
| 5335|New|Min|2001-12-10|Text with embedded CID fonts not retrievable from |
| 5655|Ass|Nor|2002-01-02|text-decoration cannot take multiple values   |
| 6094|Opn|Maj|2002-01-29|0.20.3rc hangs in endless loop|
| 6237|Opn|Nor|2002-02-05|#xFB01 (fi ligature) produces a sharp? |
| 6305|New|Nor|2002-02-07|Using fo:table-and-caption results in empty output|
| 6427|New|Enh|2002-02-13|Adding additional Type 1 fonts problem|
| 6437|New|Maj|2002-02-13|Tables without fo:table-column don't render   |
| 6483|New|Nor|2002-02-15|Table, Loop, footer could not fit on page, moving|
| 6844|New|Nor|2002-03-04|No line breaks inserted in list-item-label|
| 6997|New|Nor|2002-03-09|[PATCH] Row-spanned row data breaks over a page wi|
| 7241|New|Nor|2002-03-19|keep-with-previous, keep-with-next only working on|
| 7283|New|Nor|2002-03-20|Table border misaligned when using margin-left in |
| 7337|New|Nor|2002-03-21|border around external image leaves empty space   |
| 7487|New|Nor|2002-03-26|break-before=page for table inserts empty page  |
| 7496|New|Nor|2002-03-26|The table header borders are not adjusted to the b|
| 7525|New|Cri|2002-03-27|table with spans inside a list-block  |
| 7919|New|Cri|2002-04-10|problem to use attribute linefeed-treatment and li|
| 8003|Ass|Maj|2002-04-12|FopImageFactory never releases cached images  |
| 8321|New|Nor|2002-04-19|from-parent('width') returns 0 for nested tables  |
| 8463|New|Nor|2002-04-24|SVG clipping in external.fo example doc when rende|
| 8767|Ass|Min|2002-05-03|Image and solid colour background rectangle sizes |
| 8819|New|Nor|2002-05-06|Footnotes lost|
| 9054|Opn|Maj|2002-05-14|PDF Tc Text operator BUG  |
| 9292|New|Nor|2002-05-21|FOP rejects a property value of inherit as an un|
| 9379|New|Nor|2002-05-24|MIF Renderer generates incorrect MIF code |
| 9569|New|Maj|2002-06-03|break does not work on block-container|
| 9864|New|Nor

<    8   9   10   11   12   13   14   15   16   17   >