public class PdfCollectionSort extends PdfObjectWrapper<PdfDictionary>
Constructor and Description |
---|
PdfCollectionSort(PdfDictionary pdfObject) |
PdfCollectionSort(String key)
Constructs a PDF Collection Sort Dictionary.
|
PdfCollectionSort(String[] keys)
Constructs a PDF Collection Sort Dictionary.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.
|
PdfCollectionSort |
setSortOrder(boolean ascending)
Defines the sort order of the field (ascending or descending).
|
PdfCollectionSort |
setSortOrder(boolean[] ascending)
Defines the sort order of the field (ascending or descending).
|
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfCollectionSort(PdfDictionary pdfObject)
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 PdfCollectionSort setSortOrder(boolean ascending)
ascending
- true is the default, use false for descending order
public PdfCollectionSort setSortOrder(boolean[] ascending)
ascending
- an array with every element corresponding with a name of a field.
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfDictionary>
Copyright © 1998–2018 iText Group NV. All rights reserved.