Click or drag to resize
Pdf Library for .NET

PdfDocumentAddAssociatedFile(String, PdfAttachmentRelationship, String, String) Method

Embeds an arbitrary file into the pdf document as an associated file.

Namespace: SelectPdf
Assembly: Select.HtmlToPdf (in Select.HtmlToPdf.dll) Version: 26.3
Syntax
public void AddAssociatedFile(
	string filePath,
	PdfAttachmentRelationship relationship,
	string mimeType,
	string description
)

Parameters

filePath  String
The full path to 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.
Remarks
Associated files are required for PDF/A-3 conformance. To produce a fully conformant document, create the PdfDocument with one of the PdfA3B, PdfA3U or PdfA3A standards.
See Also