public class PdfFileSpec extends PdfObjectWrapper<PdfObject>
| Modifier | Constructor and Description |
|---|---|
protected |
PdfFileSpec(PdfObject pdfObject) |
| Modifier and Type | Method and Description |
|---|---|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
byte[] fileStore,
String fileDisplay,
PdfDictionary fileParameter,
PdfName afRelationshipValue)
Embed a file to a PdfDocument.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
byte[] fileStore,
String fileDisplay,
PdfName afRelationshipValue)
Embed a file to a PdfDocument.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
byte[] fileStore,
String description,
String fileDisplay,
PdfDictionary fileParameter,
PdfName afRelationshipValue)
Embed a file to a PdfDocument.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
byte[] fileStore,
String description,
String fileDisplay,
PdfName afRelationshipValue)
Embed a file to a PdfDocument.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
byte[] fileStore,
String description,
String fileDisplay,
PdfName mimeType,
PdfDictionary fileParameter,
PdfName afRelationshipValue)
Embed a file to a PdfDocument.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
InputStream is,
String description,
String fileDisplay,
PdfName mimeType,
PdfDictionary fileParameter,
PdfName afRelationshipValue)
Embed a file to a PdfDocument.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
InputStream is,
String description,
String fileDisplay,
PdfName mimeType,
PdfName afRelationshipValue)
Embed a file to a PdfDocument.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
String filePath,
String fileDisplay,
PdfName afRelationshipValue)
Embed a file to a PdfDocument.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
String filePath,
String description,
String fileDisplay,
PdfName afRelationshipValue)
Embed a file to a PdfDocument.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
String filePath,
String description,
String fileDisplay,
PdfName mimeType,
PdfDictionary fileParameter,
PdfName afRelationshipValue)
Embed a file to a PdfDocument.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
String filePath,
String description,
String fileDisplay,
PdfName mimeType,
PdfName afRelationshipValue)
Embed a file to a PdfDocument.
|
static PdfFileSpec |
createExternalFileSpec(PdfDocument doc,
String filePath) |
static PdfFileSpec |
createExternalFileSpec(PdfDocument doc,
String filePath,
PdfName afRelationshipValue) |
PdfArray |
getFileIdentifier() |
PdfImageXObject |
getThumbnailImage()
PDF 2.0.
|
PdfBoolean |
isVolatile() |
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the
resultant document.
|
PdfFileSpec |
put(PdfName key,
PdfObject value) |
PdfFileSpec |
setCollectionItem(PdfCollectionItem item) |
PdfFileSpec |
setFileIdentifier(PdfArray fileIdentifier) |
PdfFileSpec |
setThumbnailImage(PdfImageXObject thumbnailImage)
PDF 2.0.
|
PdfFileSpec |
setVolatile(PdfBoolean isVolatile) |
static PdfFileSpec |
wrapFileSpecObject(PdfObject fileSpecObject) |
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleaseprotected PdfFileSpec(PdfObject pdfObject)
public static PdfFileSpec wrapFileSpecObject(PdfObject fileSpecObject)
public static PdfFileSpec createExternalFileSpec(PdfDocument doc, String filePath, PdfName afRelationshipValue)
public static PdfFileSpec createExternalFileSpec(PdfDocument doc, String filePath)
public static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, byte[] fileStore, String description, String fileDisplay, PdfName mimeType, PdfDictionary fileParameter, PdfName afRelationshipValue)
doc - PdfDocument to add the file tofileStore - byte[] containing the filedescription - file descriptionfileDisplay - actual file name stored in the pdfmimeType - mime-type of the filefileParameter - Pdfdictionary containing fil parametersafRelationshipValue - AFRelationship key value, @see AFRelationshipValue. If null, @see AFRelationshipValue.Unspecified will be added.public static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, byte[] fileStore, String description, String fileDisplay, PdfDictionary fileParameter, PdfName afRelationshipValue)
doc - PdfDocument to add the file tofileStore - byte[] containing the filefileDisplay - actual file name stored in the pdffileParameter - Pdfdictionary containing fil parametersafRelationshipValue - AFRelationship key value, @see AFRelationshipValue. If null, @see AFRelationshipValue.Unspecified will be added.public static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, byte[] fileStore, String fileDisplay, PdfDictionary fileParameter, PdfName afRelationshipValue)
doc - PdfDocument to add the file tofileStore - byte[] containing the filefileDisplay - actual file name stored in the pdffileParameter - Pdfdictionary containing fil parametersafRelationshipValue - AFRelationship key value, @see AFRelationshipValue. If null, @see AFRelationshipValue.Unspecified will be added.public static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, byte[] fileStore, String fileDisplay, PdfName afRelationshipValue)
doc - PdfDocument to add the file tofileStore - byte[] containing the filefileDisplay - actual file name stored in the pdfafRelationshipValue - AFRelationship key value, @see AFRelationshipValue. If null, @see AFRelationshipValue.Unspecified will be added.public static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, byte[] fileStore, String description, String fileDisplay, PdfName afRelationshipValue)
doc - PdfDocument to add the file tofileStore - byte[] containing the filedescription - file descriptionfileDisplay - actual file name stored in the pdfafRelationshipValue - AFRelationship key value, @see AFRelationshipValue. If null, @see AFRelationshipValue.Unspecified will be added.public static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, String filePath, String description, String fileDisplay, PdfName mimeType, PdfDictionary fileParameter, PdfName afRelationshipValue) throws IOException
doc - filePath - description - fileDisplay - mimeType - fileParameter - afRelationshipValue - IOExceptionpublic static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, String filePath, String description, String fileDisplay, PdfName mimeType, PdfName afRelationshipValue) throws IOException
doc - filePath - description - fileDisplay - mimeType - afRelationshipValue - IOExceptionpublic static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, String filePath, String description, String fileDisplay, PdfName afRelationshipValue) throws IOException
doc - filePath - description - fileDisplay - afRelationshipValue - IOExceptionpublic static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, String filePath, String fileDisplay, PdfName afRelationshipValue) throws IOException
doc - filePath - fileDisplay - afRelationshipValue - IOExceptionpublic static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, InputStream is, String description, String fileDisplay, PdfName mimeType, PdfDictionary fileParameter, PdfName afRelationshipValue)
doc - is - description - fileDisplay - mimeType - fileParameter - afRelationshipValue - public static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, InputStream is, String description, String fileDisplay, PdfName mimeType, PdfName afRelationshipValue)
doc - is - description - fileDisplay - mimeType - afRelationshipValue - public PdfFileSpec setFileIdentifier(PdfArray fileIdentifier)
public PdfArray getFileIdentifier()
public PdfFileSpec setVolatile(PdfBoolean isVolatile)
public PdfBoolean isVolatile()
public PdfFileSpec setCollectionItem(PdfCollectionItem item)
public PdfFileSpec setThumbnailImage(PdfImageXObject thumbnailImage)
thumbnailImage - image used as a thumbnailPdfFileSpec instancepublic PdfImageXObject getThumbnailImage()
null if it is not setpublic PdfFileSpec put(PdfName key, PdfObject value)
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapperisWrappedObjectMustBeIndirect in class PdfObjectWrapper<PdfObject>Copyright © 1998–2020 iText Group NV. All rights reserved.