Summary: | DocumentSummaryInformation.getCategory() BUG | ||
---|---|---|---|
Product: | POI | Reporter: | Miroslav Obradovic <micky> |
Component: | HPSF | Assignee: | POI Developers List <dev> |
Status: | CLOSED WORKSFORME | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 1.5.1 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: |
here's the java code (word document plain text content extractor) i have developed when i noticed the bug...
this is the POI library i have used for my project when noticed the bug... |
Description
Miroslav Obradovic
2002-11-21 13:21:41 UTC
Miroslav, can you please attach your Word file to this bug in Bugzilla? Or better, can you create a minimal Word file which behaves as you described? I need a test case to verify the bug. Thanks! The author of this bug did not provide a test file nor did he respond to any e-mail. hi there, i'm sorry for the delay. i'm not used to using these forums and stuff... i've just found a work-around for the problem i once had and thought it would be useful if i post it, in case someone else needs it. it was long ago, but i'll try to find the sample word file. best regards, miroslav Created attachment 6990 [details]
here's the java code (word document plain text content extractor) i have developed when i noticed the bug...
Created attachment 6991 [details]
this is the POI library i have used for my project when noticed the bug...
well, here we are. i have added two attachments and here are a few words about these: the second attachment (POI library) is poi-1.5.1.jar file i used when i noticed the bug (or what i think it was a bug). i don't remember the date well, but i think it was the latest stable version at the moment i have written the code. the first attachment is a part of the project i have worked on when i noticed this bug. it's a content (plain text) extractor for word file format. i don't know if you have something similar added to POI, but if you find this code useful (there are a lot of comments in there!), you can freely use this code (though, it would be nice of you if you'd mention me as a developer somewhere, :-) ) the problem is that there are some new Summary Info "pages" added with new versions of ms word and i think you have assumed there (in poi) that there is only a single one. i guess you could use a solution similar to the one i have attached (in MyDocumentSummaryInfo.java), since Micro$oft can add more and more of these new "pages" with new releases of office. i hope this was useful :-) best regards, miroslav sorry, i forgot to mention. the sample word file you requested (sample.doc) is included in the first of the two attachments. mickey oh, i'm the most boring man today... i tried to download attachments, but i guess you must know which type of binary files is in it to properly download and save the file. the first attachment should be saved as .zip (created win WinZip 8.1) the second attachment should be saved as .jar i hope this is the last one :-) bye, m The current CVS HEAD can process your sample application without any flaws. I suggest an upgrade. |