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)
Create an embedded file specification.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
byte[] fileStore,
String fileDisplay,
PdfName afRelationshipValue)
Create an embedded file specification.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
byte[] fileStore,
String description,
String fileDisplay,
PdfDictionary fileParameter,
PdfName afRelationshipValue)
Create an embedded file specification.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
byte[] fileStore,
String description,
String fileDisplay,
PdfName afRelationshipValue)
Create an embedded file specification.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
byte[] fileStore,
String description,
String fileDisplay,
PdfName mimeType,
PdfDictionary fileParameter,
PdfName afRelationshipValue)
Create an embedded file specification.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
InputStream is,
String description,
String fileDisplay,
PdfName mimeType,
PdfDictionary fileParameter,
PdfName afRelationshipValue)
Create an embedded file specification.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
InputStream is,
String description,
String fileDisplay,
PdfName mimeType,
PdfName afRelationshipValue)
Create an embedded file specification.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
String filePath,
String fileDisplay,
PdfName afRelationshipValue)
Create an embedded file specification.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
String filePath,
String description,
String fileDisplay,
PdfName afRelationshipValue)
Create an embedded file specification.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
String filePath,
String description,
String fileDisplay,
PdfName mimeType,
PdfDictionary fileParameter,
PdfName afRelationshipValue)
Create an embedded file specification.
|
static PdfFileSpec |
createEmbeddedFileSpec(PdfDocument doc,
String filePath,
String description,
String fileDisplay,
PdfName mimeType,
PdfName afRelationshipValue)
Create an embedded file specification.
|
static PdfFileSpec |
createExternalFileSpec(PdfDocument doc,
String filePath)
Create an external file specification.
|
static PdfFileSpec |
createExternalFileSpec(PdfDocument doc,
String filePath,
PdfName afRelationshipValue)
Create an external file specification.
|
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)
Wrap the passed
PdfObject to the specific PdfFileSpec object,
according to the type of the passed pdf object. |
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleaseprotected PdfFileSpec(PdfObject pdfObject)
public static PdfFileSpec wrapFileSpecObject(PdfObject fileSpecObject)
PdfObject to the specific PdfFileSpec object,
according to the type of the passed pdf object.fileSpecObject - object to wrapPdfFileSpec instancepublic static PdfFileSpec createExternalFileSpec(PdfDocument doc, String filePath, PdfName afRelationshipValue)
doc - PdfDocument instance to make this file specification indirectfilePath - file specification string, describing the path to the external fileafRelationshipValue - value that represents the relationship between the component of the passed PDF document
that refers to this file specification and the associated file. If null,
PdfName.Unspecified will be added.PdfFileSpec containing the file specification of the filepublic static PdfFileSpec createExternalFileSpec(PdfDocument doc, String filePath)
doc - PdfDocument instance to make this file specification indirectfilePath - file specification string, describing the path to the external filePdfFileSpec containing the file specification of the filepublic static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, byte[] fileStore, String description, String fileDisplay, PdfName mimeType, PdfDictionary fileParameter, PdfName afRelationshipValue)
doc - PdfDocument instance to make this file specification indirectfileStore - byte[] containing the filedescription - file descriptionfileDisplay - actual file name stored in the pdfmimeType - subtype of the embedded file. The value of this entry shall conform
to the MIME media type namesfileParameter - PdfDictionary containing fil parametersafRelationshipValue - value that represents the relationship between the component of the passed PDF document
that refers to this file specification and the associated file. If null,
PdfName.Unspecified will be added.PdfFileSpec containing the file specification of the filepublic static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, byte[] fileStore, String description, String fileDisplay, PdfDictionary fileParameter, PdfName afRelationshipValue)
doc - PdfDocument instance to make this file specification indirectfileStore - byte[] containing the filefileDisplay - actual file name stored in the pdffileParameter - PdfDictionary containing fil parametersafRelationshipValue - value that represents the relationship between the component of the passed PDF document
that refers to this file specification and the associated file. If null,
PdfName.Unspecified will be added.description - the file descriptionPdfFileSpec containing the file specification of the filepublic static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, byte[] fileStore, String fileDisplay, PdfDictionary fileParameter, PdfName afRelationshipValue)
doc - PdfDocument instance to make this file specification indirectfileStore - byte[] containing the filefileDisplay - actual file name stored in the pdffileParameter - PdfDictionary containing fil parametersafRelationshipValue - value that represents the relationship between the component of the passed PDF document that
refers to this file specification and the associated file. If null,
PdfName.Unspecified will be added.PdfFileSpec containing the file specification of the filepublic static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, byte[] fileStore, String fileDisplay, PdfName afRelationshipValue)
doc - PdfDocument instance to make this file specification indirectfileStore - byte[] containing the filefileDisplay - actual file name stored in the pdfafRelationshipValue - value that represents the relationship between the component of the passed PDF document that
refers to this file specification and the associated file. If null,
PdfName.Unspecified will be added.PdfFileSpec containing the file specification of the filepublic static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, byte[] fileStore, String description, String fileDisplay, PdfName afRelationshipValue)
doc - PdfDocument instance to make this file specification indirectfileStore - byte[] containing the filedescription - file descriptionfileDisplay - actual file name stored in the pdfafRelationshipValue - value that represents the relationship between the component of the passed PDF document that
refers to this file specification and the associated file. If null,
PdfName.Unspecified will be added.PdfFileSpec containing the file specification of the filepublic static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, String filePath, String description, String fileDisplay, PdfName mimeType, PdfDictionary fileParameter, PdfName afRelationshipValue) throws IOException
doc - PdfDocument instance to make this file specification indirectfilePath - file specification string, describing the path to the file to embeddescription - file descriptionfileDisplay - actual file name stored in the pdfmimeType - subtype of the embedded file. The value of this entry shall conform
to the MIME media type namesfileParameter - dictionary with file parametersafRelationshipValue - value that represents the relationship between the component of the passed PDF document that
refers to this file specification and the associated file. If null,
PdfName.Unspecified will be added.PdfFileSpec containing the file specification of the fileIOException - if there are errors while creating an URL from the passed file path.public static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, String filePath, String description, String fileDisplay, PdfName mimeType, PdfName afRelationshipValue) throws IOException
doc - PdfDocument instance to make this file specification indirectfilePath - file specification string, describing the path to the file to embeddescription - file descriptionfileDisplay - actual file name stored in the pdfmimeType - subtype of the embedded file. The value of this entry shall conform
to the MIME media type namesafRelationshipValue - value that represents the relationship between the component of the passed PDF document that
refers to this file specification and the associated file. If null,
PdfName.Unspecified will be added.PdfFileSpec containing the file specification of the fileIOException - if there are errors while creating an URL from the passed file path.public static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, String filePath, String description, String fileDisplay, PdfName afRelationshipValue) throws IOException
doc - PdfDocument instance to make this file specification indirectfilePath - file specification string, describing the path to the file to embeddescription - file descriptionfileDisplay - actual file name stored in the pdfafRelationshipValue - value that represents the relationship between the component of the passed PDF document that
refers to this file specification and the associated file. If null,
PdfName.Unspecified will be added.PdfFileSpec containing the file specification of the fileIOException - if there are errors while creating an URL from the passed file path.public static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, String filePath, String fileDisplay, PdfName afRelationshipValue) throws IOException
doc - PdfDocument instance to make this file specification indirectfilePath - path to the file to embedfileDisplay - actual file name stored in the pdfafRelationshipValue - value that represents the relationship between the component of the passed PDF document that
refers to this file specification and the associated file. If null,
PdfName.Unspecified will be added.PdfFileSpec containing the file specification of the fileIOException - if there are errors while creating an URL from the passed file path.public static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, InputStream is, String description, String fileDisplay, PdfName mimeType, PdfDictionary fileParameter, PdfName afRelationshipValue)
doc - PdfDocument instance to make this file specification indirectis - stream containing the file to embeddescription - file descriptionfileDisplay - actual file name stored in the pdfmimeType - subtype of the embedded file. The value of this entry shall conform
to the MIME media type namesfileParameter - dictionary with file parametersafRelationshipValue - value that represents the relationship between the component of the passed PDF document that
refers to this file specification and the associated file. If null,
PdfName.Unspecified will be added.PdfFileSpec containing the file specification of the filepublic static PdfFileSpec createEmbeddedFileSpec(PdfDocument doc, InputStream is, String description, String fileDisplay, PdfName mimeType, PdfName afRelationshipValue)
doc - PdfDocument instance to make this file specification indirectis - stream containing the file to embeddescription - file descriptionfileDisplay - actual file name stored in the pdfmimeType - subtype of the embedded file. The value of this entry shall conform
to the MIME media type namesafRelationshipValue - value that represents the relationship between the component of the passed PDF document that
refers to this file specification and the associated file. If null,
PdfName.Unspecified will be added.PdfFileSpec containing the file specification of the filepublic 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–2024 Apryse Group NV. All rights reserved.