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 Long

DLL

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

BlockTypetext, image or pdf, matched case-insensitively
BlockNameNon-empty block name
Left, Top, Width, HeightRectangle in top-based facade coordinates
PropertiesOptional 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

See also

GetBlockCount, GetBlockName, GetBlockType, FillTextBlock