Click or drag to resize

PdfFileSpecificationAddRelatedFile Method

Adds a new empty PdfEmbeddedFile to the RelatedFiles collection.

Namespace: SautinSoft.Pdf
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.8.8
Syntax
public PdfEmbeddedFile AddRelatedFile(
	PdfString key
)

Parameters

key  PdfString
The name of one of the related file.

Return Value

PdfEmbeddedFile
The related file added to the file specification's RelatedFiles.
Exceptions
ExceptionCondition
ArgumentNullExceptionkey is .
InvalidOperationExceptionThe EmbeddedFile is .
See Also