boolean isContent = false;
if ((text == null) || (type == null)) {
throw new IllegalArgumentException(PARAMETER);
}
String docContent = null;
final TextSearcher textsearcher = type.getSearcher();
final int pageCount = pdDocument.getNumberOfPages();
List pages = new ArrayList();
for (int i = 1; i <= pageCount; i++) {
docContent = this.getContentOnPage(i);
isContent = textsearcher.isTextContent(text, docContent);
if (isContent) {
pages.add(new Integer(i));
}
}
return pages;