Constructor and Description |
---|
ReplaceObjectsAction(Map
Performs objects replacement according to a provided schema.
|
Modifier and Type | Method and Description |
---|---|
void |
processIndirectObjectDefinition(com.itextpdf.kernel.pdf.PdfObject object)
Does nothing as indirect object cannot be replaced.
|
com.itextpdf.kernel.pdf.PdfObject |
processObject(com.itextpdf.kernel.pdf.PdfObject object)
Replaces object if necessary according to the provided schema.
|
public ReplaceObjectsAction(Mapschema)
PdfObject
to be replaced is identified by Object.equals(Object)
method. Depending on the class implementation it might comparing by content or by reference. schema
- is a schema of replacement. It is a map where a key stands for the object to be replaced and the value stands for the object to replace.
public void processIndirectObjectDefinition(com.itextpdf.kernel.pdf.PdfObject object)
PdfDocument.isFlushUnusedObjects()
is set to false).
processIndirectObjectDefinition
in interface IAction
object
- is an indirect object definition to process
public com.itextpdf.kernel.pdf.PdfObject processObject(com.itextpdf.kernel.pdf.PdfObject object)
processObject
in interface IAction
object
- is a current PdfObject
Copyright © 1998–2020 iText Group NV. All rights reserved.