From 95ae6ca046fe56c033a92a4342cb230b1c811221 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Tue, 17 Nov 2015 14:35:49 +0100 Subject: synchronized verifier --- .../src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pdf-as-pdfbox/src/main/java/at/knowcenter/wag') diff --git a/pdf-as-pdfbox/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java b/pdf-as-pdfbox/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java index 48e6d3d2..dfe31ef8 100644 --- a/pdf-as-pdfbox/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java +++ b/pdf-as-pdfbox/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java @@ -386,14 +386,15 @@ public class PDFPage extends PDFTextStripper { fontObj = getCurrentPage().getResources().getCOSDictionary() .getDictionaryObject(COSName.FONT); } + Map fontMap = getCurrentPage().findResources() .getFonts(); - + if (fontObj != null) { getCurrentPage().getResources().getCOSDictionary() .setItem(COSName.FONT, fontObj); } - + return fontMap; } -- cgit v1.2.3