Class PdfFileSpec
public class PdfFileSpec : PdfObjectWrapper<PdfObject>
- Inheritance
-
PdfFileSpec
- Derived
- Inherited Members
Constructors
PdfFileSpec(PdfObject)
protected PdfFileSpec(PdfObject pdfObject)
Parameters
pdfObject
PdfObject
Methods
CreateEmbeddedFileSpec(PdfDocument, byte[], string, string, PdfDictionary, PdfName)
Create an embedded file specification.
public static PdfFileSpec CreateEmbeddedFileSpec(PdfDocument doc, byte[] fileStore, string description, string fileDisplay, PdfDictionary fileParameter, PdfName afRelationshipValue)
Parameters
doc
PdfDocumentPdfDocument instance to make this file specification indirect
fileStore
byte[]byte[] containing the file
description
stringthe file description
fileDisplay
stringactual file name stored in the pdf
fileParameter
PdfDictionaryPdfDictionary containing fil parameters
afRelationshipValue
PdfNamevalue that represents the relationship between the component of the passed PDF document that refers to this file specification and the associated file. If
null
, Unspecified will be added.
Returns
- PdfFileSpec
PdfFileSpec containing the file specification of the file
CreateEmbeddedFileSpec(PdfDocument, byte[], string, string, PdfName)
Create an embedded file specification.
public static PdfFileSpec CreateEmbeddedFileSpec(PdfDocument doc, byte[] fileStore, string description, string fileDisplay, PdfName afRelationshipValue)
Parameters
doc
PdfDocumentPdfDocument instance to make this file specification indirect
fileStore
byte[]byte[] containing the file
description
stringfile description
fileDisplay
stringactual file name stored in the pdf
afRelationshipValue
PdfNamevalue that represents the relationship between the component of the passed PDF document that refers to this file specification and the associated file. If
null
, Unspecified will be added.
Returns
- PdfFileSpec
PdfFileSpec containing the file specification of the file
CreateEmbeddedFileSpec(PdfDocument, byte[], string, string, PdfName, PdfDictionary, PdfName)
Create an embedded file specification.
public static PdfFileSpec CreateEmbeddedFileSpec(PdfDocument doc, byte[] fileStore, string description, string fileDisplay, PdfName mimeType, PdfDictionary fileParameter, PdfName afRelationshipValue)
Parameters
doc
PdfDocumentPdfDocument instance to make this file specification indirect
fileStore
byte[]byte[] containing the file
description
stringfile description
fileDisplay
stringactual file name stored in the pdf
mimeType
PdfNamesubtype of the embedded file. The value of this entry shall conform to the MIME media type names
fileParameter
PdfDictionaryPdfDictionary containing fil parameters
afRelationshipValue
PdfNamevalue that represents the relationship between the component of the passed PDF document that refers to this file specification and the associated file. If
null
, Unspecified will be added.
Returns
- PdfFileSpec
PdfFileSpec containing the file specification of the file
CreateEmbeddedFileSpec(PdfDocument, byte[], string, PdfDictionary, PdfName)
Create an embedded file specification.
public static PdfFileSpec CreateEmbeddedFileSpec(PdfDocument doc, byte[] fileStore, string fileDisplay, PdfDictionary fileParameter, PdfName afRelationshipValue)
Parameters
doc
PdfDocumentPdfDocument instance to make this file specification indirect
fileStore
byte[]byte[] containing the file
fileDisplay
stringactual file name stored in the pdf
fileParameter
PdfDictionaryPdfDictionary containing fil parameters
afRelationshipValue
PdfNamevalue that represents the relationship between the component of the passed PDF document that refers to this file specification and the associated file. If
null
, Unspecified will be added.
Returns
- PdfFileSpec
PdfFileSpec containing the file specification of the file
CreateEmbeddedFileSpec(PdfDocument, byte[], string, PdfName)
Create an embedded file specification.
public static PdfFileSpec CreateEmbeddedFileSpec(PdfDocument doc, byte[] fileStore, string fileDisplay, PdfName afRelationshipValue)
Parameters
doc
PdfDocumentPdfDocument instance to make this file specification indirect
fileStore
byte[]byte[] containing the file
fileDisplay
stringactual file name stored in the pdf
afRelationshipValue
PdfNamevalue that represents the relationship between the component of the passed PDF document that refers to this file specification and the associated file. If
null
, Unspecified will be added.
Returns
- PdfFileSpec
PdfFileSpec containing the file specification of the file
CreateEmbeddedFileSpec(PdfDocument, Stream, string, string, PdfName, PdfDictionary, PdfName)
Create an embedded file specification.
public static PdfFileSpec CreateEmbeddedFileSpec(PdfDocument doc, Stream @is, string description, string fileDisplay, PdfName mimeType, PdfDictionary fileParameter, PdfName afRelationshipValue)
Parameters
doc
PdfDocumentPdfDocument instance to make this file specification indirect
is
Streamstream containing the file to embed
description
stringfile description
fileDisplay
stringactual file name stored in the pdf
mimeType
PdfNamesubtype of the embedded file. The value of this entry shall conform to the MIME media type names
fileParameter
PdfDictionarydictionary with file parameters
afRelationshipValue
PdfNamevalue that represents the relationship between the component of the passed PDF document that refers to this file specification and the associated file. If
null
, Unspecified will be added.
Returns
- PdfFileSpec
PdfFileSpec containing the file specification of the file
CreateEmbeddedFileSpec(PdfDocument, Stream, string, string, PdfName, PdfName)
Create an embedded file specification.
public static PdfFileSpec CreateEmbeddedFileSpec(PdfDocument doc, Stream @is, string description, string fileDisplay, PdfName mimeType, PdfName afRelationshipValue)
Parameters
doc
PdfDocumentPdfDocument instance to make this file specification indirect
is
Streamstream containing the file to embed
description
stringfile description
fileDisplay
stringactual file name stored in the pdf
mimeType
PdfNamesubtype of the embedded file. The value of this entry shall conform to the MIME media type names
afRelationshipValue
PdfNamevalue that represents the relationship between the component of the passed PDF document that refers to this file specification and the associated file. If
null
, Unspecified will be added.
Returns
- PdfFileSpec
PdfFileSpec containing the file specification of the file
CreateEmbeddedFileSpec(PdfDocument, string, string, string, PdfName)
Create an embedded file specification.
public static PdfFileSpec CreateEmbeddedFileSpec(PdfDocument doc, string filePath, string description, string fileDisplay, PdfName afRelationshipValue)
Parameters
doc
PdfDocumentPdfDocument instance to make this file specification indirect
filePath
stringfile specification string, describing the path to the file to embed
description
stringfile description
fileDisplay
stringactual file name stored in the pdf
afRelationshipValue
PdfNamevalue that represents the relationship between the component of the passed PDF document that refers to this file specification and the associated file. If
null
, Unspecified will be added.
Returns
- PdfFileSpec
PdfFileSpec containing the file specification of the file
CreateEmbeddedFileSpec(PdfDocument, string, string, string, PdfName, PdfDictionary, PdfName)
Create an embedded file specification.
public static PdfFileSpec CreateEmbeddedFileSpec(PdfDocument doc, string filePath, string description, string fileDisplay, PdfName mimeType, PdfDictionary fileParameter, PdfName afRelationshipValue)
Parameters
doc
PdfDocumentPdfDocument instance to make this file specification indirect
filePath
stringfile specification string, describing the path to the file to embed
description
stringfile description
fileDisplay
stringactual file name stored in the pdf
mimeType
PdfNamesubtype of the embedded file. The value of this entry shall conform to the MIME media type names
fileParameter
PdfDictionarydictionary with file parameters
afRelationshipValue
PdfNamevalue that represents the relationship between the component of the passed PDF document that refers to this file specification and the associated file. If
null
, Unspecified will be added.
Returns
- PdfFileSpec
PdfFileSpec containing the file specification of the file
CreateEmbeddedFileSpec(PdfDocument, string, string, string, PdfName, PdfName)
Create an embedded file specification.
public static PdfFileSpec CreateEmbeddedFileSpec(PdfDocument doc, string filePath, string description, string fileDisplay, PdfName mimeType, PdfName afRelationshipValue)
Parameters
doc
PdfDocumentPdfDocument instance to make this file specification indirect
filePath
stringfile specification string, describing the path to the file to embed
description
stringfile description
fileDisplay
stringactual file name stored in the pdf
mimeType
PdfNamesubtype of the embedded file. The value of this entry shall conform to the MIME media type names
afRelationshipValue
PdfNamevalue that represents the relationship between the component of the passed PDF document that refers to this file specification and the associated file. If
null
, Unspecified will be added.
Returns
- PdfFileSpec
PdfFileSpec containing the file specification of the file
CreateEmbeddedFileSpec(PdfDocument, string, string, PdfName)
Create an embedded file specification.
public static PdfFileSpec CreateEmbeddedFileSpec(PdfDocument doc, string filePath, string fileDisplay, PdfName afRelationshipValue)
Parameters
doc
PdfDocumentPdfDocument instance to make this file specification indirect
filePath
stringpath to the file to embed
fileDisplay
stringactual file name stored in the pdf
afRelationshipValue
PdfNamevalue that represents the relationship between the component of the passed PDF document that refers to this file specification and the associated file. If
null
, Unspecified will be added.
Returns
- PdfFileSpec
PdfFileSpec containing the file specification of the file
CreateExternalFileSpec(PdfDocument, string)
Create an external file specification.
public static PdfFileSpec CreateExternalFileSpec(PdfDocument doc, string filePath)
Parameters
doc
PdfDocumentPdfDocument instance to make this file specification indirect
filePath
stringfile specification string, describing the path to the external file
Returns
- PdfFileSpec
PdfFileSpec containing the file specification of the file
CreateExternalFileSpec(PdfDocument, string, PdfName)
Create an external file specification.
public static PdfFileSpec CreateExternalFileSpec(PdfDocument doc, string filePath, PdfName afRelationshipValue)
Parameters
doc
PdfDocumentPdfDocument instance to make this file specification indirect
filePath
stringfile specification string, describing the path to the external file
afRelationshipValue
PdfNamevalue that represents the relationship between the component of the passed PDF document that refers to this file specification and the associated file. If
null
, Unspecified will be added.
Returns
- PdfFileSpec
PdfFileSpec containing the file specification of the file
GetFileIdentifier()
public virtual PdfArray GetFileIdentifier()
Returns
GetThumbnailImage()
PDF 2.0.
public virtual PdfImageXObject GetThumbnailImage()
Returns
- PdfImageXObject
image used as a thumbnail, or
null
if it is not set
Remarks
PDF 2.0. Gets a stream object defining the thumbnail image for the file specification.
IsVolatile()
public virtual PdfBoolean IsVolatile()
Returns
IsWrappedObjectMustBeIndirect()
protected override bool IsWrappedObjectMustBeIndirect()
Returns
Put(PdfName, PdfObject)
public virtual PdfFileSpec Put(PdfName key, PdfObject value)
Parameters
Returns
SetCollectionItem(PdfCollectionItem)
public virtual PdfFileSpec SetCollectionItem(PdfCollectionItem item)
Parameters
item
PdfCollectionItem
Returns
SetFileIdentifier(PdfArray)
public virtual PdfFileSpec SetFileIdentifier(PdfArray fileIdentifier)
Parameters
fileIdentifier
PdfArray
Returns
SetThumbnailImage(PdfImageXObject)
PDF 2.0.
public virtual PdfFileSpec SetThumbnailImage(PdfImageXObject thumbnailImage)
Parameters
thumbnailImage
PdfImageXObjectimage used as a thumbnail
Returns
- PdfFileSpec
this PdfFileSpec instance
Remarks
PDF 2.0. Sets a stream object defining the thumbnail image for the file specification.
SetVolatile(PdfBoolean)
public virtual PdfFileSpec SetVolatile(PdfBoolean isVolatile)
Parameters
isVolatile
PdfBoolean
Returns
WrapFileSpecObject(PdfObject)
Wrap the passed PdfObject to the specific PdfFileSpec object, according to the type of the passed pdf object.
public static PdfFileSpec WrapFileSpecObject(PdfObject fileSpecObject)
Parameters
fileSpecObject
PdfObjectobject to wrap
Returns
- PdfFileSpec
wrapped PdfFileSpec instance