<changes>
<release version="3.5-beta7" date="2009-??-??">
+ <action dev="POI-DEVELOPERS" type="fix">47773 - Support for extraction of header / footer images in HWPF</action>
<action dev="POI-DEVELOPERS" type="fix">moved all test data to a top-level directory</action>
<action dev="POI-DEVELOPERS" type="add">47721 - Added implementation for INDIRECT()</action>
<action dev="POI-DEVELOPERS" type="add">45583 - Avoid exception when reading ClipboardData packet in OLE property sets</action>
public List getAllPictures() {
ArrayList pictures = new ArrayList();
- Range range = _document.getRange();
+ Range range = _document.getOverallRange();
for (int i = 0; i < range.numCharacterRuns(); i++) {
CharacterRun run = range.getCharacterRun(i);
String text = run.text();
List pics = doc.getPicturesTable().getAllPictures();
assertEquals(pics.size(), 2);
}
+
+ public void testPicturesInHeader() {
+ HWPFDocument doc = HWPFTestDataSamples.openSampleFile("header_image.doc");
+
+ List pics = doc.getPicturesTable().getAllPictures();
+ assertEquals(pics.size(), 2);
+ }
+
}