[]
DsPdfJS API / FileSpecification
Represents a PDF File Specification.
The complex architecture of this class is based on the PDF Specification, for full details please consult that spec.
new FileSpecification(
om,properties):FileSpecification
Creates a FileSpecification object on the base of properties specified by the FileSpecificationProperties.
ObjectManager that controls the lifetime of the FileSpecification.
The properties of created object.
FileSpecification
ObjectBase.constructor
new FileSpecification(
properties):FileSpecification
Creates a FileSpecification object on the base of properties specified by the FileSpecificationProperties.
The properties of created object.
FileSpecification
ObjectBase.constructor
new FileSpecification(
om,fileName,stream,desc?):FileSpecification
Creates a FileSpecification associated with the specified EmbeddedFileStream object.
ObjectManager that controls the lifetime of the FileSpecification.
string
The file name used as a name for embedded file.
The EmbeddedFileStream associated with created file specification.
string
The optional description.
FileSpecification
ObjectBase.constructor
new FileSpecification(
fileName,stream,desc?):FileSpecification
Creates a FileSpecification associated with the specified EmbeddedFileStream object.
string
The file name used as a name for embedded file.
The EmbeddedFileStream associated with created file specification.
string
The optional description.
FileSpecification
ObjectBase.constructor
get desc():
string|null
Gets or sets the description of this File Specification.
string | null
set desc(
value):void
Gets or sets the description of this File Specification.
string | null
void
get fileSystem():
string|null
Gets or sets the file system to be used to interpret this file specification.
If this property is present, all other properties are interpreted by the designated file system. PDF defines only one standard file system name, URL; an application or plug-in extension can register other names.
string | null
set fileSystem(
value):void
Gets or sets the file system to be used to interpret this file specification.
If this property is present, all other properties are interpreted by the designated file system. PDF defines only one standard file system name, URL; an application or plug-in extension can register other names.
string | null
void
get hasEmbeddedFileStream():
boolean
Gets a value indicating that this file specification has at least one EmbeddedFileStream associated with it.
boolean
get id():
number
Gets the reference to the object.
number
get ID():
FileID|null
Gets or sets the FileID object specifying the ID of the referenced file.
This property improves an application's chances of finding the intended file and allows it to warn the user if the file has changed since the link was made.
FileID | null
set ID(
value):void
Gets or sets the FileID object specifying the ID of the referenced file.
This property improves an application's chances of finding the intended file and allows it to warn the user if the file has changed since the link was made.
FileID | null
void
get om():
ObjectManager
Gets the owner ObjectManager instance.
get relationship():
string|null
Gets or sets a value that represents the relationship of this object to the source that points to it.
Predefined values are Source, Data, Alternative, Supplement and Unspecified.
string | null
set relationship(
value):void
Gets or sets a value that represents the relationship of this object to the source that points to it.
Predefined values are Source, Data, Alternative, Supplement and Unspecified.
string | null
void
get volatile():
boolean
Gets or sets a value indicating whether the file referenced by the file specification is volatile (changes frequently with time). If the value is true, applications should never cache a copy of the file.
boolean
set volatile(
value):void
Gets or sets a value indicating whether the file referenced by the file specification is volatile (changes frequently with time). If the value is true, applications should never cache a copy of the file.
boolean
void
free():
void
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
getStream():
Uint8Array<ArrayBufferLike> |null
Gets a value indicating that this file specification has at least one EmbeddedFileStream associated with it.
Uint8Array<ArrayBufferLike> | null
rebind(
omTo):void
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void