public class PdfCollectionSort extends PdfDictionary
Constructor | Description |
---|---|
PdfCollectionSort(String key) |
Constructs a PDF Collection Sort Dictionary.
|
PdfCollectionSort(String[] keys) |
Constructs a PDF Collection Sort Dictionary.
|
Modifier and Type | Method | 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).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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 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 © 2018. All rights reserved.