DocumentAddAssociatedFile(Stream, String, AttachmentRelationship, String, String) Method |
Embeds the content of a stream into the PDF document as an associated file.
Namespace: ExpertPdf.Anywhere.PdfDocumentAssembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntaxpublic void AddAssociatedFile(
Stream stream,
string fileName,
AttachmentRelationship relationship,
string mimeType,
string description
)
Public Sub AddAssociatedFile (
stream As Stream,
fileName As String,
relationship As AttachmentRelationship,
mimeType As String,
description As String
)
Parameters
- stream Stream
- The stream whose content is embedded.
- fileName String
- The file name recorded for the embedded file.
- relationship AttachmentRelationship
- The relationship between the embedded file and the document content.
- mimeType String
- The MIME type of the embedded file (for example "text/xml"). Can be null.
- description String
- An optional human-readable description of the embedded file. Can be null.
Remarks
Associated files are what PDF/A-3 allows to embed.
See Also