well,

the warning message is now fixed in rev. 768246 but the bar code is still not rendered. I suspect that this is related to the fop upgrade from 0.94 to 0.95 (rev. 766125). One question I have is: is barcode4j-fop-ext-0.20.5-complete.jar (contained in barcode4j-2.0 newer than the one we are using (barcode4j- fop-ext-0.93.jar)? It doesn't seem from the release number, but I suspect that 0.93 is referred to the FOP version it is designed for...

Jacopo

On Apr 24, 2009, at 11:56 AM, Jacopo Cappellato wrote:

Ok,

I think I can fix this... give me a few minutes

Jacopo

On Apr 24, 2009, at 11:39 AM, Erwan de FERRIERES wrote:

Hi,
we are at the same point for the moment...

The point that is interessant is this line when you try to print the barcode : ModelScreenWidget.java:972:WARN ] In platform-dependent could not find template for xsl-fo, using the one for html.

So it seems that there is no subWidget defined for printing the xsl- fo file, or it has a null value.

          ModelScreenWidget subWidget = null;
subWidget = (ModelScreenWidget )subWidgets.get(screenStringRenderer.getRendererName());
          if (subWidget == null) {
              // This is here for backward compatibility
Debug.logWarning("In platform-dependent could not find template for " + screenStringRenderer.getRendererName() + ", using the one for html.", module);
              subWidget = (ModelScreenWidget)subWidgets.get("html");
          }
          if (subWidget != null) {
subWidget.renderWidgetString(writer, context, screenStringRenderer);
          }

So, maybe there is something to dig in this direction or maybe I'm totally on the wrong idea !

Cheers,

Santosh Malviya a écrit :
Hello Erwan,
Thanks for your reply, following your suggestion I downloaded the jar barcode4j-fop-ext-complete.jar from link http://sourceforge.net/project/showfiles.php?group_id=96670&package_id=103341&release_id=599201 , and put the jar in framework/webapp/lib and also in classpath, but still I am not able to see barcode in my pdf. Please suggest if I am missing something.
Thanks and Regards
Santosh Malviya
Erwan de FERRIERES wrote:
the problem is not from the website, I've been trying to generate barcodes with an older version and it is working.

For the fop barcode library, it is said that with fop 0.95 it's better to use the 2.0 to make it work, but this changes nothing. you have to put the new library (barcode4j-fop-ext-complete.jar) in framework/webapp/lib/ and update your .classpath file.



Santosh Malviya a écrit :
Hello all,
We are facing a problem of generating bar code inside pdf, same problem with OOTB but it was being generated until few days back, cause may be the following site in the code <barcode:barcode xmlns:barcode="http://barcode4j.krysalis.org/ ns" />. When we try to open this site there is an error message of "The page can't be found". Because of this site used in the code we get following error/warning on console : 2009-03-17 15:00:39,847 (http-0.0.0.0-8443-1) [ElementMappingRegistry.java: 147:WARN ] Unknown formatting object http://barcode4j.krysalis.org/ns ^barcode 2009-03-17 15:00:39,849 (http-0.0.0.0-8443-1) [ElementMappingRegistry.java:147:WARN ] Unknown formatting object http://barcode4j.krysalis.org/ns^ean-8 2009-03-17 15:00:39,850 (http-0.0.0.0-8443-1) [ElementMappingRegistry.java:147:WARN ] Unknown formatting object http://barcode4j.krysalis.org/ns^code39 2009-03-17 15:00:39,851 (http-0.0.0.0-8443-1) [ElementMappingRegistry.java:147:WARN ] Unknown formatting object http://barcode4j.krysalis.org/ns^height 2009-03-17 15:00:39,851 (http-0.0.0.0-8443-1) [ElementMappingRegistry.java:147:WARN ] Unknown formatting object http://barcode4j.krysalis.org/ns^module-width 2009-03-17 15:00:39,855 (http-0.0.0.0-8443-1) [ PropertyList.java:423:ERROR] Ignoring property: text- align="bottom" (null:164:84: No conversion defined bottom; property:'text-align')

2009-03-17 15:00:39,898 (http-0.0.0.0-8443-1) [InstreamForeignObject.java:101:ERROR] Intrinsic dimensions of instream-foreign-object could not be determined 2009-03-17 15:00:39,900 (http-0.0.0.0-8443-1) [InstreamForeignObject.java:101:ERROR] Intrinsic dimensions of instream-foreign-object could not be determined 2009-03-17 15:00:39,900 (http-0.0.0.0-8443-1) [InstreamForeignObject.java:101:ERROR] Intrinsic dimensions of instream-foreign-object could not be determined 2009-03-17 15:00:39,907 (http-0.0.0.0-8443-1) [ LineLayoutManager.java:384:WARN ] Line 1 of a paragraph overflows the available area. (fo:block, location: 188/24)

Please suggest if any solution for this problem.
Thanks in advance.

Thanks and Regards
Santosh Malviya




--
- Erwan -


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to