Click or drag to resize

PdfEmbeddedFileSpecificationTreeAddEmpty Method

Add a new PdfFileSpecification with the specified name and an empty EmbeddedFile.

Use the OpenWrite(Boolean) method of the EmbeddedFile of a returned PdfFileSpecification to fill the empty EmbeddedFile.


Namespace: SautinSoft.Pdf
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.6.18
Syntax
public KeyValuePair<PdfString, PdfFileSpecification> AddEmpty(
	string fileSpecificationName
)

Parameters

fileSpecificationName  String
The name of a newly added PdfFileSpecification. This value is also used to resolve a key in the PdfEmbeddedFileSpecificationTree of a newly added PdfFileSpecification.

Return Value

KeyValuePairPdfString, PdfFileSpecification
A newly created PdfFileSpecification with the specified name and an empty EmbeddedFile added to the PdfEmbeddedFileSpecificationTree under the returned key.
Exceptions
ExceptionCondition
ArgumentNullExceptionfileSpecificationName is or Empty.
ArgumentExceptionA PdfFileSpecification with the same key already exists in the PdfEmbeddedFileSpecificationTree.
See Also