update PDFBox Version
This commit is contained in:
parent
17259ed805
commit
4bd6e7e343
@ -6,7 +6,7 @@ plugins {
|
|||||||
description = "layoutparser-service-processor"
|
description = "layoutparser-service-processor"
|
||||||
|
|
||||||
val jacksonVersion = "2.15.0-rc2"
|
val jacksonVersion = "2.15.0-rc2"
|
||||||
val pdfBoxVersion = "3.0.0-alpha2"
|
val pdfBoxVersion = "3.0.0-RC1"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(project(":layoutparser-service-internal-api"))
|
implementation(project(":layoutparser-service-internal-api"))
|
||||||
|
|||||||
@ -12,7 +12,6 @@ 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;
|
||||||
import org.apache.pdfbox.pdmodel.font.PDType1Font;
|
import org.apache.pdfbox.pdmodel.font.PDType1Font;
|
||||||
import org.apache.pdfbox.pdmodel.font.Standard14Fonts;
|
|
||||||
|
|
||||||
import com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.NodeType;
|
import com.knecon.fforesight.service.layoutparser.internal.api.data.redaction.NodeType;
|
||||||
import com.knecon.fforesight.service.layoutparser.processor.model.graph.DocumentTree;
|
import com.knecon.fforesight.service.layoutparser.processor.model.graph.DocumentTree;
|
||||||
@ -72,7 +71,7 @@ public class PdfVisualisationUtility {
|
|||||||
|
|
||||||
contentStream.beginText();
|
contentStream.beginText();
|
||||||
contentStream.newLineAtOffset((float) location.getX(), (float) location.getY());
|
contentStream.newLineAtOffset((float) location.getX(), (float) location.getY());
|
||||||
contentStream.setFont(new PDType1Font(Standard14Fonts.FontName.HELVETICA), 10);
|
contentStream.setFont(PDType1Font.HELVETICA, 10);
|
||||||
contentStream.showText(string);
|
contentStream.showText(string);
|
||||||
contentStream.endText();
|
contentStream.endText();
|
||||||
contentStream.close();
|
contentStream.close();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user