Skip to content
Commits on Source (6)
Release Notes -- Apache PDFBox -- Version 1.8.13
Release Notes -- Apache PDFBox -- Version 1.8.15
Introduction
------------
The Apache PDFBox library is an open source Java tool for working with PDF documents.
This is an incremental bugfix release based on the earlier 1.8.12 release. It
This is an incremental bugfix release based on the earlier 1.8.14 release. It
contains a couple of fixes and small improvements.
For more details on all fixes included in this release, please refer to the following
......@@ -13,50 +13,11 @@ issues on the PDFBox issue tracker at https://issues.apache.org/jira/browse/PDFB
Bug
[PDFBOX-2420] - DateConverter doesn't handle time zones outside -12 to +12 range properly
[PDFBOX-2919] - org.apache.fontbox.cff.CFFParser.readEntry sometimes throws java.lang.IllegalArgumentException
[PDFBOX-3315] - Dates falsely detected as different by preflight
[PDFBOX-3335] - Issue while Merging PDF with Hidden Layers
[PDFBOX-3341] - currentAccessPermission.setReadOnly() not set in StandardSecurityHandler
[PDFBOX-3355] - PDPageLabels.getLabelsByPageIndices() returns Uppercase letters for style a
[PDFBOX-3368] - ContainsKey don't work for the Map<String, Object> returned by PDStructureTreeRoot.getRoleMap
[PDFBOX-3369] - Error expected floating point number actual='0.00-35095424'
[PDFBOX-3409] - TextToPDF drops leading spaces
[PDFBOX-3420] - Can't sign pdf with a particular attachment
[PDFBOX-3446] - Infinite loop while parsing
[PDFBOX-3448] - NullPointerException at org.apache.pdfbox.pdmodel.common.COSArrayList.convertFloatCOSArrayToList
[PDFBOX-3450] - ArrayIndexOutOfBoundsException at org.apache.fontbox.cmap.CMapParser.increment
[PDFBOX-3463] - XMPSchemaBasic.getLabel() always returns null
[PDFBOX-3466] - Java 9 warnings
[PDFBOX-3472] - NPE when PDF/A identification metadata does not contain ID
[PDFBOX-3477] - CA and ca values should be clipped
[PDFBOX-3481] - Localization in XRef generation results in unusable PDFs
[PDFBOX-3487] - ClassCastException in COSWriter.write() when saving PDF
[PDFBOX-3491] - NumberFormatException in CFFParser.readRealNumber
[PDFBOX-3500] - Error expected floating point number actual='0.-262'
[PDFBOX-3532] - Java 6 errors
[PDFBOX-3546] - IOException over DataFormatException, "invalid stored block lengths" on a valid PDF
[PDFBOX-3551] - CLI Decrypt broken, only allows 1 argument
[PDFBOX-3555] - FlateFilter.decode cause native memory leaks
[PDFBOX-3558] - NPE in JBig2Filter if BitsPerComponent is missing
[PDFBOX-3570] - JDK-8054565 Java 8 close contract issue
[PDFBOX-3571] - sRGB Color Space Profile is subject to 3rd party copyright
[PDFBOX-3578] - java.lang.IllegalArgumentException: dash lengths all zero
[PDFBOX-3590] - AccessPermission not applied
[PDFBOX-3594] - Use PDOutlineItem#findDestinationPage() cannot get PDPage, return was null
[PDFBOX-3609] - ClassCastException in PDCIDFont.readWidths()
[PDFBOX-4197] - PDStructureElement.getAttributes() ignores reference objects
Improvement
[PDFBOX-3352] - Calendar values are parsed with unknown timezones
New Feature
[PDFBOX-3410] - TextToPDF needs orientation control
Task
[PDFBOX-3577] - remove mygrid repository in 1.8
[PDFBOX-4251] - Optimize AFMParser
Release Contents
----------------
......@@ -65,9 +26,9 @@ This release consists of a single source archive packaged as a zip file.
The archive can be unpacked with the jar tool from your JDK installation.
See the README.txt file for instructions on how to build this release.
The source archive is accompanied by SHA1 and MD5 checksums and a PGP
signature that you can use to verify the authenticity of your download.
The public key used for the PGP signature can be found at
The source archive is accompanied by SHA512 checksum and a PGP signature
that you can use to verify the authenticity of your download. The public
key used for the PGP signature can be found at
https://svn.apache.org/repos/asf/pdfbox/KEYS.
About Apache PDFBox
......
......@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-parent</artifactId>
<version>1.8.13</version>
<version>1.8.15</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>
......
......@@ -21,14 +21,14 @@
</head>
<body>
<A href="http://jakarta.apache.org/ant/index.html">ANT</a> tasks that utilize PDFBox features can be found in this package.
This is an example of using the PDF2Text task:<br/> <br/>
This is an example of using the PDF2Text task:<br> <br>
&lt;taskdef name="pdf2text" classname="org.apache.pdfbox.ant.PDFToTextTask" classpathref="build.classpath" /&gt;<br/>
&lt;taskdef name="pdf2text" classname="org.apache.pdfbox.ant.PDFToTextTask" classpathref="build.classpath" /&gt;<br>
&lt;pdf2text&gt;<br/>
&nbsp;&nbsp;&lt;fileset dir="test"&gt;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;include name="**/*.pdf" /&gt;<br/>
&nbsp;&nbsp;&lt;/fileset&gt;<br/>
&lt;/pdf2text&gt;<br/>
&lt;pdf2text&gt;<br>
&nbsp;&nbsp;&lt;fileset dir="test"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;include name="**/*.pdf" /&gt;<br>
&nbsp;&nbsp;&lt;/fileset&gt;<br>
&lt;/pdf2text&gt;<br>
</body>
</html>
......@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-parent</artifactId>
<version>1.8.13</version>
<version>1.8.15</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>
......
libpdfbox-java (1:1.8.15-1) unstable; urgency=medium
* Team upload.
* New upstream version 1.8.15.
- Fix CVE-2018-8036. (Closes: #902776)
* Declare compliance with Debian Policy 4.1.4.
* Switch to compat level 11.
-- Markus Koschany <apo@debian.org> Sat, 30 Jun 2018 21:08:37 +0200
libpdfbox-java (1:1.8.13-2) unstable; urgency=medium
* Address FTBFS in debian/rules (Closes: #887939)
......
......@@ -5,7 +5,7 @@ Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.or
Uploaders: tony mancill <tmancill@debian.org>,
gregor herrmann <gregoa@debian.org>,
Emmanuel Bourg <ebourg@apache.org>
Build-Depends: debhelper (>= 10), maven-debian-helper
Build-Depends: debhelper (>= 11), maven-debian-helper
Build-Depends-Indep: default-jdk,
htmldoc-common,
javahelper,
......@@ -19,7 +19,7 @@ Build-Depends-Indep: default-jdk,
libicu4j-java,
libmaven-javadoc-plugin-java,
poppler-data
Standards-Version: 4.1.3
Standards-Version: 4.1.4
Vcs-Git: https://anonscm.debian.org/git/pkg-java/libpdfbox-java.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-java/libpdfbox-java.git
Homepage: https://pdfbox.apache.org
......
......@@ -27,12 +27,6 @@ override_dh_auto_build:
override_dh_installchangelogs:
dh_installchangelogs $(CURDIR)/RELEASE-NOTES.txt
override_dh_installexamples:
dh_installexamples
# empty directory since we remove the contents during repackaging.
rmdir --verbose --parents --ignore-fail-on-non-empty $(CURDIR)/debian/libpdfbox-java-doc/usr/share/doc/libpdfbox-java-doc/examples/src/main/resources/org/apache/pdfbox/resources/pdfa
rm -f $(CURDIR)/debian/libpdfbox-java-doc/usr/share/doc/libpdfbox-java-doc/examples/pom.xml.save
override_dh_gencontrol:
dh_gencontrol -- "-Vmisc:Built-Using=$(htmldoc-common_source)$(lcdf-typetools_source)$(poppler-data_source)"
......
......@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-parent</artifactId>
<version>1.8.13</version>
<version>1.8.15</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>
......
......@@ -83,7 +83,7 @@ public class AddImageToPDF
BufferedImage awtImage = ImageIO.read( new File( image ) );
ximage = new PDPixelMap(doc, awtImage);
}
PDPageContentStream contentStream = new PDPageContentStream(doc, page, true, true);
PDPageContentStream contentStream = new PDPageContentStream(doc, page, true, true, true);
//contentStream.drawImage(ximage, 20, 20 );
// better method inspired by http://stackoverflow.com/a/22318681/535646
......
......@@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-parent</artifactId>
<version>1.8.13</version>
<version>1.8.15</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>
......
......@@ -998,9 +998,11 @@ public class AFMParser
buf.append( (char)nextByte );
//now read the data
while( !isEOL(nextByte = input.read()) )
nextByte = input.read();
while (nextByte != -1 && !isEOL(nextByte))
{
buf.append((char) nextByte);
nextByte = input.read();
}
return buf.toString();
}
......@@ -1025,9 +1027,11 @@ public class AFMParser
buf.append( (char)nextByte );
//now read the data
while( !isWhitespace(nextByte = input.read()) )
nextByte = input.read();
while (nextByte != -1 && !isWhitespace(nextByte))
{
buf.append((char) nextByte);
nextByte = input.read();
}
return buf.toString();
}
......
......@@ -21,7 +21,7 @@
</head>
<body>
This package holds classes used to parse AFM(Adobe Font Metrics) files.
<br/>
<br>
More information about AFM files can be found at
<a href="http://partners.adobe.com/asn/developer/type/">http://partners.adobe.com/asn/developer/type/</a>
</body>
......
/*
* 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.
*/
package org.apache.fontbox.afm;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import org.junit.Assert;
import org.junit.Test;
/**
*
* @author Tilman Hausherr
*/
public class AFMParserTest
{
@Test
public void testEof() throws IOException
{
try
{
new AFMParser(new ByteArrayInputStream("huhu".getBytes())).parse();
}
catch (IOException ex)
{
Assert.assertEquals("Error: The AFM file should start with StartFontMetrics and not 'huhu'", ex.getMessage());
}
}
}
......@@ -81,7 +81,7 @@ public class TestCMapParser extends TestCase
}
/**
* Tets the parser against a valid, but poorly formated CMap file.
* Test the parser against a valid, but poorly formatted CMap file.
* @throws IOException If something went wrong
*/
public void testParserWithPoorWhitespace() throws IOException
......
......@@ -21,7 +21,7 @@
<parent>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-parent</artifactId>
<version>1.8.13</version>
<version>1.8.15</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>
......
......@@ -621,7 +621,7 @@ public class XMPMetadata
try
{
Constructor<?> ctor = schemaClass
.getConstructor(new Class[] { Element.class,
.getDeclaredConstructor(new Class[] { Element.class,
String.class });
retval.add((XMPSchema)ctor.newInstance(new Object[] { schema,
name.substring(6) }));
......
......@@ -23,7 +23,7 @@
<parent>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-parent</artifactId>
<version>1.8.13</version>
<version>1.8.15</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>
......
......@@ -29,7 +29,7 @@
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-parent</artifactId>
<version>1.8.13</version>
<version>1.8.15</version>
<packaging>pom</packaging>
<name>PDFBox parent</name>
......@@ -70,6 +70,22 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>3.2.1</version>
<configuration>
<failBuildOnAnyVulnerability>true</failBuildOnAnyVulnerability>
<suppressionFile>suppressions.xml</suppressionFile>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
......@@ -145,7 +161,6 @@
<configuration>
<excludes>
<exclude>release.properties</exclude>
<exclude>cacerts_jdk8u101</exclude>
</excludes>
</configuration>
</plugin>
......@@ -304,8 +319,8 @@
</developers>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/maven/pom/tags/1.8.13/pdfbox-parent</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/pom/tags/1.8.13/pdfbox-parent</developerConnection>
<url>http://svn.apache.org/viewvc/maven/pom/tags/1.8.13/pdfbox-parent</url>
<connection>scm:svn:http://svn.apache.org/repos/asf/maven/pom/tags/1.8.15/pdfbox-parent</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/pom/tags/1.8.15/pdfbox-parent</developerConnection>
<url>http://svn.apache.org/viewvc/maven/pom/tags/1.8.15/pdfbox-parent</url>
</scm>
</project>