update to PDFbox 3.0.0

This commit is contained in:
Jörg Prante 2023-09-27 14:38:37 +02:00
parent 2b9ff08296
commit ae7ea4d1ba
3 changed files with 13 additions and 10 deletions

View file

@ -1,5 +1,5 @@
group = org.xbib.graphics
name = graphics
version = 4.5.9
version = 4.6.0
org.gradle.warning.mode = ALL

View file

@ -4,6 +4,8 @@ import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.lessThanOrEqualTo;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.PDPageContentStream;
@ -113,7 +115,8 @@ public class TableTest {
.build())
.build();
final float actualFontHeight = PdfUtil.getFontHeight(table.getSettings().getFontDescriptor());
assertThat(table.getHeight(), equalTo(50 + actualFontHeight));
float diff = table.getHeight() - actualFontHeight - 50.0f;
assertThat(diff, lessThanOrEqualTo(1.0f));
}
@Test

View file

@ -34,15 +34,15 @@ dependencyResolutionManagement {
library('groovy-sql', 'org.apache.groovy', 'groovy-sql').versionRef('groovy')
library('groovy-macro', 'org.apache.groovy', 'groovy-macro').versionRef('groovy')
library('groovy-templates', 'org.apache.groovy', 'groovy-templates').versionRef('groovy')
library('groovy-test', 'org.apache.groovy', 'groovy-test').versionRef('groovy')
library('spock', 'org.spockframework', 'spock-core').versionRef('spock')
library('bytebuddy', 'net.bytebuddy', 'byte-buddy').version('1.14.4')
library('objenesis', 'org.objenesis', 'objenesis').version('2.6')
library('groovy-test', 'org.apache.groovy', 'groovy-test').versionRef('groovy') // test only
library('spock', 'org.spockframework', 'spock-core').versionRef('spock') // test only
library('bytebuddy', 'net.bytebuddy', 'byte-buddy').version('1.14.4') // test only
library('objenesis', 'org.objenesis', 'objenesis').version('2.6') // test only
library('jna', 'net.java.dev.jna', 'jna').version('5.13.0')
library('pdfbox', 'org.apache.pdfbox', 'pdfbox').version('3.0.0-beta1')
library('zxing', 'com.google.zxing', 'javase').version('3.4.1')
library('reflections', 'org.reflections', 'reflections').version('0.9.11')
library('jfreechart', 'org.jfree', 'jfreechart').version('1.5.2')
library('pdfbox', 'org.apache.pdfbox', 'pdfbox').version('3.0.0')
library('zxing', 'com.google.zxing', 'javase').version('3.5.2') // test only
library('reflections', 'org.reflections', 'reflections').version('0.9.11') // test only
library('jfreechart', 'org.jfree', 'jfreechart').version('1.5.2') // test only
library('datastructures-settings', 'org.xbib', 'settings-datastructures')versionRef('content')
library('datastructures-settings-json', 'org.xbib', 'settings-datastructures-json').versionRef('content')
library('datastructures-settings-yaml', 'org.xbib', 'settings-datastructures-yaml').versionRef('content')