SetStructElemStartIndent
Tagged PDF, Přístupnost
Popis
Sets the /StartIndent attribute (Layout attribute owner) on the structure element currently open on the tag stack. The value specifies the distance between the start edge of the content rectangle and the start edge of the element's content — analogous to CSS padding-left (for LrTb writing mode) or padding-right (for RlTb writing mode). Equivalent to calling AddTagAttribute with Owner=Layout, Name=StartIndent, and the numeric value as a string.
Syntaxe
Delphi
Function TPDFlib.SetStructElemStartIndent(Indent: Double): Integer;
ActiveX
Function PDFlib::SetStructElemStartIndent(Indent As Double) As Long
DLL
int DLSetStructElemStartIndent(int InstanceID, double Indent);
Parametry
| Indent | Odsazení od počáteční hrany obdélníku obsahu v jednotkách výchozího uživatelského prostoru (body, 1/72 palce). Kladné hodnoty posouvají blok od počáteční hrany; některé reflow enginy povolují záporné hodnoty pro předsazené odsazení |
|---|
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 /StartIndent attribute is defined in ISO 32000-1 §14.8.5.4.2 (Layout attribute owner, Table 340).
"Počáteční hrana" závisí na režimu zápisu. Pro LrTb (zleva doprava) je to levá hrana; pro RlTb (zprava doleva, například arabština/hebrejština) pravá. Atribut je tak citlivý na režim zápisu, na rozdíl od fixního levého/pravého okraje. Spojte s SetStructElemEndIndent pro obě strany
Příklad
// Tag an indented block quote
PDFlib.BeginTag('BlockQuote', '', '', '');
PDFlib.SetStructElemStartIndent(36.0); // 0.5 inch from start edge
PDFlib.SetStructElemEndIndent(36.0);
PDFlib.DrawText('A quoted passage...', 108, 660);
PDFlib.EndTag;Viz také
SetStructElemEndIndent, SetStructElemSpaceBefore, SetStructElemWritingMode, AddTagAttribute