public class PdfCollectionSort extends PdfDictionary
| Constructor and Description |
|---|
PdfCollectionSort(String key)
Constructs a PDF Collection Sort Dictionary.
|
PdfCollectionSort(String[] keys)
Constructs a PDF Collection Sort Dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setSortOrder(boolean ascending)
Defines the sort order of the field (ascending or descending).
|
void |
setSortOrder(boolean[] ascending)
Defines the sort order of the field (ascending or descending).
|
checkType, clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toStringcanBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, typepublic PdfCollectionSort(String key)
key - the key of the field that will be used to sort entriespublic PdfCollectionSort(String[] keys)
keys - the keys of the fields that will be used to sort entriespublic void setSortOrder(boolean ascending)
ascending - true is the default, use false for descending orderpublic void setSortOrder(boolean[] ascending)
ascending - an array with every element corresponding with a name of a field.Copyright © 2020. All rights reserved.