Qu

pdf.attachments

Builtin index · File I/O

pdf.attachments(src)

Input: src · Output: no output

What it is

The document's embedded files, listed via the catalog's /Names/EmbeddedFiles name tree, as a List of Records: filename (Str) and size (Num, the decompressed byte length). An empty List, not an error, for a document with none. Only the flat form of the name tree is read — see pdf.add_attachment.

Overloads

One call shape — this function is not overloaded.

CodeInputOutputDescription
pdf.attachments(src)
src List, Record, Str, or Numnot documented yet
not documented yetThe document's embedded files, listed via the catalog's /Names/EmbeddedFiles name tree, as a List of Records: filename (Str) and size (Num, the decompressed byte length). An empty List, not an error, for a document with none. Only the flat form of the name tree is read — see pdf.add_attachment.

Examples

No documentation example calls this form yet. The File I/O chapter is where one belongs.

How it works

Attachments (embedded files).

From the note above this builtin in the interpreter, where the reasoning was written down as it was built.