diff options
Diffstat (limited to 'pdf-as-pdfbox/src/main/java/at/knowcenter')
-rw-r--r-- | pdf-as-pdfbox/src/main/java/at/knowcenter/wag/egov/egiz/pdf/PDFPage.java | 5 |
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; } |