Interface LargeElement

  • All Superinterfaces:
    Element
    All Known Implementing Classes:
    Chapter, ChapterAutoNumber, PdfPTable, Section

    public interface LargeElement
    extends Element
    Interface implemented by Element objects that can potentially consume a lot of memory. Objects implementing the LargeElement interface can be added to a Document more than once. If you have invoked setComplete(false), they will be added partially and the content that was added will be removed until you've invoked setComplete(true);
    Since:
    iText 2.0.8
    • Method Detail

      • setComplete

        void setComplete​(boolean complete)
        If you invoke setComplete(false), you indicate that the content of the object isn't complete yet; it can be added to the document partially, but more will follow. If you invoke setComplete(true), you indicate that you won't add any more data to the object.
        Parameters:
        complete - false if you'll be adding more data after adding the object to the document.
        Since:
        iText 2.0.8
      • isComplete

        boolean isComplete()
        Indicates if the element is complete or not.
        Returns:
        indicates if the element is complete according to the user.
        Since:
        iText 2.0.8
      • flushContent

        void flushContent()
        Flushes the content that has been added.