In conjunction with fixing the DHL label issue, I ran into formating
limitations with the current version that ofBiz is using of FOP.  So I
jumped in and got it working.

The new FOP is NOT backwards compatible and they dropped several of
the classes that were being used.  They went to a new factory
framework.

I managed to get the
ofbiz\framework\widget\src\org\ofbiz\widget\screenScreenFopPdfViewHandler
working.

I started updating
ofbiz\framework\webapp\src\org\ofbiz\webapp\view\foprenderer.java
(pretty much the same    code...) but I didn't see where it was being
used.  I placed some breakpoints in the code but when viewing PDFs it
never enters the code.  Some help here?

The newer libraries are more sensitive to the FO schema and some of
the existing templates broke (i.e. viewInvoice.fo.ftl) which I
corrected.  The problem there was that there were some spacer
<table-row> elements with no <fo:table-cell> and <fo:table-cell> with
no <fo:block> elements which are now required.

The newer libraries also require upgrades of a few of the libraries
that they use including:

  avalon-framework-4.2.0.jar
  batik-all-1.6.jar
  commons-io-1.1.jar
  commons-logging-1.0.4.jar
  serializer-2.7.0.jar
  xalan-2.7.0.jar
  xercesImpl-2.7.1.jar
  xml-apis-1.3.02.jar
  xmlgraphics-commons-1.0.jar

I'm looking for feedback and help with foprenderer.java before I send
in my changes.

John

Reply via email to