This commit is contained in:
parent
7b49cb8426
commit
1be5243590
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package apache-pdfbox
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -12,39 +12,31 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
# Only fontbox and jempbox are built as pdfbox itself depends on Adobe's pcif.
|
||||
Name: apache-pdfbox
|
||||
Version: 1.8.16
|
||||
Version: 2.0.19
|
||||
Release: 0
|
||||
Summary: Java PDF Library
|
||||
License: Apache-2.0
|
||||
Group: Development/Libraries/Java
|
||||
Url: https://pdfbox.apache.org/
|
||||
Source0: http://www-us.apache.org/dist/pdfbox/%{version}/pdfbox-%{version}-src.zip
|
||||
Source1: http://central.maven.org/maven2/org/apache/pdfbox/pdfbox/%{version}/pdfbox-%{version}.pom
|
||||
Source2: http://central.maven.org/maven2/org/apache/pdfbox/fontbox/%{version}/fontbox-%{version}.pom
|
||||
Source3: http://central.maven.org/maven2/org/apache/pdfbox/jempbox/%{version}/jempbox-%{version}.pom
|
||||
Patch0: pdfbox-1.8.12-bouncycastle.patch
|
||||
Patch1: disable-downloads.patch
|
||||
Patch2: fix-javadoc-dep.patch
|
||||
Patch3: pdfbox-1.8.12-sourcetarget.patch
|
||||
Patch4: fix-version.patch
|
||||
URL: https://pdfbox.apache.org/
|
||||
Source0: http://archive.apache.org/dist/pdfbox/%{version}/pdfbox-%{version}-src.zip
|
||||
Source1: pdfbox-%{version}-build.tar.xz
|
||||
BuildRequires: ant
|
||||
BuildRequires: apache-commons-logging
|
||||
BuildRequires: bouncycastle
|
||||
BuildRequires: bouncycastle-mail
|
||||
BuildRequires: bouncycastle-pkix
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: icu4j
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: javapackages-tools
|
||||
BuildRequires: junit
|
||||
BuildRequires: unzip
|
||||
Requires: apache-commons-logging
|
||||
Requires: icu4j
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@ -62,52 +54,38 @@ Requires: %{name} = %{version}-%{release}
|
||||
JavaDoc documentation for %{name}
|
||||
|
||||
%prep
|
||||
%setup -q -n pdfbox-%{version}
|
||||
%autopatch -p1
|
||||
%setup -q -n pdfbox-%{version} -a1
|
||||
%pom_change_dep :junit :::test fontbox
|
||||
|
||||
%build
|
||||
# Build
|
||||
ant -buildfile pdfbox/build.xml \
|
||||
-Dbcprov.jar=$(build-classpath bcprov) -Djunit.jar=$(build-classpath junit4) \
|
||||
-Dicu4j.jar=$(build-classpath icu4j) -Dlogging.jar=$(build-classpath commons-logging) \
|
||||
-Dbuild.sysclasspath=first -Dcompile.source=8 -Dcompile.target=8 \
|
||||
fontbox.package jempbox.package javadoc
|
||||
mkdir -p lib
|
||||
build-jar-repository -s lib bcmail bcpkix bcprov commons-logging
|
||||
ant -Dtest.skip=true package javadoc
|
||||
|
||||
%install
|
||||
# Code
|
||||
install -d %{buildroot}%{_javadir}
|
||||
for jar in fontbox jempbox; do
|
||||
install -p -m644 ${jar}/target/${jar}-%{version}.jar %{buildroot}%{_javadir}/${jar}.jar
|
||||
install -d -m 0755 %{buildroot}%{_javadir}/pdfbox
|
||||
install -d -m 0755 %{buildroot}%{_mavenpomdir}/pdfbox
|
||||
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||
for jar in fontbox pdfbox debugger tools; do
|
||||
install -p -m 0644 ${jar}/target/*-%{version}.jar %{buildroot}%{_javadir}/pdfbox/${jar}.jar
|
||||
%pom_remove_parent ${jar}
|
||||
%pom_xpath_inject pom:project "<groupId>org.apache.pdfbox</groupId><version>%{version}</version>" ${jar}
|
||||
install -p -m 0644 ${jar}/pom.xml %{buildroot}%{_mavenpomdir}/pdfbox/${jar}.pom
|
||||
%add_maven_depmap pdfbox/${jar}.pom pdfbox/${jar}.jar
|
||||
cp -pr ${jar}/target/site/apidocs %{buildroot}%{_javadocdir}/%{name}/${jar}
|
||||
done
|
||||
# Compatibility link
|
||||
ln -s -f %{_javadir}/pdfbox/fontbox.jar %{buildroot}%{_javadir}/
|
||||
|
||||
install -d -m 0755 %{buildroot}/%{_mavenpomdir}/
|
||||
install -m 0644 %{SOURCE2} %{buildroot}/%{_mavenpomdir}/JPP-fontbox.pom
|
||||
install -m 0644 %{SOURCE3} %{buildroot}/%{_mavenpomdir}/JPP-jempbox.pom
|
||||
|
||||
%add_maven_depmap JPP-fontbox.pom fontbox.jar
|
||||
%add_maven_depmap JPP-jempbox.pom jempbox.jar
|
||||
|
||||
# JavaDoc
|
||||
install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
cp -pr pdfbox/target/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
%fdupes %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
||||
%fdupes -s %{buildroot}%{_javadocdir}
|
||||
|
||||
%files javadoc
|
||||
%{_javadocdir}/%{name}-%{version}
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%files
|
||||
%doc RELEASE-NOTES.txt NOTICE.txt README.txt
|
||||
%license LICENSE.txt
|
||||
%files -f .mfiles
|
||||
%doc RELEASE-NOTES.txt README.md
|
||||
%license LICENSE.txt NOTICE.txt
|
||||
%{_javadir}/fontbox.jar
|
||||
%{_javadir}/jempbox.jar
|
||||
%{_mavenpomdir}/JPP-fontbox.pom
|
||||
%{_mavenpomdir}/JPP-jempbox.pom
|
||||
%if %{defined _maven_repository}
|
||||
%{_mavendepmapfragdir}/%{name}
|
||||
%else
|
||||
%{_datadir}/maven-metadata/%{name}.xml*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
@ -1,57 +0,0 @@
|
||||
---
|
||||
pdfbox/build.xml | 36 ------------------------------------
|
||||
1 file changed, 36 deletions(-)
|
||||
|
||||
Index: pdfbox-1.8.11/pdfbox/build.xml
|
||||
===================================================================
|
||||
--- pdfbox-1.8.11.orig/pdfbox/build.xml
|
||||
+++ pdfbox-1.8.11/pdfbox/build.xml
|
||||
@@ -342,48 +342,12 @@
|
||||
</target>
|
||||
|
||||
<target name="get.externallibs.pdfbox">
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${bcmail.url}"/>
|
||||
- <param name="destfile" value="${bcmail.jar}"/>
|
||||
- </antcall>
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${bcprov.url}"/>
|
||||
- <param name="destfile" value="${bcprov.jar}"/>
|
||||
- </antcall>
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${junit.url}"/>
|
||||
- <param name="destfile" value="${junit.jar}"/>
|
||||
- </antcall>
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${logging.url}"/>
|
||||
- <param name="destfile" value="${logging.jar}"/>
|
||||
- </antcall>
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${icu4j.url}"/>
|
||||
- <param name="destfile" value="${icu4j.jar}"/>
|
||||
- </antcall>
|
||||
</target>
|
||||
|
||||
<target name="get.externallibs.fontbox">
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${junit.url}"/>
|
||||
- <param name="destfile" value="${junit.jar}"/>
|
||||
- </antcall>
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${logging.url}"/>
|
||||
- <param name="destfile" value="${logging.jar}"/>
|
||||
- </antcall>
|
||||
</target>
|
||||
|
||||
<target name="get.externallibs.jempbox">
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${junit.url}"/>
|
||||
- <param name="destfile" value="${junit.jar}"/>
|
||||
- </antcall>
|
||||
- <antcall target="downloadfile">
|
||||
- <param name="sourcefile" value="${logging.url}"/>
|
||||
- <param name="destfile" value="${logging.jar}"/>
|
||||
- </antcall>
|
||||
</target>
|
||||
|
||||
<target name="pdfbox.package" depends="get.externallibs.pdfbox,pdfbox.compile" description="Package pdfbox into a jar file">
|
@ -1,17 +0,0 @@
|
||||
---
|
||||
pdfbox/build.xml | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: pdfbox-1.8.11/pdfbox/build.xml
|
||||
===================================================================
|
||||
--- pdfbox-1.8.11.orig/pdfbox/build.xml
|
||||
+++ pdfbox-1.8.11/pdfbox/build.xml
|
||||
@@ -834,7 +834,7 @@
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
- <target name="javadoc" depends="pdfbox.compile" description="Create Javadocs">
|
||||
+ <target name="javadoc" depends="" description="Create Javadocs">
|
||||
<javadoc packagenames="org.*"
|
||||
sourcepath="${pdfbox.src.dir}"
|
||||
destdir="${pdfbox.target.dir}/javadoc"
|
@ -1,13 +0,0 @@
|
||||
Index: pdfbox-1.8.16/pdfbox/build.xml
|
||||
===================================================================
|
||||
--- pdfbox-1.8.16.orig/pdfbox/build.xml
|
||||
+++ pdfbox-1.8.16/pdfbox/build.xml
|
||||
@@ -31,7 +31,7 @@
|
||||
<property name="tool.dir" value="tools" />
|
||||
<property name="bin.dir" value="bin" />
|
||||
|
||||
- <property name="project.version" value="1.8.14" />
|
||||
+ <property name="project.version" value="1.8.16" />
|
||||
|
||||
<!-- pdfbox -->
|
||||
<property name="pdfbox.project.name" value="pdfbox"/>
|
@ -1,65 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You 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.
|
||||
-->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.apache.pdfbox</groupId>
|
||||
<artifactId>pdfbox-parent</artifactId>
|
||||
<version>1.8.16</version>
|
||||
<relativePath>../parent/pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>fontbox</artifactId>
|
||||
<packaging>bundle</packaging>
|
||||
|
||||
<name>Apache FontBox</name>
|
||||
<description>
|
||||
The Apache FontBox library is an open source Java tool to obtain low level information
|
||||
from font files. FontBox is a subproject of Apache PDFBox.
|
||||
</description>
|
||||
|
||||
<inceptionYear>2008</inceptionYear>
|
||||
<url>http://pdfbox.apache.org/</url>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<version>1.1.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.8.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<extensions>true</extensions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
@ -1,58 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You 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.
|
||||
-->
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.apache.pdfbox</groupId>
|
||||
<artifactId>pdfbox-parent</artifactId>
|
||||
<version>1.8.16</version>
|
||||
<relativePath>../parent/pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>jempbox</artifactId>
|
||||
<packaging>bundle</packaging>
|
||||
|
||||
<name>Apache JempBox</name>
|
||||
<description>
|
||||
The Apache JempBox library is an open source Java tool that implements Adobe's XMP(TM)
|
||||
specification. JempBox is a subproject of Apache PDFBox.
|
||||
</description>
|
||||
<inceptionYear>2008</inceptionYear>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.8.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<extensions>true</extensions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
@ -1,50 +0,0 @@
|
||||
Index: pdfbox-1.8.15/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java
|
||||
===================================================================
|
||||
--- pdfbox-1.8.15.orig/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java
|
||||
+++ pdfbox-1.8.15/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/encryption/PublicKeySecurityHandler.java
|
||||
@@ -38,7 +38,7 @@ import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import org.bouncycastle.asn1.ASN1InputStream;
|
||||
-import org.bouncycastle.asn1.DERObject;
|
||||
+import org.bouncycastle.asn1.ASN1Primitive;
|
||||
import org.bouncycastle.asn1.DERObjectIdentifier;
|
||||
import org.bouncycastle.asn1.DEROctetString;
|
||||
import org.bouncycastle.asn1.DEROutputStream;
|
||||
@@ -53,9 +53,6 @@ import org.bouncycastle.asn1.cms.Recipie
|
||||
import org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers;
|
||||
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
|
||||
import org.bouncycastle.asn1.x509.TBSCertificateStructure;
|
||||
-import org.bouncycastle.cms.CMSEnvelopedData;
|
||||
-import org.bouncycastle.cms.CMSException;
|
||||
-import org.bouncycastle.cms.RecipientInformation;
|
||||
import org.apache.pdfbox.cos.COSArray;
|
||||
import org.apache.pdfbox.cos.COSString;
|
||||
import org.apache.pdfbox.exceptions.CryptographyException;
|
||||
@@ -311,7 +308,7 @@ public class PublicKeySecurityHandler ex
|
||||
pkcs7input[22] = two;
|
||||
pkcs7input[23] = one;
|
||||
|
||||
- DERObject obj = createDERForRecipient(pkcs7input, certificate);
|
||||
+ ASN1Primitive obj = createDERForRecipient(pkcs7input, certificate);
|
||||
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
|
||||
@@ -378,7 +375,7 @@ public class PublicKeySecurityHandler ex
|
||||
|
||||
}
|
||||
|
||||
- private DERObject createDERForRecipient(byte[] in, X509Certificate cert)
|
||||
+ private ASN1Primitive createDERForRecipient(byte[] in, X509Certificate cert)
|
||||
throws IOException,
|
||||
GeneralSecurityException
|
||||
{
|
||||
@@ -389,7 +386,7 @@ public class PublicKeySecurityHandler ex
|
||||
AlgorithmParameters algorithmparameters = algorithmparametergenerator.generateParameters();
|
||||
ByteArrayInputStream bytearrayinputstream = new ByteArrayInputStream(algorithmparameters.getEncoded("ASN.1"));
|
||||
ASN1InputStream asn1inputstream = new ASN1InputStream(bytearrayinputstream);
|
||||
- DERObject derobject = asn1inputstream.readObject();
|
||||
+ ASN1Primitive derobject = asn1inputstream.readObject();
|
||||
KeyGenerator keygenerator;
|
||||
try
|
||||
{
|
@ -1,59 +0,0 @@
|
||||
--- pdfbox-1.8.12/pdfbox/build.xml 2017-09-15 07:55:42.584501156 +0200
|
||||
+++ pdfbox-1.8.12/pdfbox/build.xml 2017-09-15 08:46:31.257902337 +0200
|
||||
@@ -23,6 +23,9 @@
|
||||
|
||||
<property name="build.compiler" value="modern" />
|
||||
|
||||
+ <property name="compile.source" value="1.5" />
|
||||
+ <property name="compile.target" value="1.5" />
|
||||
+
|
||||
<property name="download.dir" value="download" />
|
||||
<property name="jar.dir" value="external" />
|
||||
<property name="tool.dir" value="tools" />
|
||||
@@ -175,10 +178,10 @@
|
||||
description="Compile Java source files">
|
||||
<!-- required encoding flag to be able to build using ibm-jdk on redhat ES-->
|
||||
<javac srcdir="${pdfbox.src.dir}" destdir="${pdfbox.dest.dir}"
|
||||
- target="1.5" source="1.5" debug="on" deprecation="on"
|
||||
+ target="${compile.target}" source="${compile.source}" debug="on" deprecation="on"
|
||||
classpathref="pdfbox.build.classpath" encoding="ISO-8859-1"/>
|
||||
<javac srcdir="${pdfbox.test.dir}" destdir="${pdfbox.dest.dir}"
|
||||
- target="1.5" source="1.5" debug="on" deprecation="on"
|
||||
+ target="${compile.target}" source="${compile.source}" debug="on" deprecation="on"
|
||||
classpathref="pdfbox.build.classpath" encoding="ISO-8859-1"/>
|
||||
</target>
|
||||
|
||||
@@ -186,10 +189,10 @@
|
||||
description="Compile Java source files">
|
||||
<!-- required encoding flag to be able to build using ibm-jdk on redhat ES-->
|
||||
<javac srcdir="${fontbox.src.dir}" destdir="${fontbox.dest.dir}"
|
||||
- target="1.5" source="1.5" debug="on" deprecation="on"
|
||||
+ target="${compile.target}" source="${compile.source}" debug="on" deprecation="on"
|
||||
classpathref="fontbox.build.classpath" encoding="ISO-8859-1"/>
|
||||
<javac srcdir="${fontbox.test.dir}" destdir="${fontbox.dest.dir}"
|
||||
- target="1.5" source="1.5" debug="on" deprecation="on"
|
||||
+ target="${compile.target}" source="${compile.source}" debug="on" deprecation="on"
|
||||
classpathref="fontbox.build.classpath" encoding="ISO-8859-1"/>
|
||||
</target>
|
||||
|
||||
@@ -197,10 +200,10 @@
|
||||
description="Compile Java source files">
|
||||
<!-- required encoding flag to be able to build using ibm-jdk on redhat ES-->
|
||||
<javac srcdir="${jempbox.src.dir}" destdir="${jempbox.dest.dir}"
|
||||
- target="1.5" source="1.5" debug="on" deprecation="on"
|
||||
+ target="${compile.target}" source="${compile.source}" debug="on" deprecation="on"
|
||||
classpathref="jempbox.build.classpath" encoding="ISO-8859-1"/>
|
||||
<javac srcdir="${jempbox.test.dir}" destdir="${jempbox.dest.dir}"
|
||||
- target="1.5" source="1.5" debug="on" deprecation="on"
|
||||
+ target="${compile.target}" source="${compile.source}" debug="on" deprecation="on"
|
||||
classpathref="jempbox.build.classpath" encoding="ISO-8859-1"/>
|
||||
</target>
|
||||
|
||||
@@ -809,6 +812,7 @@
|
||||
doctitle="${project.name}"
|
||||
verbose="no"
|
||||
classpathref="pdfbox.build.classpath"
|
||||
+ source="${compile.source}"
|
||||
encoding="ISO-8859-1"
|
||||
breakiterator="yes">
|
||||
<link href="http://java.sun.com/j2se/1.5.0/docs/api/"/>
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bde318e1d53fedd4cea6d693e3402595e7fa5229204d00f2f6b7fd2f959f7b9b
|
||||
size 11079295
|
@ -1,187 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!--
|
||||
! Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
! contributor license agreements. See the NOTICE file distributed with
|
||||
! this work for additional information regarding copyright ownership.
|
||||
! The ASF licenses this file to You 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.
|
||||
!-->
|
||||
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>org.apache.pdfbox</groupId>
|
||||
<artifactId>pdfbox-parent</artifactId>
|
||||
<version>1.8.16</version>
|
||||
<relativePath>../parent/pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>pdfbox</artifactId>
|
||||
<packaging>bundle</packaging>
|
||||
|
||||
<name>Apache PDFBox</name>
|
||||
<description>
|
||||
The Apache PDFBox library is an open source Java tool for working with PDF documents.
|
||||
</description>
|
||||
<inceptionYear>2002</inceptionYear>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.pdfbox</groupId>
|
||||
<artifactId>fontbox</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.pdfbox</groupId>
|
||||
<artifactId>jempbox</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-logging</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<version>1.1.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
<artifactId>bcmail-jdk15</artifactId>
|
||||
<version>1.44</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.bouncycastle</groupId>
|
||||
<artifactId>bcprov-jdk15</artifactId>
|
||||
<version>1.44</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.ibm.icu</groupId>
|
||||
<artifactId>icu4j</artifactId>
|
||||
<version>3.8</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.8.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- For legal reasons (incompatible license), these dependencies
|
||||
are to be used only in the tests and may not be distributed.
|
||||
See also LEGAL-195 -->
|
||||
<dependency>
|
||||
<groupId>com.levigo.jbig2</groupId>
|
||||
<artifactId>levigo-jbig2-imageio</artifactId>
|
||||
<version>1.6.5</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.jai-imageio</groupId>
|
||||
<artifactId>jai-imageio-core</artifactId>
|
||||
<version>1.3.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.jai-imageio</groupId>
|
||||
<artifactId>jai-imageio-jpeg2000</artifactId>
|
||||
<version>1.3.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>generate-resources</phase>
|
||||
<configuration>
|
||||
<target>
|
||||
<ant antfile="build.xml" target="get.adobefiles" />
|
||||
</target>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.ant</groupId>
|
||||
<artifactId>ant-nodeps</artifactId>
|
||||
<version>1.8.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<argLine>-Xmx128m -Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider</argLine>
|
||||
<includes>
|
||||
<include>org/apache/pdfbox/TestAll.java</include>
|
||||
<include>org/apache/pdfbox/util/TestImageIOUtils.java</include>
|
||||
<include>org/apache/pdfbox/util/TestTextStripper.java</include>
|
||||
<!--
|
||||
<include>org/apache/pdfbox/util/TestPDFToImage.java</include>
|
||||
-->
|
||||
</includes>
|
||||
<systemPropertyVariables>
|
||||
<java.util.logging.config.file>src/test/resources/logging.properties</java.util.logging.config.file>
|
||||
</systemPropertyVariables>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Include-Resource>
|
||||
{maven-resources},
|
||||
META-INF=target/maven-shared-archive-resources/META-INF,
|
||||
org/apache/pdfbox/resources=target/classes/org/apache/pdfbox/resources
|
||||
</Include-Resource>
|
||||
</instructions>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.rat</groupId>
|
||||
<artifactId>apache-rat-plugin</artifactId>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>src/main/resources/org/apache/pdfbox/resources/cmap/*</exclude>
|
||||
<exclude>src/main/resources/META-INF/services/*</exclude>
|
||||
<exclude>src/test/resources/input/rendering/*.ai</exclude>
|
||||
<exclude>src/test/resources/input/*.txt</exclude>
|
||||
<exclude>src/test/resources/org/apache/pdfbox/filter/*.bin</exclude>
|
||||
<exclude>src/test/resources/org/apache/pdfbox/encryption/*.der</exclude>
|
||||
<exclude>src/test/resources/org/apache/pdfbox/encryption/*.pfx</exclude>
|
||||
<exclude>src/test/resources/org/apache/pdfbox/pdmodel/sRGB.*</exclude>
|
||||
<exclude>download/glyphlist.txt</exclude>
|
||||
<exclude>release.properties</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
|
3
pdfbox-2.0.19-build.tar.xz
Normal file
3
pdfbox-2.0.19-build.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d6914dc8c26228507457c71b044994d25d0f04c7385771ee0ba1a735415033ed
|
||||
size 7064
|
3
pdfbox-2.0.19-src.zip
Normal file
3
pdfbox-2.0.19-src.zip
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ae8ff375939f1209d4c3b21a933404d312acceb68b04a5435f0bc47bc72a0e32
|
||||
size 15360412
|
Loading…
Reference in New Issue
Block a user