AddEmbeddedFile(String, PdfFileSpecification) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Lists file in the document's EmbeddedFiles name tree under name.

public PdfEmbeddedFileEntry AddEmbeddedFile(string name, PdfFileSpecification file)

Parameters

name
String

The key, as text. An existing entry whose key decodes to the same text is replaced, keeping its key.

file
PdfFileSpecification

An indirect file specification of this document with an embedded file (EF).

Returns

PdfEmbeddedFileEntry
The new entry.

Remarks

ISO 32000-2 §7.7.4, Table 32 (EmbeddedFiles, PDF 1.4), §7.9.6 and §7.11.4.1: the tree maps name strings to file specifications that refer to embedded file streams through EF, which makes the specification indirect (Table 43). The catalog's Names dictionary and the tree are created when absent. A new key is written as a text string (§7.9.2.2). A mutation: no read may run concurrently with it.