HI,
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(“source.pdf”);// Create TextAbsorber object to find all instances of the input search phrase
com.aspose.pdf.TextFragmentAbsorber textFragmentAbsorber = new com.aspose.pdf.TextFragmentAbsorber(“sample”);// Accept the absorber for first page of document
pdfDocument.getPages().accept(textFragmentAbsorber); // PROBLEM IS HERE.
//pdfDocument does not contain the method getPages(). I could get IntelliJ to auto fill the method