Class PdfCollectionSort

    • Constructor Detail

      • PdfCollectionSort

        public PdfCollectionSort​(java.lang.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​(java.lang.String[] keys)
        Constructs a PDF Collection Sort Dictionary.
        Parameters:
        keys - the keys of the fields that will be used to sort entries
    • Method Detail

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