Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

DynaPDF.OpenTag

Opens the specified tag so that contents can be written into it.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 13.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.OpenTag"; PDF; Tag { ; Lang; AltText; Expansion; BoxX1; BoxY1; BoxX2; BoxY2 } )   More

Parameters

Parameter Description Example Flags
PDF The PDF reference returned from DynaPDF.New. $pdf
Tag The tag name to open.
Possible tags: Art, Artifact, Annot, BibEntry, BlockQuote, Caption, Code, Div, Document, Figure, Form, Formula, H, H1, H2, H3, H4, H5, H6, Index, Link, List, ListElem, ListText, Note, P, Part, Quote, Reference, Section, Span, Table, TableDataCell, TableHeader, TableRow, TOC, TOCEntry.
"p"
Lang RFC 3066 laguage identifier. "en-US" Optional
AltText Alternate text. Optional
Expansion Expansion of abbrevations or acronyms. Optional
BoxX1 The top left x coordiante for the tag. Optional
BoxY1 The top top y coordiante for the tag. Optional
BoxX2 The top right x coordiante for the tag. Optional
BoxY2 The top bottom y coordiante for the tag. Optional

Result

Returns OK or error.

Description

Opens the specified tag so that contents can be written into it.
When the corresponding contents was drawn or output the tag must be closed with DynaPDF.CloseTag. The supported tags have the same meaning as the corresponding HTML tags.

Special tags:
AnnotAn annotation must be inserted to finish the tag!
BibEntryBibliography entry
FormA form field must be inserted to finish the tag!
LinkA link annotation must be inserted to finish the tag (using DynaPDF.FileLink, DynaPDF.PageLink, or DynaPDF.WebLink)!
ListList
ListElemList element within a List
ListTextList Text within a List Element

See also OpenTag function in DynaPDF manual.

Examples

Put a P tag around some text:

Set Variable [ $r ; Value: MBS("DynaPDF.OpenTag"; $pdf; "p") ]
Set Variable [ $r ; Value: MBS("DynaPDF.WriteText"; $pdf; 100; $x; "Some black text") ]
Set Variable [ $r ; Value: MBS("DynaPDF.CloseTag"; $pdf) ]

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 10th March 2023, last changed 10th March 2023


DynaPDF.OpenPDFFromFile - DynaPDF.OpenTagEx