debian/0000755000000000000000000000000011676355213007177 5ustar debian/watch0000644000000000000000000000007511223133031010206 0ustar version=3 http://sf.net/itext/itext-src-(1[0-9\.]*)\.tar\.gz debian/rules0000755000000000000000000000210011620031075010232 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/ant.mk PACKAGE := $(DEB_SOURCE_PACKAGE) VERSION := $(DEB_UPSTREAM_VERSION) JAVA_HOME := /usr/lib/jvm/default-java DEB_JARS := servlet-2.3.jar ant-optional $(ANT_HOME)/lib/ant-launcher.jar DEB_ANT_BUILD_TARGET := jar DEB_ANT_CLEAN_TARGET := # Additional command-line arguments for Ant ANT_ARGS := -Dcompile.optimize=false -propertyfile debian/ant.properties #ANT_ARGS := -Dbuild.sysclasspath=first -Dj2ee.jar=/usr/share/java/servlet-api.jar binary-post-install/$(PACKAGE):: mh_installpoms -p$(PACKAGE) mh_installjar -p$(PACKAGE) -l --usj-name=itext1 debian/pom.xml build/bin/iText.jar clean:: dh_testdir dh_testroot -rm -rf build -rm -rf debian/tmp mh_clean get-orig-source: get-orig-pom -uscan --download-version $(VERSION) --force-download --rename get-orig-pom: -wget -O debian/pom.xml http://repository.sonatype.org/service/local/repositories/central/content/com/lowagie/itext/$(VERSION)/itext-$(VERSION).pom debian/control0000644000000000000000000000225411674403341010577 0ustar Source: libitext1-java Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Michael Koch , Ludovic Claude Build-Depends: ant, cdbs, debhelper (>= 7), default-jdk Build-Depends-Indep: libservlet2.5-java, maven-repo-helper Standards-Version: 3.9.2 Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libitext1-java Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libitext1-java/ Homepage: http://www.lowagie.com/iText/ Package: libitext1-java Architecture: all Depends: ${misc:Depends} Description: Java Library to generate PDF on the Fly iText is a library that allows you to generate PDF files on the fly. The iText classes are very useful for people who need to generate read-only, platform independent documents containing text, lists, tables and images. The library is especially useful in combination with Java(TM) technology-based Servlets: The look and feel of HTML is browser dependent; with iText and PDF you can control exactly how your servlet's output will look. iText requires JDK 1.2. It's available for free under a multiple license: MPL and LGPL. debian/libitext1-java.poms0000644000000000000000000000003311223133031012673 0ustar debian/pom.xml --no-parent debian/maven.rules0000644000000000000000000000003311223133031011331 0ustar com.lowagie itext jar 1.4 debian/copyright0000644000000000000000000000136611223133031011114 0ustar Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=437 Upstream-Name: iText Upstream-Maintainer: Bruno Lowagie and Paulo Soares Upstream-Source: http://www.lowagie.com/iText/download.html Files: * Copyright: Copyright 1999-2009, Bruno Lowagie Copyright: Copyright 2001-2009, Paulo Soares License: LGPL-2 On Debian GNU/Linux system you can find the complete text of the GPL 2 license in '/usr/share/common-licenses/GPL-2'. Files: debian/* Copyright: Copyright 2009, Ludovic Claude Copyright: Copyright 2003-2005, Christian Bayle License: GPL-2 On Debian GNU/Linux system you can find the complete text of the GPL 2 license in '/usr/share/common-licenses/GPL-2'. debian/compat0000644000000000000000000000000211272320557010370 0ustar 7 debian/source/0000755000000000000000000000000011676355213010477 5ustar debian/source/format0000644000000000000000000000001411620031075011667 0ustar 3.0 (quilt) debian/ant.properties0000644000000000000000000000023211674403341012066 0ustar itext.home=.. itext.src=.. # Ensure that source and target are 1.5 # For backwards compat on Java 7 ant.build.javac.source=1.5 ant.build.javac.target=1.5 debian/pom.xml0000644000000000000000000000441011223133031010467 0ustar 4.0.0 com.lowagie itext jar iText, a Free Java-PDF library 1.4 iText, a free Java-PDF library http://www.lowagie.com/iText/ iText Questions http://lists.sourceforge.net/lists/listinfo/itext-questions itext-questions@lists.sourceforge.net http://news.gmane.org/gmane.comp.java.lib.itext.general http://www.junlu.com/2.html http://sourceforge.net/mailarchive/forum.php?forum_id=3273 http://www.mail-archive.com/itext-questions%40lists.sourceforge.net/ blowagie Bruno Lowagie bruno@lowagie.com http://www.lowagie.com psoares33 Paulo Soares hallm Mark Hall Mozilla Public License http://www.mozilla.org/MPL/MPL-1.1.html iText was originally published under the LGPLicense. LGPL can be used as an alternative license for the MPL. scm:cvs:pserver:anonymous@cvs.sourceforge.net:/cvsroot/itext:src http://cvs.sourceforge.net/viewcvs.py/itext org.apache.maven.plugins maven-jar-plugin com.lowagie.tools.Toolbox debian/changelog0000644000000000000000000000324311676354505011056 0ustar libitext1-java (1.4-5) unstable; urgency=low [ Miguel Landaeta ] * Team upload. * Bump Standards-Version to 3.9.2. No changes were required. [ James Page ] * Fix FTBFS with OpenJDK7 (LP: #888965) (Closes: #652046): - d/ant.properties: Specify source/target as 1.5 for javac and javadoc ant tasks to ensure backwards compatibility and workaround Java 7 encoding errors. -- Miguel Landaeta Wed, 21 Dec 2011 07:25:44 -0430 libitext1-java (1.4-4) unstable; urgency=low * Team upload. [ Miguel Landaeta ] * Clarify licensing of some files that were suspected to be non-free. (Closes: #600338). * Bump Standards-Version to 3.9.1. No changes were required. * Remove redundant Section header for libitext1-java binary package. * Add missing invocation of mh_clean in clean target. [ Torsten Werner ] * Switch to source format 3.0. -- Torsten Werner Mon, 08 Aug 2011 20:59:23 +0200 libitext1-java (1.4-3) unstable; urgency=low * Removed Gerardo Curiel from Uploaders (Closes: #553102). * Build-Depends on libservlet2.5-java instead of libservlet2.3-java. * Build-Depends on debhelper (>= 7). * Added debian/README.source. * Updated Standards-Version to 3.8.3. -- Michael Koch Wed, 04 Nov 2009 23:46:15 +0100 libitext1-java (1.4-2) unstable; urgency=low * Upload to unstable. -- Torsten Werner Sun, 16 Aug 2009 13:39:13 +0200 libitext1-java (1.4-1) experimental; urgency=low * Initial release -- iText version 1 is still needed for doxia. (Closes: #524870) -- Ludovic Claude Sat, 18 Apr 2009 23:49:59 +0100 debian/patches/0000755000000000000000000000000011676355213010626 5ustar debian/patches/clarify_licensing.patch0000644000000000000000000006253111457724147015345 0ustar Description: Clarify licensing of some file with incorrect disclaimers Posterior releases of iText clarified the licensing of the following files: com/lowagie/text/pdf/codec/postscript/PACommand.java com/lowagie/text/pdf/codec/postscript/PAContext.java com/lowagie/text/pdf/codec/postscript/PAEngine.java com/lowagie/text/pdf/codec/postscript/PAPencil.java com/lowagie/text/pdf/codec/postscript/PAToken.java com/lowagie/text/pdf/codec/postscript/PainterException.java com/lowagie/tools/arguments/TableSorter.java Those files are licensed also under Mozilla Public License 1.1 and LGPL 2 or later. Regarding com/lowagie/tools/arguments/TableMap.java, is a file freely copied between several Java projects and a copy of this file can be found in the source code of Groovy, licensed under Apache 2.0. Author: Miguel Landaeta Forwarded: not-needed Bug-Debian: http://bugs.debian.org/600338 Last-Update: 2010-10-20 diff --git a/com/lowagie/text/pdf/codec/postscript/PACommand.java b/com/lowagie/text/pdf/codec/postscript/PACommand.java index 91b2e18..81f31c2 100644 --- a/com/lowagie/text/pdf/codec/postscript/PACommand.java +++ b/com/lowagie/text/pdf/codec/postscript/PACommand.java @@ -1,4 +1,50 @@ /* + * The contents of this file are subject to the Mozilla Public License Version 1.1 + * (the "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the License. + * + * The Original Code is 'iText, a free JAVA-PDF library'. + * + * The Initial Developer of the Original Code is Bruno Lowagie. Portions created by + * the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie. + * All Rights Reserved. + * Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer + * are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved. + * + * Contributor(s): all the names of the contributors are added in the source code + * where applicable. + * + * Alternatively, the contents of this file may be used under the terms of the + * LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the + * provisions of LGPL are applicable instead of those above. If you wish to + * allow use of your version of this file only under the terms of the LGPL + * License and not to allow others to use your version of this file under + * the MPL, indicate your decision by deleting the provisions above and + * replace them with the notice and other provisions required by the LGPL. + * If you do not delete the provisions above, a recipient may use your version + * of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE. + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the MPL as stated above or under the terms of the GNU + * Library General Public License as published by the Free Software Foundation; + * either version 2 of the License, or any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more + * details. + * + * If you didn't download this code from the following link, you should check if + * you aren't using an obsolete version: + * http://www.lowagie.com/iText/ + * + * This class is based on a sample class by SUN. + * The original copyright notice is as follows: + * * Copyright 1998 by Sun Microsystems, Inc., * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. @@ -8,6 +54,10 @@ * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement * you entered into with Sun. + * + * The license agreement can be found at this URL: + * http://java.sun.com/products/java-media/2D/samples/samples-license.html + * See also the file sun.txt in directory com.lowagie.text.pdf */ package com.lowagie.text.pdf.codec.postscript; diff --git a/com/lowagie/text/pdf/codec/postscript/PAContext.java b/com/lowagie/text/pdf/codec/postscript/PAContext.java index 191b39f..105f16b 100644 --- a/com/lowagie/text/pdf/codec/postscript/PAContext.java +++ b/com/lowagie/text/pdf/codec/postscript/PAContext.java @@ -1,4 +1,50 @@ /* + * The contents of this file are subject to the Mozilla Public License Version 1.1 + * (the "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the License. + * + * The Original Code is 'iText, a free JAVA-PDF library'. + * + * The Initial Developer of the Original Code is Bruno Lowagie. Portions created by + * the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie. + * All Rights Reserved. + * Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer + * are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved. + * + * Contributor(s): all the names of the contributors are added in the source code + * where applicable. + * + * Alternatively, the contents of this file may be used under the terms of the + * LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the + * provisions of LGPL are applicable instead of those above. If you wish to + * allow use of your version of this file only under the terms of the LGPL + * License and not to allow others to use your version of this file under + * the MPL, indicate your decision by deleting the provisions above and + * replace them with the notice and other provisions required by the LGPL. + * If you do not delete the provisions above, a recipient may use your version + * of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE. + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the MPL as stated above or under the terms of the GNU + * Library General Public License as published by the Free Software Foundation; + * either version 2 of the License, or any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more + * details. + * + * If you didn't download this code from the following link, you should check if + * you aren't using an obsolete version: + * http://www.lowagie.com/iText/ + * + * This class is based on a sample class by SUN. + * The original copyright notice is as follows: + * * Copyright 1998 by Sun Microsystems, Inc., * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. @@ -8,6 +54,10 @@ * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement * you entered into with Sun. + * + * The license agreement can be found at this URL: + * http://java.sun.com/products/java-media/2D/samples/samples-license.html + * See also the file sun.txt in directory com.lowagie.text.pdf */ package com.lowagie.text.pdf.codec.postscript; diff --git a/com/lowagie/text/pdf/codec/postscript/PAEngine.java b/com/lowagie/text/pdf/codec/postscript/PAEngine.java index 1cbec3c..91d8b45 100644 --- a/com/lowagie/text/pdf/codec/postscript/PAEngine.java +++ b/com/lowagie/text/pdf/codec/postscript/PAEngine.java @@ -1,4 +1,50 @@ /* + * The contents of this file are subject to the Mozilla Public License Version 1.1 + * (the "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the License. + * + * The Original Code is 'iText, a free JAVA-PDF library'. + * + * The Initial Developer of the Original Code is Bruno Lowagie. Portions created by + * the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie. + * All Rights Reserved. + * Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer + * are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved. + * + * Contributor(s): all the names of the contributors are added in the source code + * where applicable. + * + * Alternatively, the contents of this file may be used under the terms of the + * LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the + * provisions of LGPL are applicable instead of those above. If you wish to + * allow use of your version of this file only under the terms of the LGPL + * License and not to allow others to use your version of this file under + * the MPL, indicate your decision by deleting the provisions above and + * replace them with the notice and other provisions required by the LGPL. + * If you do not delete the provisions above, a recipient may use your version + * of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE. + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the MPL as stated above or under the terms of the GNU + * Library General Public License as published by the Free Software Foundation; + * either version 2 of the License, or any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more + * details. + * + * If you didn't download this code from the following link, you should check if + * you aren't using an obsolete version: + * http://www.lowagie.com/iText/ + * + * This class is based on a sample class by SUN. + * The original copyright notice is as follows: + * * Copyright 1998 by Sun Microsystems, Inc., * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. @@ -8,6 +54,10 @@ * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement * you entered into with Sun. + * + * The license agreement can be found at this URL: + * http://java.sun.com/products/java-media/2D/samples/samples-license.html + * See also the file sun.txt in directory com.lowagie.text.pdf */ package com.lowagie.text.pdf.codec.postscript; diff --git a/com/lowagie/text/pdf/codec/postscript/PAPencil.java b/com/lowagie/text/pdf/codec/postscript/PAPencil.java index 46c1b04..cf75668 100644 --- a/com/lowagie/text/pdf/codec/postscript/PAPencil.java +++ b/com/lowagie/text/pdf/codec/postscript/PAPencil.java @@ -1,4 +1,50 @@ /* + * The contents of this file are subject to the Mozilla Public License Version 1.1 + * (the "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the License. + * + * The Original Code is 'iText, a free JAVA-PDF library'. + * + * The Initial Developer of the Original Code is Bruno Lowagie. Portions created by + * the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie. + * All Rights Reserved. + * Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer + * are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved. + * + * Contributor(s): all the names of the contributors are added in the source code + * where applicable. + * + * Alternatively, the contents of this file may be used under the terms of the + * LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the + * provisions of LGPL are applicable instead of those above. If you wish to + * allow use of your version of this file only under the terms of the LGPL + * License and not to allow others to use your version of this file under + * the MPL, indicate your decision by deleting the provisions above and + * replace them with the notice and other provisions required by the LGPL. + * If you do not delete the provisions above, a recipient may use your version + * of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE. + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the MPL as stated above or under the terms of the GNU + * Library General Public License as published by the Free Software Foundation; + * either version 2 of the License, or any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more + * details. + * + * If you didn't download this code from the following link, you should check if + * you aren't using an obsolete version: + * http://www.lowagie.com/iText/ + * + * This class is based on a sample class by SUN. + * The original copyright notice is as follows: + * * Copyright 1998 by Sun Microsystems, Inc., * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. @@ -8,6 +54,10 @@ * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement * you entered into with Sun. + * + * The license agreement can be found at this URL: + * http://java.sun.com/products/java-media/2D/samples/samples-license.html + * See also the file sun.txt in directory com.lowagie.text.pdf */ package com.lowagie.text.pdf.codec.postscript; diff --git a/com/lowagie/text/pdf/codec/postscript/PAToken.java b/com/lowagie/text/pdf/codec/postscript/PAToken.java index 793da41..f9878c6 100644 --- a/com/lowagie/text/pdf/codec/postscript/PAToken.java +++ b/com/lowagie/text/pdf/codec/postscript/PAToken.java @@ -1,4 +1,50 @@ /* + * The contents of this file are subject to the Mozilla Public License Version 1.1 + * (the "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the License. + * + * The Original Code is 'iText, a free JAVA-PDF library'. + * + * The Initial Developer of the Original Code is Bruno Lowagie. Portions created by + * the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie. + * All Rights Reserved. + * Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer + * are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved. + * + * Contributor(s): all the names of the contributors are added in the source code + * where applicable. + * + * Alternatively, the contents of this file may be used under the terms of the + * LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the + * provisions of LGPL are applicable instead of those above. If you wish to + * allow use of your version of this file only under the terms of the LGPL + * License and not to allow others to use your version of this file under + * the MPL, indicate your decision by deleting the provisions above and + * replace them with the notice and other provisions required by the LGPL. + * If you do not delete the provisions above, a recipient may use your version + * of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE. + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the MPL as stated above or under the terms of the GNU + * Library General Public License as published by the Free Software Foundation; + * either version 2 of the License, or any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more + * details. + * + * If you didn't download this code from the following link, you should check if + * you aren't using an obsolete version: + * http://www.lowagie.com/iText/ + * + * This class is based on a sample class by SUN. + * The original copyright notice is as follows: + * * Copyright 1998 by Sun Microsystems, Inc., * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. @@ -8,6 +54,10 @@ * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement * you entered into with Sun. + * + * The license agreement can be found at this URL: + * http://java.sun.com/products/java-media/2D/samples/samples-license.html + * See also the file sun.txt in directory com.lowagie.text.pdf */ package com.lowagie.text.pdf.codec.postscript; diff --git a/com/lowagie/text/pdf/codec/postscript/PainterException.java b/com/lowagie/text/pdf/codec/postscript/PainterException.java index 236eece..8f4d019 100644 --- a/com/lowagie/text/pdf/codec/postscript/PainterException.java +++ b/com/lowagie/text/pdf/codec/postscript/PainterException.java @@ -1,4 +1,50 @@ /* + * The contents of this file are subject to the Mozilla Public License Version 1.1 + * (the "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the License. + * + * The Original Code is 'iText, a free JAVA-PDF library'. + * + * The Initial Developer of the Original Code is Bruno Lowagie. Portions created by + * the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie. + * All Rights Reserved. + * Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer + * are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved. + * + * Contributor(s): all the names of the contributors are added in the source code + * where applicable. + * + * Alternatively, the contents of this file may be used under the terms of the + * LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the + * provisions of LGPL are applicable instead of those above. If you wish to + * allow use of your version of this file only under the terms of the LGPL + * License and not to allow others to use your version of this file under + * the MPL, indicate your decision by deleting the provisions above and + * replace them with the notice and other provisions required by the LGPL. + * If you do not delete the provisions above, a recipient may use your version + * of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE. + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the MPL as stated above or under the terms of the GNU + * Library General Public License as published by the Free Software Foundation; + * either version 2 of the License, or any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more + * details. + * + * If you didn't download this code from the following link, you should check if + * you aren't using an obsolete version: + * http://www.lowagie.com/iText/ + * + * This class is taken from a sample class by SUN. + * The original copyright notice is as follows: + * * Copyright 1998 by Sun Microsystems, Inc., * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. * All rights reserved. @@ -8,6 +54,10 @@ * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement * you entered into with Sun. + * + * The license agreement can be found at this URL: + * http://java.sun.com/products/java-media/2D/samples/samples-license.html + * See also the file sun.txt in directory com.lowagie.text.pdf */ package com.lowagie.text.pdf.codec.postscript; diff --git a/com/lowagie/tools/arguments/TableMap.java b/com/lowagie/tools/arguments/TableMap.java index 58308ee..d8e546f 100644 --- a/com/lowagie/tools/arguments/TableMap.java +++ b/com/lowagie/tools/arguments/TableMap.java @@ -1,3 +1,18 @@ +/* + * Copyright 2003-2007 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.lowagie.tools.arguments; /* * @(#)TableMap.java 1.4 97/12/17 diff --git a/com/lowagie/tools/arguments/TableSorter.java b/com/lowagie/tools/arguments/TableSorter.java index a921516..d0e96f0 100644 --- a/com/lowagie/tools/arguments/TableSorter.java +++ b/com/lowagie/tools/arguments/TableSorter.java @@ -1,4 +1,54 @@ -/** Code contributed by Anonymous; looks like code that was reused from another application. */ +/* + * $Id: TableSorter.java,v 1.5 2006/09/15 23:37:37 xlv Exp $ + * $Name: $ + * + * Copyright 2005 by Carsten Hammer. + * Inspired by http://java.sun.com/docs/books/tutorial/uiswing/components/examples/TableSorter.java + * See also http://java.sun.com/docs/books/tutorial/uiswing/components/table.html + * + * The contents of this file are subject to the Mozilla Public License Version 1.1 + * (the "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the License. + * + * The Original Code is 'iText, a free JAVA-PDF library'. + * + * The Initial Developer of the Original Code is Bruno Lowagie. Portions created by + * the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie. + * All Rights Reserved. + * Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer + * are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved. + * + * Contributor(s): all the names of the contributors are added in the source code + * where applicable. + * + * Alternatively, the contents of this file may be used under the terms of the + * LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the + * provisions of LGPL are applicable instead of those above. If you wish to + * allow use of your version of this file only under the terms of the LGPL + * License and not to allow others to use your version of this file under + * the MPL, indicate your decision by deleting the provisions above and + * replace them with the notice and other provisions required by the LGPL. + * If you do not delete the provisions above, a recipient may use your version + * of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE. + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the MPL as stated above or under the terms of the GNU + * Library General Public License as published by the Free Software Foundation; + * either version 2 of the License, or any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more + * details. + * + * If you didn't download this code from the following link, you should check if + * you aren't using an obsolete version: + * http://www.lowagie.com/iText/ + */ package com.lowagie.tools.arguments; import java.awt.event.InputEvent; debian/patches/build.patch0000644000000000000000000000232611226457115012744 0ustar --- a/ant/compile.xml +++ b/ant/compile.xml @@ -28,7 +28,9 @@ - + + + @@ -37,7 +39,9 @@ - + + + @@ -77,4 +81,4 @@ - \ No newline at end of file + debian/patches/series0000644000000000000000000000010111457724147012036 0ustar build.patch jpeg_encoder_classpath.patch clarify_licensing.patch debian/patches/jpeg_encoder_classpath.patch0000644000000000000000000000500211226457115016325 0ustar --- a/com/lowagie/text/pdf/PdfGraphics2D.java +++ b/com/lowagie/text/pdf/PdfGraphics2D.java @@ -99,6 +99,12 @@ import java.util.Iterator; import java.awt.font.TextAttribute; +//For Gnu-Classpath compatibility + +import javax.imageio.*; +import javax.imageio.metadata.*; +import javax.imageio.plugins.jpeg.JPEGImageWriteParam; + public class PdfGraphics2D extends Graphics2D { private static final int FILL = 1; @@ -173,12 +179,12 @@ super(); dg2.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON); setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON); - try { + /*try { Class.forName("com.sun.image.codec.jpeg.JPEGCodec"); } catch (Throwable t) { convertImagesToJPEG = false; - } + }*/ this.convertImagesToJPEG = convertImagesToJPEG; this.jpegQuality = quality; this.onlyShapes = onlyShapes; @@ -1266,10 +1272,18 @@ g3.dispose(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); - com.sun.image.codec.jpeg.JPEGImageEncoder encoder = com.sun.image.codec.jpeg.JPEGCodec.createJPEGEncoder(baos); - com.sun.image.codec.jpeg.JPEGEncodeParam param = com.sun.image.codec.jpeg.JPEGCodec.getDefaultJPEGEncodeParam(scaled); - param.setQuality(jpegQuality, true); - encoder.encode(scaled, param); + //com.sun.image.codec.jpeg.JPEGImageEncoder encoder = com.sun.image.codec.jpeg.JPEGCodec.createJPEGEncoder(baos); + //com.sun.image.codec.jpeg.JPEGEncodeParam param = com.sun.image.codec.jpeg.JPEGCodec.getDefaultJPEGEncodeParam(scaled); + ImageWriter encoder = (ImageWriter)ImageIO.getImageWritersByFormatName("JPEG").next(); + JPEGImageWriteParam param = new JPEGImageWriteParam(null); + + param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT); + param.setCompressionQuality(jpegQuality); + encoder.setOutput(baos); + encoder.write((IIOMetadata) null, new IIOImage(scaled,null,null), param); + + //param.setQuality(jpegQuality, true); + //encoder.encode(scaled, param); scaled.flush(); scaled = null; image = com.lowagie.text.Image.getInstance(baos.toByteArray());