Adds text to the text fragment.
Arguments:
- str - the string
- opts - styling options
Options:
Same as doc.text([text], [opts])
Same as text.add(text, [opts]), but adds an additional line break add the end of the provided text.
Same as text.add(text, [opts]), but directly appends the text, i.e., adds the text without a space.
Adds a line break.
Adds/appends the current page number to the text fragment.
Arguments:
- opts - styling options
Options:
Same as doc.text([text], [opts])
Adds/appends the documents total page count to the text fragment.
Arguments:
- opts - styling options
Options:
Same as doc.text([text], [opts])