Zum Inhalt

GetParagraphsFromRtf (Opus Funktion)

Beschreibung

Teilt ein Rtf-Dokument in einzelne Paragraphen und Tabellenzeilen ein.

Parses an RTF string and extracts the individual paragraphs together with their type codes. Returns the total number of paragraphs found.

Argumente

Name

Typ

Beschreibung

RtfContent

string

RTF text to parse

&Paragraphs

[string]

Referenz auf Array mit den resultierenden Paragraphtexten.
output: list of paragraph text strings extracted from the RTF

&ParagraphTypes

[string]

Referenz auf Array mit den resultierenden Paragraphtypen.
output: list of type codes corresponding to each paragraph

Flags

integer

control flags that influence the extraction behaviour
0 =
1 =

Rückgabewert  integer

number of paragraphs found in the RTF content

Beispiel

GetParagraphsFromRtf(Ls_Content, &Lo_Pars, &Lo_Types, 1);

So können z. B. Zeilen aus einer Tabelle herausgeholt werden.

Siehe auch