Class PdfCollectionSort


public class PdfCollectionSort extends PdfDictionary
  • Constructor Details

    • PdfCollectionSort

      public PdfCollectionSort(String key)
      Constructs a PDF Collection Sort Dictionary.
      Parameters:
      key - the key of the field that will be used to sort entries
    • PdfCollectionSort

      public PdfCollectionSort(String[] keys)
      Constructs a PDF Collection Sort Dictionary.
      Parameters:
      keys - the keys of the fields that will be used to sort entries
  • Method Details

    • setSortOrder

      public void setSortOrder(boolean ascending)
      Defines the sort order of the field (ascending or descending).
      Parameters:
      ascending - true is the default, use false for descending order
    • setSortOrder

      public void setSortOrder(boolean[] ascending)
      Defines the sort order of the field (ascending or descending).
      Parameters:
      ascending - an array with every element corresponding with a name of a field.