Details
Description
-j json shows following behavior but plain text -m is also a problem and just keeps returning the 1st result even with subsequent different pdf files
- Running server to get meta data
java -jar tika-app-1.0.jar -m -j --server 9000 - send pdf document
nc localhost 9000 < test.pdf - get good result {"Author":"unknown", "Content-Type":"application/pdf", "Creation-Date":"2011-12-27T18:21:59Z", "Last-Modified":"2011-12-27T18:21:59Z", "created":"Tue Dec 27 12:21:59 CST 2011", "creator":"PScript5.dll Version 5.2.2", "producer":"GPL Ghostscript 9.04", "title":"Aaron Rodgers the clear-cut MVP after dismantling Chicago Bears - Peter King - SI.com", "xmpTPg:NPages":3 }
- send pdf document again
nc localhost 9000 < test.pdf - get bad result with extra values from last run { "Author":["unknown", "unknown"], "Content-Type":"application/pdf", "Creation-Date":"2011-12-27T18:21:59Z", "Last-Modified":"2011-12-27T18:21:59Z", "created":"Tue Dec 27 12:21:59 CST 2011", "creator":["PScript5.dll Version 5.2.2", "PScript5.dll Version 5.2.2"], "producer":["GPL Ghostscript 9.04", "GPL Ghostscript 9.04"], "title":["Aaron Rodgers the clear-cut MVP after dismantling Chicago Bears - Peter King - SI.com", "Aaron Rodgers the clear-cut MVP after dismantling Chicago Bears - Peter King - SI.com"], "xmpTPg:NPages":3 }
- send another pdf document
nc localhost 9000 < ctypes.pdf - get bad result with extra values from last 2 runs
{ "Author":["unknown", "unknown", "unknown"],
"Content-Type":"application/pdf",
"Creation-Date":"2011-12-27T18:03:18Z",
"Last-Modified":"2011-12-27T18:03:18Z",
"created":"Tue Dec 27 12:03:18 CST 2011",
"creator":["PScript5.dll Version 5.2.2", "PScript5.dll Version 5.2.2", "PScript5.dll Version 5.2.2"],
"producer":["GPL Ghostscript 9.04", "GPL Ghostscript 9.04", "GPL Ghostscript 9.04"],
"title":["Aaron Rodgers the clear-cut MVP after dismantling Chicago Bears - Peter King - SI.com", "Aaron Rodgers the clear-cut MVP after dismantling Chicago Bears - Peter King - SI.com", "(15.17. ctypes \\227 A foreign function library for Python \\227 Python v2.7.2 documentation)"],