Pdf |
Add a new PdfFileSpecification with the specified name and an empty EmbeddedFile to EmbeddedFiles under the PdfPortfolio (root file) or parent PdfPortfolioFolder.
Use the OpenWrite(Boolean) method of the EmbeddedFile of a returned PdfFileSpecification to fill the empty EmbeddedFile.
| Exception | Condition |
|---|---|
| ArgumentNullException | fileSpecificationName is or Empty. |
| ArgumentException | A PdfFileSpecification with the same key already exists in the EmbeddedFiles. |
| NotSupportedException | The parent PdfPortfolioFolder is not in the PDF portfolio. |