updated license files and improved docbook pdf generation: still however an empty pdf document

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@809136 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hans Bakker
2009-08-29 14:45:00 +00:00
parent 62dfb43ed0
commit 841efcfafd
4 changed files with 63 additions and 10 deletions
+58 -1
View File
@@ -90,7 +90,7 @@ ofbiz/trunk/framework/webapp/lib/json-lib-2.2.3-jdk15.jar
ofbiz/trunk/framework/webapp/lib/ezmorph-0.9.1.jar
ofbiz/trunk/framework/webapp/lib/rome-0.9.jar
ofbiz/trunk/framework/webapp/lib/serializer-2.7.0.jar
ofbiz/trunk/framework/webapp/lib/xalan-2.7.0.jar
ofbiz/trunk/framework/webapp/lib/xalan-2.7.1.jar
ofbiz/trunk/framework/webapp/lib/xmlrpc-client-3.0.jar
ofbiz/trunk/framework/webapp/lib/xmlrpc-common-3.0.jar
ofbiz/trunk/framework/webapp/lib/xmlrpc-server-3.0.jar
@@ -2573,3 +2573,60 @@ Apache Ofbiz includes jsr166 backport support library from
http://backport-jsr166.sourceforge.net/
framework/base/lib/backport-util-concurrent-Java50-3.1.jar
This file is licensed into the public domain.
====================================================================================
Apache Ofbiz includes docbook templates in the /applications/content/template/docbook
directory with the following licence:
Copyright
---------
Copyright (C) 1999-2007 Norman Walsh
Copyright (C) 2003 Jiří Kosek
Copyright (C) 2004-2007 Steve Ball
Copyright (C) 2005-2008 The DocBook Project
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the ``Software''), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
Except as contained in this notice, the names of individuals
credited with contribution to this software shall not be used in
advertising or otherwise to promote the sale, use or other
dealings in this Software without prior written authorization
from the individuals in question.
Any stylesheet derived from this Software that is publically
distributed will be identified with a different name and the
version strings in any derived Software will be changed so that
no possibility of confusion between the derived package and this
Software will exist.
Warranty
--------
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL NORMAN WALSH OR ANY OTHER
CONTRIBUTOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Contacting the Author
---------------------
The DocBook XSL stylesheets are maintained by Norman Walsh,
<ndw@nwalsh.com>, and members of the DocBook Project,
<docbook-developers@sf.net>
===============================================================
The docbook schemas in te file docbook.xsd, docbook.dtd xlink.xsl
and xml.xsl are distributed under the GNU Free Documentation License
GNU Free Documentation License
It was allowed by the author to use the docbook files within the
Apache OFBiz system in an email to H.Bakker from N.Walsh dd
Tue, 25 Aug 2009 07:27:51 -0400 (18:27 ICT)
@@ -20,12 +20,8 @@
<section xmlns="http://docbook.org/ns/docbook"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://docbook.org/ns/docbook ../../../content/dtd/docbook.xsd">
<title>
The Accounting Manager.
</title>
<para>
The accounting manager
The help screen text
</para>
</section>
@@ -1966,7 +1966,7 @@ under the License.
<view-map name="EditDocument" type="screen" page="component://content/widget/content/ContentScreens.xml#EditDocument"/>
<view-map name="ListDocument" type="screen" page="component://content/widget/content/ContentScreens.xml#ListDocument"/>
<view-map name="showContent" type="screen" page="component://content/widget/content/ContentScreens.xml#ShowContent"/>
<view-map name="showContentPdf" type="screen" page="component://content/widget/content/ContentScreens.xml#ShowContent" content-type="application/pdf" encoding="none"/>
<view-map name="showContentPdf" type="screen" page="component://content/widget/content/ContentScreens.xml#ShowContent" content-type="application/pdf"/>
<!-- end of view mappings -->
</site-conf>
@@ -1118,7 +1118,7 @@ public abstract class ModelScreenWidget extends ModelWidget implements Serializa
if (mimeTypeId.equals("application/pdf")) {
TransformerFactory tfactory = TransformerFactory.newInstance();
try{
/*
//
// this part is not working. If somebody can help to make it work?
// currently using only real temp files for debugging purposes.
@@ -1154,7 +1154,7 @@ public abstract class ModelScreenWidget extends ModelWidget implements Serializa
Debug.log("================start fo processor=============================");
ByteArrayOutputStream baos = new ByteArrayOutputStream();
StreamSource src = new StreamSource("/tmp/file1.fo");
FopFactory fopFactory = ApacheFopWorker.getFactoryInstance();
FopFactory fopFactory = FopFactory.newInstance();
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, baos);
TransformerFactory factory = TransformerFactory.newInstance();
@@ -1169,7 +1169,7 @@ public abstract class ModelScreenWidget extends ModelWidget implements Serializa
fend.write(baos.toString());
fend.close();
*/
} catch(Exception e) {
Debug.logError("================================Exception: " + e, module);
}