Constructor and Description |
---|
SearchAction(IPdfObjectPredicate predicate)
Creates a new instance of searching action.
|
Modifier and Type | Method and Description |
---|---|
List |
getFoundObjects()
Retrieves objects found in structure of some PdfDocument with use of DocumentStructureUtils.traverse(PdfDocument, IAction) .
|
void |
processIndirectObjectDefinition(com.itextpdf.kernel.pdf.PdfObject object)
Evaluates this predicate on the given indirect PdfObject definition and adds it to search results if object matches the condition.
|
com.itextpdf.kernel.pdf.PdfObject |
processObject(com.itextpdf.kernel.pdf.PdfObject object)
Evaluates this predicate on the given PdfObject and adds it to search results if object matches the condition.
|
public SearchAction(IPdfObjectPredicate predicate)
predicate
- is a criteria for search
public ListgetFoundObjects()
PdfDocument
with use of DocumentStructureUtils.traverse(PdfDocument, IAction)
.
public void processIndirectObjectDefinition(com.itextpdf.kernel.pdf.PdfObject object)
PdfObject
definition and adds it to search results if object matches the condition.
processIndirectObjectDefinition
in interface IAction
object
- is an indirect object to process
public com.itextpdf.kernel.pdf.PdfObject processObject(com.itextpdf.kernel.pdf.PdfObject object)
PdfObject
and adds it to search results if object matches the condition.
processObject
in interface IAction
object
- is an direct object to process
Copyright © 1998–2022 iText Group NV. All rights reserved.