// placed or referenced from an anchor
PicturesTable pictureTable = document.getPicturesTable();
PicturesSource pictures = new PicturesSource(document);
// Do the main paragraph text
Range r = document.getRange();
for(int i=0; i<r.numParagraphs(); i++) {
Paragraph p = r.getParagraph(i);
i += handleParagraph(p, 0, r, document, pictures, pictureTable, xhtml);
}
// Do everything else
for (String paragraph : wordExtractor.getFootnoteText()) {