com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class ContentsAppender



  • 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 Detail

      • ContentsAppender

        public ContentsAppender(Page page)

        Initializez new instance of the contents appender with page attached

        Parameters:
        page - Page object
      • ContentsAppender

        public ContentsAppender(XForm form)

        Initializes new instanse of the contets appender with Form XObject.

        Parameters:
        form - XForm object
    • Method Detail

      • getBeginOperators

        public com.aspose.ms.System.Collections.Generic.List<Operator> getBeginOperators()

        returns begin operators

        Returns:
        List<Operator> object
      • getBeginCode

        public String getBeginCode()
        String containing operators to insert into start of page.
        Returns:
        String object
      • setBeginCode

        public void setBeginCode(String value)
        String containing operators to insert into start of page.
        Parameters:
        value - String object
      • getEndCode

        public String getEndCode()
        Stirng containing operators to append to the end of page.
        Returns:
        String object
      • setEndCode

        public void setEndCode(String value)
        String containing operators to insert into start of page.
        Parameters:
        value - String object
      • getEndOperators

        public com.aspose.ms.System.Collections.Generic.List<Operator> getEndOperators()

        returns end operators

        Returns:
        List<Operator> object
      • appendToEnd

        public void appendToEnd(Operator op)

        Appends operator to the begin of the contents

        Parameters:
        op - Operator object
      • appendToEnd

        public void appendToEnd(Operator[] operators)

        Appends operators to the begin of the contents

        Parameters:
        operators - Operators array
      • appendToEnd

        public void appendToEnd(com.aspose.ms.System.Collections.Generic.List<Operator> operators)

        Appends operators to the begin of the contents

        Parameters:
        operators - List<Operator> object
      • appendToBegin

        public void appendToBegin(Operator op)

        Appends operator to the end of the contents

        Parameters:
        op - Operator object
      • appendToBegin

        public void appendToBegin(Operator[] operators)

        Appends operators to the end of the contents

        Parameters:
        operators - Operators array
      • appendToBegin

        public void appendToBegin(com.aspose.ms.System.Collections.Generic.List<Operator> operators)

        Appends operators to the end of the contents

        Parameters:
        operators - List<Operator> 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