Created
June 13, 2019 06:16
-
-
Save kenmlee/a3110c89497f59f9a5a6a531c6ae502e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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