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, toString
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
public PdfCollectionSort(String key)
key
- the key of the field that will be used to sort entries
public PdfCollectionSort(String[] keys)
keys
- the keys of the fields that will be used to sort entries
public void setSortOrder(boolean ascending)
ascending
- true is the default, use false for descending order
public void setSortOrder(boolean[] ascending)
ascending
- an array with every element corresponding with a name of a field.
Copyright © 1998–2024. All rights reserved.