aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-pdfbox/src/test/java/at/gv/egiz/pdfas
diff options
context:
space:
mode:
authorAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-06-01 15:32:59 +0200
committerAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-06-01 15:32:59 +0200
commit35f085db9a800c955a72743f079c8635411467cd (patch)
tree3c3574800dd465ce0ccd26b8e99e0b3cc80c4ffe /pdf-as-pdfbox/src/test/java/at/gv/egiz/pdfas
parenteedafa4a54119a51f6c353266de7353eac2db785 (diff)
downloadpdf-as-4-35f085db9a800c955a72743f079c8635411467cd.tar.gz
pdf-as-4-35f085db9a800c955a72743f079c8635411467cd.tar.bz2
pdf-as-4-35f085db9a800c955a72743f079c8635411467cd.zip
removed pdfbox1
Diffstat (limited to 'pdf-as-pdfbox/src/test/java/at/gv/egiz/pdfas')
-rw-r--r--pdf-as-pdfbox/src/test/java/at/gv/egiz/pdfas/lib/testpdfbox/TTFFontTest.java45
1 files changed, 0 insertions, 45 deletions
diff --git a/pdf-as-pdfbox/src/test/java/at/gv/egiz/pdfas/lib/testpdfbox/TTFFontTest.java b/pdf-as-pdfbox/src/test/java/at/gv/egiz/pdfas/lib/testpdfbox/TTFFontTest.java
deleted file mode 100644
index fdc59ab8..00000000
--- a/pdf-as-pdfbox/src/test/java/at/gv/egiz/pdfas/lib/testpdfbox/TTFFontTest.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package at.gv.egiz.pdfas.lib.testpdfbox;
-
-import java.io.File;
-import java.util.Iterator;
-import java.util.List;
-
-import org.apache.pdfbox.cos.COSBase;
-import org.apache.pdfbox.cos.COSName;
-import org.apache.pdfbox.cos.COSObject;
-import org.apache.pdfbox.pdmodel.PDDocument;
-
-public class TTFFontTest {
-
- public static void main(String[] args) {
- try {
- PDDocument doc = PDDocument.load(new File("/home/afitzek/Downloads/pdf_groesse/willenserklaerung_signedByUser.pdf"));
-
- List<COSObject> cosObjects = doc.getDocument().getObjectsByType(COSName.FONT);
-
- Iterator<COSObject> cosObjectIt = cosObjects.iterator();
-
- while(cosObjectIt.hasNext()) {
- COSObject cosObject = cosObjectIt.next();
- COSBase subType = cosObject.getItem(COSName.SUBTYPE);
- COSBase baseFont = cosObject.getItem(COSName.BASE_FONT);
- COSBase aTest = cosObject.getItem(COSName.A);
-
- System.out.println(aTest);
-
- if(subType.equals(COSName.TRUE_TYPE)) {
- System.out.println("Object Number: " + cosObject.getObjectNumber().intValue() +
- subType.toString());
- System.out.println(" BaseFont: " + baseFont.toString());
- }
-
-
- }
-
-
- } catch(Throwable e) {
- e.printStackTrace();
- }
- }
-
-}