Xojo Conferences
MBSOct2019CologneDE

DynaPDF Manual - Page 315

Previous Page 314   Index   Next Page 316

Function Reference
Page 315 of 770
operating systems before trying to open the file. This conversion can cause problems if the file name
contains special characters which are not convertible to Ansi.
Return values:
If the function succeeds the return value is the annotation handle, a value greater or equal zero. If the
function fails the return value is a negative error code.
FileAttachAnnotEx
Syntax:
SI32 pdfFileAttachAnnotEx(
const PPDF* IPDF,
// Instance pointer
double PosX,
// X-Coordinate for the annotation icon
double PosY,
// Y-Coordinate for the annotation icon
TFileAttachIcon Icon, // Annotation icon
const char* FileName, // File name including extension (required)
const char* Author,
// Optional author
const char* Desc,
// Optional description
const void* Buffer,
// File buffer (required)
UI32 BufSize,
// Buffer size in bytes (required)
LBOOL Compress)
// If true, the embedded file will be compressed
The function creates a file attachment annotation exactly in the same way as FileAttachAnnot() but
accepts a file buffer as input. See FileAttachAnnot() for further information. The parameter FileName
is required. It should contain the file name including extension, e.g. "MyImage.jpg".
Remarks:
The function is available in an Ansi and Unicode version.
Return values:
If the function succeeds the return value is the annotation handle, a value greater or equal zero. If the
function fails the return value is a negative error code.
FileLink
Syntax:
SI32 pdfFileLink(
const PPDF* IPDF,
// Instance pointer
double PosX,
// X-Coordinate of bounding rectangle
double PosY,
// Y-Coordinate of bounding rectangle
double Width,
// Width of bounding rectangle
double Height,
// Height of bounding rectangle
const char* AFilePath) // File path
The function creates a file link annotation. A file link annotation opens a file by using the application
that is connected with the file extension (MIME type). Viewer applications maybe display a warning
before the file is opened.
 

Previous topic: FileAttachAnnot

Next topic: FindBookmark, FindEmbeddedFile