Click or drag to resize

DocumentAddAssociatedFile(String, AttachmentRelationship, String, String) Method

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

Namespace: ExpertPdf.HtmlToPdf.PdfDocument
Assembly: ephtmltopdf (in ephtmltopdf.dll) Version: 22.0.0
Syntax
public void AddAssociatedFile(
	string filePath,
	AttachmentRelationship relationship,
	string mimeType,
	string description
)

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