Bug report for Fop [2007/08/19]
+---+ | 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| | 2909|New|Maj|2001-07-30|Gradient render error | | 2988|New|Maj|2001-08-03|0.19: list-item-label does not stick to list-item-| | 3280|New|Nor|2001-08-27|PCL Renderer doesn't work | | 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| | 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| | 5010|New|Enh|2001-11-21|Better error reporting needed | | 5124|New|Maj|2001-11-27|fo:block-container is not rendered properly using | | 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| | 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 | | 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 | | 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|2002-06-14|fo:list-item-label at the end of line | | 9885|New|Nor|2002-06-14|link in pdf to another pdf through url doesn't wor| |10379|New|Enh|2002-07-01|Improvement to FOP Classloader| |11032|New|Min|2002-07-22|Height of table-cell is calculated incorrect when | |11783|New|Maj|2002-08-16|fo:block background-color=xtext/fo:block gen| |12262|New|Min|2002-09-03|Lacking detection of endless loops| |12300|New|Nor|2002-09-04|letter-spacing problem on sequencing pages| |12448|New|Nor|2002-09-09|Height of lines set by line-height are too short. | |12494|New|Nor|2002-09-10|fop produces pdf file which Acrobat Reader refuses| |12610|New|Enh|2002-09-13|[PATCH] onLoad Action for PDF documents or how to | |13450|New|Cri|2002-10-09|FOP0.20.4 embedded rendering throws exception | |13464|Opn|Nor|2002-10-09|part of word missing when broken across pages | |13586|New|Blk|2002-10-13|fop will not work on linux alpha because jre is br| |13592|New|Nor|2002-10-14|Converting a FO document with PNG images into PS | |13734|New|Nor|2002-10-17|Hyphenation does not work correctly on long string| |13807|New|Nor|2002-10-21|list-block in table-cell | |14248|New|Enh|2002-11-05|51-page FO example, could be added to the samples | |14352|New|Enh|2002-11-07|It would be nice if FOP could be plugged into popu| |14356|New|Nor|2002-11-07|*NOT* embedding TrueTypeFont in PDF causes Acrobat| |14419|New|Enh|2002-11-10|Implement SourceResolver, Image Resolver |
Re: embedding font Bundesbahn-Pi at FOP
Thanks Adrian, I wouldn't mind fixing it if there's no one wants to do it. But I would need some guidance on how to and what should I do since I've never followed fop-dev before. Thanks. Adrian Cumiskey wrote: Hi William (and all), This did turn out to be an encoding problem after all. Unfortunately I do not have the time at the moment to provide a fix for this problem. but I have provided a patch which provides the ability for FOP to correctly identify the type 1 font encoding. At least now you will be provided with a human readable log error message rather than NullPointerException :-). Maybe someone could take a look at implementing support for these encoding types? It wouldn't be too difficult, it would mostly involve adding data to src/codegen/fonts/encodings.xml. Most of the background information anyone would require for providing support for these encodings can be found in the patch I provided (http://issues.apache.org/bugzilla/show_bug.cgi?id=43143). If you are still using a metrics-url in your font configuration then you will need to regenerate your metrics file once this patch has been applied as the font encoding detection is flawed for detecting these encoding types for type 1 fonts in the existing implementation. Of course font you don't need to specify metrics-url attributes in your fop.xconf anymore in the latest trunk code and in the forthcoming 0.94 (and 0.93 if I am correct). You can just provide an embed-url and FOP will generate the metrics on the fly. e.g. font kerning=yes embed-url=Bundesba.pfb font-triplet name=Bundesbahn style=normal weight=normal/ /font All the best, Adrian. william wrote: Thanks Adrian and everyone, I have sent it to you for you to take a look at it (font and FO). if there's something that is useful for me/others to know, please do tell me. Otherwise, does anyone has any idea where else I can look for software solution that might accommodate this ? William. Adrian Cumiskey wrote: Hi William, Yes I think that might be the problem, it does look like an encoding problem to me. I took a quick look at the code and the NullPointerException you are experiencing would indicate that the encoding is not recognised by FOP and its failing to provide a CodePointMapping instance which is used internally by SingleByteFont. If you send me the font (and fo) I will try and take a quick look at it. Adrian. william wrote: Hi All, First of all, would like to thank you all developers and commiters at FOP. i've been using it for awhile now. I haven't had problem with embedding fonts before, except on this Bundesbahn-Pi font and another symbol/pi font. The error message is posted below. I'm using fop 0.93 and I need help with embedding this font. Is there anything to do with this? /currently present a problem because FOP cannot correctly determine the encoding of these two single-byte fonts through the PFM file. FOP now correctly interprets the encoding value in the XML font metrics file, but the PFMReader application writes UnknownEncoding to the generated XML file /If someone would try to work it out for me, i can send you the font to try out + .fo file. This is my configuration for the font: font metrics-url=Bundesbahn.xml kerning=yes embed-url=Bundesba.pfb font-triplet name=Bundesbahn style=normal weight=normal/ /font / *Error message generated by FOP:* 10/08/2007 06:16:13 org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException 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.NullPointerException at org.apache.fop.fonts.SingleByteFont.hasChar(SingleByteFont.java:103) at org.apache.fop.fonts.LazyFont.hasChar(LazyFont.java:166) at org.apache.fop.fonts.Font.hasChar(Font.java:189) at org.apache.fop.fonts.Font.getCharWidth(Font.java:231) at org.apache.fop.layoutmgr.inline.TextLayoutManager.initialize(TextLayoutManager.java:188) ... Thank you, / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- William LiemEmail: [EMAIL PROTECTED] Allette Systems Pty Ltd. Level 2, 73 Union St Pyrmont NSW 2009 Australia Tel: +61 2 9660 8866 Fax: +61 2 9660 8869
Re: embedding font Bundesbahn-Pi at FOP
Hi William, Most of the work involves entering all the charset data for ExpertEncoding and ExpertSubsetEncoding (contained in Appendix C of http://www.adobe.com/devnet/font/pdfs/5176.CFF.pdf) into src/codegen/fonts/encodings.xml - see http://issues.apache.org/bugzilla/show_bug.cgi?id=43143. Its not a difficult job, just quite a long one. If you are able to find the time to do this then I would be more happy get it working for you. Adrian. william wrote: Thanks Adrian, I wouldn't mind fixing it if there's no one wants to do it. But I would need some guidance on how to and what should I do since I've never followed fop-dev before. Thanks. Adrian Cumiskey wrote: Hi William (and all), This did turn out to be an encoding problem after all. Unfortunately I do not have the time at the moment to provide a fix for this problem. but I have provided a patch which provides the ability for FOP to correctly identify the type 1 font encoding. At least now you will be provided with a human readable log error message rather than NullPointerException :-). Maybe someone could take a look at implementing support for these encoding types? It wouldn't be too difficult, it would mostly involve adding data to src/codegen/fonts/encodings.xml. Most of the background information anyone would require for providing support for these encodings can be found in the patch I provided (http://issues.apache.org/bugzilla/show_bug.cgi?id=43143). If you are still using a metrics-url in your font configuration then you will need to regenerate your metrics file once this patch has been applied as the font encoding detection is flawed for detecting these encoding types for type 1 fonts in the existing implementation. Of course font you don't need to specify metrics-url attributes in your fop.xconf anymore in the latest trunk code and in the forthcoming 0.94 (and 0.93 if I am correct). You can just provide an embed-url and FOP will generate the metrics on the fly. e.g. font kerning=yes embed-url=Bundesba.pfb font-triplet name=Bundesbahn style=normal weight=normal/ /font All the best, Adrian. william wrote: Thanks Adrian and everyone, I have sent it to you for you to take a look at it (font and FO). if there's something that is useful for me/others to know, please do tell me. Otherwise, does anyone has any idea where else I can look for software solution that might accommodate this ? William. Adrian Cumiskey wrote: Hi William, Yes I think that might be the problem, it does look like an encoding problem to me. I took a quick look at the code and the NullPointerException you are experiencing would indicate that the encoding is not recognised by FOP and its failing to provide a CodePointMapping instance which is used internally by SingleByteFont. If you send me the font (and fo) I will try and take a quick look at it. Adrian. william wrote: Hi All, First of all, would like to thank you all developers and commiters at FOP. i've been using it for awhile now. I haven't had problem with embedding fonts before, except on this Bundesbahn-Pi font and another symbol/pi font. The error message is posted below. I'm using fop 0.93 and I need help with embedding this font. Is there anything to do with this? /currently present a problem because FOP cannot correctly determine the encoding of these two single-byte fonts through the PFM file. FOP now correctly interprets the encoding value in the XML font metrics file, but the PFMReader application writes UnknownEncoding to the generated XML file /If someone would try to work it out for me, i can send you the font to try out + .fo file. This is my configuration for the font: font metrics-url=Bundesbahn.xml kerning=yes embed-url=Bundesba.pfb font-triplet name=Bundesbahn style=normal weight=normal/ /font / *Error message generated by FOP:* 10/08/2007 06:16:13 org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException 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.NullPointerException at org.apache.fop.fonts.SingleByteFont.hasChar(SingleByteFont.java:103) at org.apache.fop.fonts.LazyFont.hasChar(LazyFont.java:166) at org.apache.fop.fonts.Font.hasChar(Font.java:189) at org.apache.fop.fonts.Font.getCharWidth(Font.java:231) at org.apache.fop.layoutmgr.inline.TextLayoutManager.initialize(TextLayoutManager.java:188) ... Thank you, / - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To
DO NOT REPLY [Bug 43166] New: - unclosed border on nested inlines
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=43166. 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=43166 Summary: unclosed border on nested inlines Product: Fop Version: 1.0dev Platform: PC OS/Version: Windows 2000 Status: NEW Severity: normal Priority: P2 Component: page-master/layout AssignedTo: fop-dev@xmlgraphics.apache.org ReportedBy: [EMAIL PROTECTED] On nested inlines, if the outer inline has a border and the inner inline hasn't. The right border is not rendered. -- 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 43166] - unclosed border on nested inlines
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=43166. 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=43166 --- Additional Comments From [EMAIL PROTECTED] 2007-08-20 02:33 --- Created an attachment (id=20678) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=20678action=view) FO to reproduce 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 42703] - fo:retrieve-marker misses fo:inline space character on first retrieve in page.
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=42703. 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=42703 [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED | --- Additional Comments From [EMAIL PROTECTED] 2007-08-20 02:46 --- Bug is not fully resolved. If an external-graphic element is inserted in the fo:inline the white space is missing 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.
Re: Is it ok to have NullPointerException while running build's examples target for fop 0.94?
Andrejus Chaliapinas schrieb: Hi, I've made checkout of fop 0.94 branch and while running examples target from build, get this: [fop] D:\eclipse\test\fop-0_94\examples\fo\basic\images.fo - D:\eclipse\test\fop-0_94\build\examples\images.pdf [fop] [ERROR] AbstractFopImage - Error while loading image (Gif): null java.lang.NullPointerExceptionjava.lang.NullPointerException [fop] at sun.awt.image.URLImageSource.init(URLImageSource.java:43) [..] Could that be fixed? I think I had similar problems with 0.93, but thought GIFs were fixed already in 0.94. In resulting PDF I could see normally all JPEG/PNG/TIFF images, but not GIFs L. I just tried it (both with the examples-target and with the fop command) and it worked for me on both ways. How are you running it? Which Java version are you using? Could you please run the image.fo example with the fop command. -- Christian
DO NOT REPLY [Bug 42703] - fo:retrieve-marker misses fo:inline space character on first retrieve in page.
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=42703. 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=42703 --- Additional Comments From [EMAIL PROTECTED] 2007-08-20 02:51 --- Created an attachment (id=20680) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=20680action=view) Graphic to be used with 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.
RE: Is it ok to have NullPointerException while running build's examples target for fop 0.94?
Could that be fixed? I think I had similar problems with 0.93, but thought GIFs were fixed already in 0.94. In resulting PDF I could see normally all JPEG/PNG/TIFF images, but not GIFs L. I just tried it (both with the examples-target and with the fop command) and it worked for me on both ways. How are you running it? Which Java version are you using? I'm running Ant build from inside my Eclipse 3.1 framework with JDK 1.3.1. Could you please run the image.fo example with the fop command. Why that should be different in comparison with Ant build run, especially having all other graphics correct in resulting images.pdf? Andrejus