Interface IPLRenderableObject<IMPLTYPE extends IPLRenderableObject<IMPLTYPE>>

    • Method Detail

      • isPrepared

        boolean isPrepared()
        Returns:
        true if this object was already prepared, false otherwise.
      • getPreparedSize

        @Nullable
        SizeSpec getPreparedSize()
        Get the prepared size of the object. This is the minimum space the content of the object needs given the available size constraints. This does NOT consider min- and max-size.
        Returns:
        The prepared size or null if this object was not yet prepared.
        See Also:
        isPrepared()
      • getPreparedWidth

        default float getPreparedWidth()
        Returns:
        The prepared width.
        See Also:
        getPreparedSize()
      • getPreparedHeight

        default float getPreparedHeight()
        Returns:
        The prepared height.
        See Also:
        getPreparedSize()
      • getRenderSize

        @Nullable
        SizeSpec getRenderSize()
        Returns:
        The render size or null if this object was not yet prepared. The render size includes the min/max size.
        See Also:
        isPrepared()
      • getRenderWidth

        default float getRenderWidth()
      • getRenderHeight

        default float getRenderHeight()
      • beforeRender

        @Nonnull
        default com.helger.commons.state.EChange beforeRender​(@Nonnull
                                                              PagePreRenderContext aCtx)
                                                       throws IOException
        Called after the page was created but before the content stream is created. This is e.g. used for images to create their XObjects upfront.
        Parameters:
        aCtx - The current page render context. Never null.
        Returns:
        EChange.CHANGED if something changed. May not be null.
        Throws:
        IOException - In case of a PDFBox error