Click or drag to resize
Pdf Library for .NET

PdfDocumentAddAssociatedFile(Stream, String, PdfAttachmentRelationship, String, String) Method

Embeds the content of a stream into the pdf document as an associated file.

Namespace: SelectPdf
Assembly: Select.Pdf (in Select.Pdf.dll) Version: 26.3
Syntax
public void AddAssociatedFile(
	Stream stream,
	string fileName,
	PdfAttachmentRelationship relationship,
	string mimeType,
	string description
)

Parameters

stream  Stream
The stream whose content is embedded.
fileName  String
The file name recorded for the embedded file.
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.
See Also