|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.pdf.collections.PdfCollection
public class PdfCollection
A collection specifies the viewing and organizational characteristics of portable collections.The intent of portable collections is to present, sort, and search collections of related document,such as email archives, photo collections, and engineering bidsets.
| Nested Class Summary | |
|---|---|
static class |
PdfCollection.CustomFieldType
Custom field type. |
static class |
PdfCollection.FileRelatedFieldType
File related field Type. |
| Method Summary | |
|---|---|
void |
addAttachment(PdfAttachment attachment)
Add an attachment. |
void |
addCustomField(java.lang.String fieldName,
java.lang.String displayText,
PdfCollection.CustomFieldType fieldType)
Add a custom field. |
void |
addFile(java.lang.String filePath)
Add a local file. |
void |
addFile(java.lang.String fileName,
java.io.InputStream stream)
Add a stream. |
void |
addFileRelatedField(java.lang.String fieldName,
java.lang.String displayText,
PdfCollection.FileRelatedFieldType fieldType)
Add a file related field. |
void |
clear()
Clear all files and folders. |
java.util.List<PdfAttachment> |
getAssociatedFiles()
Get the document collection associated files |
java.util.List |
getFieldNames()
Get the document collection associated field names |
PdfFolder |
getFolders()
|
void |
sort(java.lang.String[] fieldNames,
boolean[] order)
Sort embedded files with field names. |
| Method Detail |
|---|
public PdfFolder getFolders()
public java.util.List<PdfAttachment> getAssociatedFiles()
public java.util.List getFieldNames()
public void addFile(java.lang.String filePath)
filePath - The local file path.
public void addFile(java.lang.String fileName,
java.io.InputStream stream)
fileName - The file name of the stream.stream - The stream.public void addAttachment(PdfAttachment attachment)
attachment - The attachment.
public void addCustomField(java.lang.String fieldName,
java.lang.String displayText,
PdfCollection.CustomFieldType fieldType)
fieldName - Custom field name.displayText - Custom field display name.fieldType - Custom field type.
public void addFileRelatedField(java.lang.String fieldName,
java.lang.String displayText,
PdfCollection.FileRelatedFieldType fieldType)
fieldName - File related field name.displayText - File related field display name.fieldType - File related field type.
public void sort(java.lang.String[] fieldNames,
boolean[] order)
fieldNames - The names of fields that the PDF viewer application uses to sort the items in the collection.order - Specifies whether the items in the collection are sorted in ascending order.public void clear()
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||