Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.0
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
Statistic
FMM
Blog
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 |
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
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:
Annot | An annotation must be inserted to finish the tag! |
BibEntry | Bibliography entry |
Form | A form field must be inserted to finish the tag! |
Link | A link annotation must be inserted to finish the tag (using DynaPDF.FileLink, DynaPDF.PageLink, or DynaPDF.WebLink)! |
List | List |
ListElem | List element within a List |
ListText | List 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
- Version 13.2
- Added DynaPDF.OpenTag and DynaPDF.CloseTag functions to add tags for a tagged PDFs.
Example Databases
Blog Entries
This function checks for a paid license.
Created 10th March 2023, last changed 10th March 2023
