PdfFileSpecification Class

Definition

A file specification: a reference from the document to another file, external or embedded, in string or dictionary form. A live view over its COS object.

public sealed class PdfFileSpecification

Remarks

ISO 32000-2 §7.11 (PDF 1.1). §7.11.2: a file specification string divides into components separated by /; a component's literal solidus is written \/ (the PDF string (in\\/out)); a leading / makes it absolute, otherwise it is relative to the containing file, and .. moves up a level. §7.11.3, Table 43: the dictionary form adds the file system (FS), per-platform names, the file identifier, the volatile flag, embedded files (EF), related files (RF), a description, a collection item, a thumbnail, an encrypted payload and the associated-file relationship.

Name preference (Table 43 says a reader shall use UF instead of F): UF, then F, then the deprecated Unix, Mac and DOS. The embedded file stream is chosen from EF in the same key order.

File names are untrusted: they may hold .., absolute paths, backslashes, NUL or reserved device names. The library never combines them with a file-system path; SafeFileName gives a sanitised last component for callers that do.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Properties (20)