 |
PdfDocumentAddAssociatedFile(String, PdfAttachmentRelationship, String, String) Method |
Embeds a file from disk into the document as an associated file.
Namespace: SelectPdf.UniversalAssembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntaxpublic void AddAssociatedFile(
string filePath,
PdfAttachmentRelationship relationship,
string mimeType,
string description
)
Public Sub AddAssociatedFile (
filePath As String,
relationship As PdfAttachmentRelationship,
mimeType As String,
description As String
)
Parameters
- filePath String
- The path of the file to embed.
- relationship PdfAttachmentRelationship
- 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.
RemarksAssociated files are required for PDF/A-3 conformance; they are listed in the
document's /AF array when a PDF/A-3 document is saved.
See Also