diff options
Diffstat (limited to 'pdf-as-pdfbox-2/src/main/java/at')
-rw-r--r-- | pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/PDFBOXObject.java | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/PDFBOXObject.java b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/PDFBOXObject.java index 891ebe39..53b87d86 100644 --- a/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/PDFBOXObject.java +++ b/pdf-as-pdfbox-2/src/main/java/at/gv/egiz/pdfas/lib/impl/pdfbox2/PDFBOXObject.java @@ -1,14 +1,10 @@ package at.gv.egiz.pdfas.lib.impl.pdfbox2; import java.io.IOException; -import java.util.HashMap; -import java.util.Map; import javax.activation.DataSource; -import org.apache.pdfbox.io.MemoryUsageSetting; import org.apache.pdfbox.pdmodel.PDDocument; -import org.apache.pdfbox.pdmodel.font.PDFont; import at.gv.egiz.pdfas.lib.impl.stamping.pdfbox2.PDFAsFontCache; import at.gv.egiz.pdfas.lib.impl.status.OperationStatus; @@ -17,9 +13,7 @@ import at.gv.egiz.pdfas.lib.impl.status.PDFObject; public class PDFBOXObject extends PDFObject { private PDDocument doc; - - private Map<String, PDFont> fontCache = new HashMap<String, PDFont>(); - + private PDFAsFontCache sigBlockFontCache = new PDFAsFontCache(); public PDFAsFontCache getSigBlockFontCache() { @@ -54,11 +48,6 @@ public class PDFBOXObject extends PDFObject { } } - private MemoryUsageSetting getMemoryUsageSettings() { - // TODO: allow fine tuning of memory usage (divided main memory vs file memory) - return MemoryUsageSetting.setupMainMemoryOnly(); - } - public void setOriginalDocument(DataSource originalDocument) throws IOException { this.originalDocument = originalDocument; if(doc != null) { |