aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/demo/ExtractNonTextualObjectsDemo.java
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-12-22 17:20:28 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-12-22 17:20:28 +0000
commit1dc37425d3bfc0beb41945e36fa06710adda3d42 (patch)
tree78ef5c061c15b95f47f9bc80bb183bc88f6e0302 /src/main/java/demo/ExtractNonTextualObjectsDemo.java
parent3d88697da5a47139625700e591bef9baada4258a (diff)
downloadpdf-as-3-1dc37425d3bfc0beb41945e36fa06710adda3d42.tar.gz
pdf-as-3-1dc37425d3bfc0beb41945e36fa06710adda3d42.tar.bz2
pdf-as-3-1dc37425d3bfc0beb41945e36fa06710adda3d42.zip
Demos updated
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@522 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/demo/ExtractNonTextualObjectsDemo.java')
-rw-r--r--src/main/java/demo/ExtractNonTextualObjectsDemo.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/demo/ExtractNonTextualObjectsDemo.java b/src/main/java/demo/ExtractNonTextualObjectsDemo.java
index 60031f7..6b0f3eb 100644
--- a/src/main/java/demo/ExtractNonTextualObjectsDemo.java
+++ b/src/main/java/demo/ExtractNonTextualObjectsDemo.java
@@ -31,7 +31,7 @@ public class ExtractNonTextualObjectsDemo {
System.err.println("Please provide path of file to be analyzed.");
System.exit(1);
}
-
+
File testFile = new File(args[0]);
try {
@@ -41,7 +41,7 @@ public class ExtractNonTextualObjectsDemo {
List nonTextualObjects = PdfAS.extractNonTextualObjects(new PdfDataSourceAdapter(dataSource));
if (nonTextualObjects != null && !nonTextualObjects.isEmpty()) {
- System.out.println("Non-textual objects found.");
+ System.out.println(nonTextualObjects.size() + " non-textual object(s) found.");
Iterator noit = nonTextualObjects.iterator();
while (noit.hasNext()) {
NonTextObjectInfo info = (NonTextObjectInfo) noit.next();