DocumentAddAssociatedFile(String, AttachmentRelationship, String, String) Method |
Embeds an arbitrary file into the PDF document as an associated file.
Namespace: ExpertPdf.PdfCreatorAssembly: epdfcreator (in epdfcreator.dll) Version: 22.0.0
Syntaxpublic void AddAssociatedFile(
string filePath,
AttachmentRelationship relationship,
string mimeType,
string description
)
Public Sub AddAssociatedFile (
filePath As String,
relationship As AttachmentRelationship,
mimeType As String,
description As String
)
Parameters
- filePath String
- The full path to the file to embed.
- 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. To produce a conformant document, create the
Document with PdfStandardSubset.Pdf_A_3b or PdfStandardSubset.Pdf_A_3u.
See Also