Skip to content

Instantly share code, notes, and snippets.

@kenmlee
Created June 13, 2019 06:16
Show Gist options
  • Save kenmlee/a3110c89497f59f9a5a6a531c6ae502e to your computer and use it in GitHub Desktop.
Save kenmlee/a3110c89497f59f9a5a6a531c6ae502e to your computer and use it in GitHub Desktop.
public List<Picture> getAllPictures() {
ArrayList<Picture> pictures = new ArrayList<Picture>();
Range range = _document.getOverallRange();
for (int i = 0; i < range.numCharacterRuns(); i++) {
CharacterRun run = range.getCharacterRun(i);
if (run==null) {
continue;
}
Picture picture = extractPicture(run, false);
if (picture != null) {
pictures.add(picture);
}
}
searchForPictures(_dgg.getEscherRecords(), pictures);
return pictures;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment