Debenu Quick PDF logo

AddSWFAnnotationFromFile

Vector graphics, Image handling, Annotations and hotspot links, Page layout

Version history

This function was introduced in Quick PDF Library version 8.16.

Description

Adds a Flash SWF file as an annotation to the current page.

Syntax

Delphi

function TDebenuPDFLibrary1511.AddSWFAnnotationFromFile(Left, Top, Width, 
  Height: Double; FileName, Title: WideString; Options: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::AddSWFAnnotationFromFile(Left As Double,
  Top As Double, Width As Double, Height As Double, FileName As String,
  Title As String, Options As Long) As Long

DLL

int DPLAddSWFAnnotationFromFile(int InstanceID, double Left, double Top,
  double Width, double Height, wchar_t * FileName, wchar_t * Title,
  int Options)

Parameters

Left The horizontal co-ordinate of the left edge of the annotation rectangle
Top The vertical co-ordinate of the top edge of the annotation rectangle
Width The width of the annotation rectangle
Height The height of the annotation rectangle
FileName The path and name of the SWF file
Title The annotation title
Options Annotation event to activate SWF:
0 = Page visible
1 = Mouse enter
2 = Mouse button click

Return values

0 The specified file could not be found
1 The SWF was successfully added as an annotation

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport