public class PdfCollection extends PdfObjectWrapper<PdfDictionary>
Modifier and Type | Field and Description |
---|---|
static int |
DETAILS
A type of initial view
|
static int |
HIDDEN
A type of initial view
|
static int |
TILE
A type of initial view
|
Constructor and Description |
---|
PdfCollection()
Constructs a PDF Collection.
|
PdfCollection(PdfDictionary pdfObject) |
Modifier and Type | Method and Description |
---|---|
PdfString |
getInitialDocument() |
PdfCollectionSchema |
getSchema() |
PdfCollectionSort |
getSort() |
PdfNumber |
getView()
Deprecated.
Will always return null. The return will be changed to PdfName in 7.2. Use
getPdfObject().getAsName(PdfName.View) , or one of isViewDetails() , isViewTile() , isViewHidden() .
|
boolean |
isViewDetails() |
boolean |
isViewHidden() |
boolean |
isViewTile() |
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.
|
PdfCollection |
setInitialDocument(String documentName)
Identifies the document that will be initially presented in the user interface.
|
PdfCollection |
setSchema(PdfCollectionSchema schema)
Sets the Collection schema dictionary.
|
PdfCollection |
setSort(PdfCollectionSort sort)
Sets the Collection sort dictionary.
|
PdfCollection |
setView(int viewType)
Sets the initial view.
|
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public static final int DETAILS
public static final int TILE
public static final int HIDDEN
public PdfCollection(PdfDictionary pdfObject)
public PdfCollection()
public PdfCollection setSchema(PdfCollectionSchema schema)
schema
- an overview of the collection fields
public PdfCollectionSchema getSchema()
public PdfCollection setInitialDocument(String documentName)
documentName
- a string that identifies an entry in the EmbeddedFiles name tree
public PdfString getInitialDocument()
public PdfCollection setView(int viewType)
viewType
-
@Deprecated public PdfNumber getView()
getPdfObject().getAsName(PdfName.View)
, or one of isViewDetails()
, isViewTile()
, isViewHidden()
.
public boolean isViewDetails()
public boolean isViewTile()
public boolean isViewHidden()
public PdfCollection setSort(PdfCollectionSort sort)
sort
-
public PdfCollectionSort getSort()
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfDictionary>
Copyright © 1998–2018 iText Group NV. All rights reserved.