modern-pdf-lib / attachFile
Function: attachFile()
attachFile(
registry,file):PdfRef
Defined in: src/core/embeddedFiles.ts:58
Create an embedded file stream and filespec dictionary, registering them in the object registry.
Parameters
registry
The PDF object registry.
file
The file to embed.
Returns
The indirect reference to the filespec dictionary.