FPDFAnnot_AddFileAttachment method

FPDF_ATTACHMENT FPDFAnnot_AddFileAttachment(
  1. FPDF_ANNOTATION annot,
  2. FPDF_WIDESTRING name
)

Experimental API. Add an embedded file with |name| to |annot|.

annot - handle to a file annotation. name - name of the new attachment.

Returns a handle to the new attachment object, or NULL on failure.

Implementation

FPDF_ATTACHMENT FPDFAnnot_AddFileAttachment(
  FPDF_ANNOTATION annot,
  FPDF_WIDESTRING name,
) {
  return _FPDFAnnot_AddFileAttachment(annot, name);
}