public class ContentsAppender extends Object
Performs contents modifications in APPEND mode only. this mode allows to avoid unneeded and heavy contents parsing before some change is made to the contents. It only appends new operators to the end or to the begin of the contents
Constructor and Description |
---|
ContentsAppender(Page page)
Initializez new instance of the contents appender with page attached
|
ContentsAppender(XForm form)
Initializes new instanse of the contets appender with Form XObject.
|
Modifier and Type | Method and Description |
---|---|
void |
appendToBegin(com.aspose.ms.System.Collections.Generic.List<Operator> operators)
Appends operators to the end of the contents
|
void |
appendToBegin(Operator op)
Appends operator to the end of the contents
|
void |
appendToBegin(Operator[] operators)
Appends operators to the end of the contents
|
void |
appendToEnd(com.aspose.ms.System.Collections.Generic.List<Operator> operators)
Appends operators to the begin of the contents
|
void |
appendToEnd(Operator op)
Appends operator to the begin of the contents
|
void |
appendToEnd(Operator[] operators)
Appends operators to the begin of the contents
|
String |
getBeginCode()
String containing operators to insert into start of page.
|
com.aspose.ms.System.Collections.Generic.List<Operator> |
getBeginOperators()
returns begin operators
|
String |
getEndCode()
Stirng containing operators to append to the end of page.
|
com.aspose.ms.System.Collections.Generic.List<Operator> |
getEndOperators()
returns end operators
|
void |
resumeUpdate()
resumes document update
|
void |
setBeginCode(String value)
String containing operators to insert into start of page.
|
void |
setEndCode(String value)
String containing operators to insert into start of page.
|
void |
suppressUpdate()
Suppresses update contents data
The contents is not updated until ResumeUpdate is called
|
void |
updateData()
this is new version of UpdateData, which avoid decoding of the existing contents.
|
void |
updateDataOld()
Must be called to apply the changes
|
public ContentsAppender(Page page)
Initializez new instance of the contents appender with page attached
page
- Page objectpublic ContentsAppender(XForm form)
Initializes new instanse of the contets appender with Form XObject.
form
- XForm objectpublic com.aspose.ms.System.Collections.Generic.List<Operator> getBeginOperators()
returns begin operators
List<Operator>
objectpublic String getBeginCode()
public void setBeginCode(String value)
value
- String objectpublic String getEndCode()
public void setEndCode(String value)
value
- String objectpublic com.aspose.ms.System.Collections.Generic.List<Operator> getEndOperators()
returns end operators
List<Operator>
objectpublic void appendToEnd(Operator op)
Appends operator to the begin of the contents
op
- Operator objectpublic void appendToEnd(Operator[] operators)
Appends operators to the begin of the contents
operators
- Operators arraypublic void appendToEnd(com.aspose.ms.System.Collections.Generic.List<Operator> operators)
Appends operators to the begin of the contents
operators
- List<Operator>
objectpublic void appendToBegin(Operator op)
Appends operator to the end of the contents
op
- Operator objectpublic void appendToBegin(Operator[] operators)
Appends operators to the end of the contents
operators
- Operators arraypublic void appendToBegin(com.aspose.ms.System.Collections.Generic.List<Operator> operators)
Appends operators to the end of the contents
operators
- List<Operator>
objectpublic void suppressUpdate()
public void resumeUpdate()
public void updateData()
public void updateDataOld()
Must be called to apply the changes