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 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);Parámetros
| BlockType | text, image o pdf, comparado sin distinguir mayúsculas |
|---|---|
| BlockName | Nombre de bloque no vacío |
| Left, Top, Width, Height | Rectángulo en coordenadas de fachada basadas en la parte superior |
| Properties | Lista 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