ContentsAppender
Inheritance: java.lang.Object
public class ContentsAppender
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
Constructors
Constructor | 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. |
Methods
Method | Description |
---|---|
getBeginOperators() | returns begin operators |
getBeginCode() | String containing operators to insert into start of page. |
setBeginCode(String value) | String containing operators to insert into start of page. |
getEndCode() | Stirng containing operators to append to the end of page. |
setEndCode(String value) | String containing operators to insert into start of page. |
getEndOperators() | returns end operators |
appendToEnd(Operator op) | Appends operator to the begin of the contents |
appendToEnd(Operator[] operators) | Appends operators to the begin of the contents |
appendToEnd(System.Collections.Generic.List | Appends operators to the begin of the contents |
appendToBegin(Operator op) | Appends operator to the end of the contents |
appendToBegin(Operator[] operators) | Appends operators to the end of the contents |
appendToBegin(System.Collections.Generic.List | Appends operators to the end of the contents |
suppressUpdate() | Suppresses update contents data The contents is not updated until ResumeUpdate is called |
resumeUpdate() | resumes document update |
updateData() | this is new version of UpdateData, which avoid decoding of the existing contents. |
updateDataOld() | Must be called to apply the changes |
ContentsAppender(Page page)
public ContentsAppender(Page page)
Initializez new instance of the contents appender with page attached
Parameters:
Parameter | Type | Description |
---|---|---|
page | Page | Page object |
ContentsAppender(XForm form)
public ContentsAppender(XForm form)
Initializes new instanse of the contets appender with Form XObject.
Parameters:
Parameter | Type | Description |
---|---|---|
form | XForm | XForm object |
getBeginOperators()
public System.Collections.Generic.List<Operator> getBeginOperators()
returns begin operators
Returns: com.aspose.ms.System.Collections.Generic.List<com.aspose.pdf.Operator> - List object
getBeginCode()
public String getBeginCode()
String containing operators to insert into start of page.
Returns: java.lang.String - String object
setBeginCode(String value)
public void setBeginCode(String value)
String containing operators to insert into start of page.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | String object |
getEndCode()
public String getEndCode()
Stirng containing operators to append to the end of page.
Returns: java.lang.String - String object
setEndCode(String value)
public void setEndCode(String value)
String containing operators to insert into start of page.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | String object |
getEndOperators()
public System.Collections.Generic.List<Operator> getEndOperators()
returns end operators
Returns: com.aspose.ms.System.Collections.Generic.List<com.aspose.pdf.Operator> - List object
appendToEnd(Operator op)
public void appendToEnd(Operator op)
Appends operator to the begin of the contents
Parameters:
Parameter | Type | Description |
---|---|---|
op | Operator | Operator object |
appendToEnd(Operator[] operators)
public void appendToEnd(Operator[] operators)
Appends operators to the begin of the contents
Parameters:
Parameter | Type | Description |
---|---|---|
operators | Operator[] | Operators array |
appendToEnd(System.Collections.Generic.List operators)
public void appendToEnd(System.Collections.Generic.List<Operator> operators)
Appends operators to the begin of the contents
Parameters:
Parameter | Type | Description |
---|---|---|
operators | com.aspose.ms.System.Collections.Generic.List<com.aspose.pdf.Operator> | List object |
appendToBegin(Operator op)
public void appendToBegin(Operator op)
Appends operator to the end of the contents
Parameters:
Parameter | Type | Description |
---|---|---|
op | Operator | Operator object |
appendToBegin(Operator[] operators)
public void appendToBegin(Operator[] operators)
Appends operators to the end of the contents
Parameters:
Parameter | Type | Description |
---|---|---|
operators | Operator[] | Operators array |
appendToBegin(System.Collections.Generic.List operators)
public void appendToBegin(System.Collections.Generic.List<Operator> operators)
Appends operators to the end of the contents
Parameters:
Parameter | Type | Description |
---|---|---|
operators | com.aspose.ms.System.Collections.Generic.List<com.aspose.pdf.Operator> | List object |
suppressUpdate()
public void suppressUpdate()
Suppresses update contents data The contents is not updated until ResumeUpdate is called
resumeUpdate()
public void resumeUpdate()
resumes document update
updateData()
public void updateData()
this is new version of UpdateData, which avoid decoding of the existing contents.
updateDataOld()
public void updateDataOld()
Must be called to apply the changes