Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Inserts a file attachment annotation on the current open page.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 5.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
PosX | X-Coordinate for the annotation icon | 100 |
PosY | Y-Coordinate for the annotation icon | 100 |
Icon | Which icon to use. Can be Graph, PaperClip, PushPin or Tag. | "Graph" |
Author | Name of author. Can be empty. | "Christian Schmitz" |
Description | Description text. Can be empty. | "Original File" |
FilePath | The native file path to the file to embed. | "/Users/cs/Desktop/test.mp3" |
Compress | If 1, the embedded file is compressed. Pass 0 for no compression. | 0 |
Returns annotation handle or error.
See also FileAttachAnnot function in DynaPDF manual.
This function checks for a license.
Created 28th November 2014, last changed 30th November 2014