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()
Retrieves the document that will be initially presented in the user interface.
|
PdfCollectionSchema |
getSchema()
Gets the Collection schema dictionary.
|
PdfCollectionSort |
getSort()
Getter for the Collection sort dictionary.
|
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()
Check if view is in details mode.
|
boolean |
isViewHidden()
Check if view is hidden.
|
boolean |
isViewTile()
Check if view is in tile mode.
|
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
- is a type of view
@Deprecated public PdfNumber getView()
getPdfObject().getAsName(PdfName.View)
, or one of isViewDetails()
, isViewTile()
, isViewHidden()
.
pdf number
.
public boolean isViewDetails()
public boolean isViewTile()
public boolean isViewHidden()
public PdfCollection setSort(PdfCollectionSort sort)
sort
- is the Collection sort dictionary
public PdfCollectionSort getSort()
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfDictionary>
Copyright © 1998–2023 iText Group NV. All rights reserved.