SetStructElemSpaceAfter
Tagged PDF, Přístupnost
Popis
Sets the /SpaceAfter attribute (Layout attribute owner) on the structure element currently open on the tag stack. The value specifies the amount of space to add after the block-level element — analogous to CSS margin-bottom or padding-bottom. Equivalent to calling AddTagAttribute with Owner=Layout, Name=SpaceAfter, and the numeric value as a string.
Syntaxe
Delphi
Function TPDFlib.SetStructElemSpaceAfter(Space: Double): Integer;
ActiveX
Function PDFlib::SetStructElemSpaceAfter(Space As Double) As Long
DLL
int DLSetStructElemSpaceAfter(int InstanceID, double Space);
Parametry
| Space | Mezera za elementem v jednotkách default user space (body, 1/72 palce). Musí být nezáporná hodnota. Hodnota 0 znamená žádnou extra mezeru za elementem |
|---|
Návratová hodnota
Při úspěchu vrací 1. Vrací 0, pokud není otevřený žádný dokument nebo žádný tag v zásobníku tagů
Poznámky
Call this function after BeginTag or BeginTagEx and before EndTag. The /SpaceAfter attribute is defined in ISO 32000-1 §14.8.5.4.2 (Layout attribute owner, Table 340).
Atributy rozvržení jsou pouze informativní: popisují zamýšlené vizuální rozvržení pro reflow a exportní enginy. Další podrobnosti najdete v SetStructElemSpaceBefore
Příklad
// Tag a paragraph with space after it
PDFlib.BeginTag('P', '', '', '');
PDFlib.SetStructElemSpaceAfter(6.0); // 6 pt below the paragraph
PDFlib.DrawText('Some paragraph text here.', 72, 680);
PDFlib.EndTag;Viz také
SetStructElemSpaceBefore, SetStructElemStartIndent, SetStructElemWritingMode, AddTagAttribute