AddBlock

Blöcke, Interaktion

Beschreibung

Legt eine Template-Block-Anmerkung auf der aktuellen Seite an, die später personalisiert wird

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);

Parameter

BlockTypetext, image oder pdf; Groß-/Kleinschreibung wird nicht unterschieden
BlockNameNicht leerer Blockname
Left, Top, Width, HeightRechteck in obenzügen Facade-Koordinaten
PropertiesOptionale key=value;key=value-Liste, die im Contents der Anmerkung abgelegt wird

Rückgabewerte

1 bei Erfolg, 0 bei ungültigen Argumenten

Anmerkungen

Block-Anmerkungen haben kein eigenes Erscheinungsbild, daher rendern Viewer die Platzhalter nicht

Siehe auch

GetBlockCount, GetBlockName, GetBlockType, FillTextBlock