You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2020/02/20 16:01:47 UTC
[Bug 64164] New: (POI 3.17) - Embedded files in .doc text extracted
automatically - how to skip these
https://bz.apache.org/bugzilla/show_bug.cgi?id=64164
Bug ID: 64164
Summary: (POI 3.17) - Embedded files in .doc text extracted
automatically - how to skip these
Product: POI
Version: unspecified
Hardware: PC
OS: Mac OS X 10.1
Status: NEW
Severity: normal
Priority: P2
Component: POI Overall
Assignee: dev@poi.apache.org
Reporter: squirer7492@gmail.com
Target Milestone: ---
Created attachment 37029
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37029&action=edit
Sample input file
Hi there,
we recently realised that documents (.doc not .docx) with embedded excel
spreadsheets have their text automatically extracted as part of the text
extraction process.
// pass an input stream (.doc sample containing an embedded excel file with
// some text in the cells)
POITextExtractor t =
org.apache.poi.extractor.ExtractorFactory.createExtractor(bis);
// produces the text of the .doc document BUT also the embedded excel
// documents contents - is there a way to turn this feature off?
t.getText()
Please let us know if there is something we can do to get around this and turn
this feature off for the text extractor.
Thanks,
Rob
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 64164] (POI 3.17) - Embedded files in .doc text extracted
automatically - how to skip these
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64164
--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
For text extraction, you would be better off using Apache Tika. Tika wraps POI,
but gives full control over the processing of text + metadata + embedded
resources
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 64164] (POI 3.17) - Embedded files in .doc text extracted
automatically - how to skip these
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64164
--- Comment #2 from Rob Squire <sq...@gmail.com> ---
Thanks a lot for the quick reply Nick!
I think in the meantime we can try to do some gymnastics with the paragraphText
and build up what we need to give back to the user (as POI is used quite a lot
throughout our app already).
Much appreciated!
Rob
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 64164] (POI 3.17) - Embedded files in .doc text extracted
automatically - how to skip these
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64164
Rob Squire <sq...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |squirer7492@gmail.com
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 64164] (POI 3.17) - Embedded files in .doc text extracted
automatically - how to skip these
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64164
--- Comment #3 from Tim Allison <ta...@mitre.org> ---
To follow up on Nick's advice, download from here:
https://www.apache.org/dyn/closer.cgi/tika/tika-app-1.23.jar
and try it with these options:
java -jar tika-app-1.23.jar -J -t input_file.doc
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org