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

ConstructorDescription
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

MethodDescription
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 operators)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 operators)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:

ParameterTypeDescription
pagePagePage object

ContentsAppender(XForm form)

public ContentsAppender(XForm form)

Initializes new instanse of the contets appender with Form XObject.

Parameters:

ParameterTypeDescription
formXFormXForm 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:

ParameterTypeDescription
valuejava.lang.StringString 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:

ParameterTypeDescription
valuejava.lang.StringString 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:

ParameterTypeDescription
opOperatorOperator object

appendToEnd(Operator[] operators)

public void appendToEnd(Operator[] operators)

Appends operators to the begin of the contents

Parameters:

ParameterTypeDescription
operatorsOperator[]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:

ParameterTypeDescription
operatorscom.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:

ParameterTypeDescription
opOperatorOperator object

appendToBegin(Operator[] operators)

public void appendToBegin(Operator[] operators)

Appends operators to the end of the contents

Parameters:

ParameterTypeDescription
operatorsOperator[]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:

ParameterTypeDescription
operatorscom.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