AddBlock
Blocks, Interaction
Description
Authors a template block annotation on the current page for later personalization
Syntax
Delphi
Function AddBlock(Const BlockType, BlockName: WideString;
Left, Top, Width, Height: Double; Const Properties: WideString): Integer;ActiveX
Function PDFlib::AddBlock(BlockType As String, BlockName As String, Left As Double, Top As Double, Width As Double, Height As Double, Properties As String) As LongDLL
int DLAddBlock(int InstanceID, const wchar_t* BlockType, const wchar_t* BlockName, double Left, double Top, double Width, double Height, const wchar_t* Properties);
int DLAddBlockA(int InstanceID, const char* BlockType, const char* BlockName, double Left, double Top, double Width, double Height, const char* Properties);Parameters
| BlockType | text, image or pdf, matched case-insensitively |
|---|---|
| BlockName | Non-empty block name |
| Left, Top, Width, Height | Rectangle in top-based facade coordinates |
| Properties | Optional key=value;key=value list stored in the annotation contents |
Return values
| 1 on success, 0 on invalid arguments |
Remarks
Block annotations carry no appearance of their own, so viewers do not render the placeholders