AddBlock

Bloques, Interacción

Descripción

Crea una anotación de bloque de plantilla en la página actual para personalizarla más tarde

Sintaxis

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

Parámetros

BlockTypetext, image o pdf, comparado sin distinguir mayúsculas
BlockNameNombre de bloque no vacío
Left, Top, Width, HeightRectángulo en coordenadas de fachada basadas en la parte superior
PropertiesLista opcional key=value;key=value almacenada en los contenidos de la anotación

Valores devueltos

1 en caso de éxito, 0 con argumentos inválidos

Observaciones

Las anotaciones de bloque no llevan apariencia propia, así que los visores no renderizan los placeholders

Véase también

GetBlockCount, GetBlockName, GetBlockType, FillTextBlock