Name
  doc:AttachFile -- attach file to document
Synopsis

      file = doc:AttachFile(f$)

Function
  `doc:AttachFile()` attaches the file specified by `f$` to the document and returns a handle to the embedded file or `Nil` on error.

Inputs
  f$
    path to a file that should be attached
Results
  file
    handle to the attached file
Errors
  `#HPDF_INVALID_DOCUMENT` - An invalid document handle was set.

  `#HPDF_FAILED_TO_ALLOC_MEM` - Memory allocation failed.

Show TOC