THPDFPage.AddSoundAnnotation

THPDFPage

 

Top  Previous  Next

Adds new Sound annotation on the current page.

 

Delphi syntax:

procedure AddSoundAnnotation ( Contents: AnsiString; FileName: AnsiString; Rectangle: TRect; Color: TColor = clRed ); overload;

procedure AddSoundAnnotation ( const Contents: string; const FileName: TFileName; Rectangle: TRect; Color: TColor = clRed ); overload;

 

C++ syntax:

void __fastcall AddSoundAnnotation ( AnsiString Contents, AnsiString FileName, const Windows::TRect &Rectangle, Graphics::TColor Color = clRed );

void __fastcall AddSoundAnnotation ( const UnicodeString Contents, const Sysutils::TFileName FileName, const Windows::TRect &Rectangle, Graphics::TColor Color = clRed );

 

Description

Use AddSoundAnnotation to embed a sound file on the current page as a Sound annotation with the specified description (Contents), audio file path (FileName), bounding rectangle (Rectangle), and icon color. The Unicode TFileName overload (WideString on non-Unicode targets) opens Unicode directory and file names without ANSI code-page loss.

 

 

Sound annotation preview