update to PDFbox 3.0.0
This commit is contained in:
parent
2b9ff08296
commit
ae7ea4d1ba
3 changed files with 13 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
||||||
group = org.xbib.graphics
|
group = org.xbib.graphics
|
||||||
name = graphics
|
name = graphics
|
||||||
version = 4.5.9
|
version = 4.6.0
|
||||||
|
|
||||||
org.gradle.warning.mode = ALL
|
org.gradle.warning.mode = ALL
|
||||||
|
|
|
@ -4,6 +4,8 @@ import static org.hamcrest.Matchers.greaterThan;
|
||||||
import static org.hamcrest.Matchers.is;
|
import static org.hamcrest.Matchers.is;
|
||||||
import static org.hamcrest.Matchers.equalTo;
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
import static org.hamcrest.MatcherAssert.assertThat;
|
import static org.hamcrest.MatcherAssert.assertThat;
|
||||||
|
import static org.hamcrest.Matchers.lessThanOrEqualTo;
|
||||||
|
|
||||||
import org.apache.pdfbox.pdmodel.PDDocument;
|
import org.apache.pdfbox.pdmodel.PDDocument;
|
||||||
import org.apache.pdfbox.pdmodel.PDPage;
|
import org.apache.pdfbox.pdmodel.PDPage;
|
||||||
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
import org.apache.pdfbox.pdmodel.PDPageContentStream;
|
||||||
|
@ -113,7 +115,8 @@ public class TableTest {
|
||||||
.build())
|
.build())
|
||||||
.build();
|
.build();
|
||||||
final float actualFontHeight = PdfUtil.getFontHeight(table.getSettings().getFontDescriptor());
|
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
|
@Test
|
||||||
|
|
|
@ -34,15 +34,15 @@ dependencyResolutionManagement {
|
||||||
library('groovy-sql', 'org.apache.groovy', 'groovy-sql').versionRef('groovy')
|
library('groovy-sql', 'org.apache.groovy', 'groovy-sql').versionRef('groovy')
|
||||||
library('groovy-macro', 'org.apache.groovy', 'groovy-macro').versionRef('groovy')
|
library('groovy-macro', 'org.apache.groovy', 'groovy-macro').versionRef('groovy')
|
||||||
library('groovy-templates', 'org.apache.groovy', 'groovy-templates').versionRef('groovy')
|
library('groovy-templates', 'org.apache.groovy', 'groovy-templates').versionRef('groovy')
|
||||||
library('groovy-test', 'org.apache.groovy', 'groovy-test').versionRef('groovy')
|
library('groovy-test', 'org.apache.groovy', 'groovy-test').versionRef('groovy') // test only
|
||||||
library('spock', 'org.spockframework', 'spock-core').versionRef('spock')
|
library('spock', 'org.spockframework', 'spock-core').versionRef('spock') // test only
|
||||||
library('bytebuddy', 'net.bytebuddy', 'byte-buddy').version('1.14.4')
|
library('bytebuddy', 'net.bytebuddy', 'byte-buddy').version('1.14.4') // test only
|
||||||
library('objenesis', 'org.objenesis', 'objenesis').version('2.6')
|
library('objenesis', 'org.objenesis', 'objenesis').version('2.6') // test only
|
||||||
library('jna', 'net.java.dev.jna', 'jna').version('5.13.0')
|
library('jna', 'net.java.dev.jna', 'jna').version('5.13.0')
|
||||||
library('pdfbox', 'org.apache.pdfbox', 'pdfbox').version('3.0.0-beta1')
|
library('pdfbox', 'org.apache.pdfbox', 'pdfbox').version('3.0.0')
|
||||||
library('zxing', 'com.google.zxing', 'javase').version('3.4.1')
|
library('zxing', 'com.google.zxing', 'javase').version('3.5.2') // test only
|
||||||
library('reflections', 'org.reflections', 'reflections').version('0.9.11')
|
library('reflections', 'org.reflections', 'reflections').version('0.9.11') // test only
|
||||||
library('jfreechart', 'org.jfree', 'jfreechart').version('1.5.2')
|
library('jfreechart', 'org.jfree', 'jfreechart').version('1.5.2') // test only
|
||||||
library('datastructures-settings', 'org.xbib', 'settings-datastructures')versionRef('content')
|
library('datastructures-settings', 'org.xbib', 'settings-datastructures')versionRef('content')
|
||||||
library('datastructures-settings-json', 'org.xbib', 'settings-datastructures-json').versionRef('content')
|
library('datastructures-settings-json', 'org.xbib', 'settings-datastructures-json').versionRef('content')
|
||||||
library('datastructures-settings-yaml', 'org.xbib', 'settings-datastructures-yaml').versionRef('content')
|
library('datastructures-settings-yaml', 'org.xbib', 'settings-datastructures-yaml').versionRef('content')
|
||||||
|
|
Loading…
Reference in a new issue