aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox/src/main/java/at/knowcenter/wag
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-pdfbox/src/main/java/at/knowcenter/wag')
-rw-r--r--pdf-as-pdfbox/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java5
1 files changed, 3 insertions, 2 deletions
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<String, PDFont> fontMap = getCurrentPage().findResources()
.getFonts();
-
+
if (fontObj != null) {
getCurrentPage().getResources().getCOSDictionary()
.setItem(COSName.FONT, fontObj);
}
-
+
return fontMap;
}