Class Group


public class Group extends Element
A set of elements to be used within a PDF document. A Group represents objects in a content object, but it resides in memory.

Therefore the group has no state and is not represented in any way in a PDF content stream. When used in a Clip, a group is used to associate Text objects into a single clipping object.

  • Constructor Details

    • Group

      public Group()
      Create a new Group.

    • Group

      public Group(Content content)
      Create a Group with the given Content.

      Parameters:
      content - The new Content of the group.
  • Method Details

    • delete

      public void delete()
      Overrides:
      delete in class Element
    • setContent

      public void setContent(Content content)
      Set the content of a Group.

      Parameters:
      content - The new Content of the group.
    • getContent

      public Content getContent()
      Obtain the content of a Group.

    • clone

      public Group clone()
      Makes a copy of the group.

      Make a copy of an group to obtain a new group that has a distinct set of attributes.

      Overrides:
      clone in class Element
      Returns:
      The copied group.
    • clone

      public Group clone(EnumSet<ElementCloneFlags> cloneFlags)
      Makes a copy of the group.

      Make a copy of an group to obtain a new group that has a distinct set of attributes.

      Overrides:
      clone in class Element
      Parameters:
      cloneFlags - Flags that modify the cloning operation.
      Returns:
      The copied group.
    • colorConvert

      public Group colorConvert(Document document, ColorProfile prof, RenderIntent intent, boolean embed)
      Applies the specified ICC ColorProfile to the elements in the Group object

      Parameters:
      document - The document the element belongs to.
      prof - The ICC ColorProfile to be applied.
      intent - The ICC Rendering Intent for the ColorProfile
      embed - If true, embed the color space and make the object calibrated. If it is false and the target profile is CMYK, RGB, or Gray, the colors space of the resulting objects, after conversion, will be DeviceCMYK, DeviceRGB, or DeviceGray, respectively.
      Returns:
      A new Group object with the applied ICC ColorProfile.