|
PoDoFo 1.1.0
|
A text field in a PDF file. More...
#include <PdfTextBox.h>
Inherits PoDoFo::PdfField.
Public Member Functions | |
| void | SetText (nullable< const PdfString & > text) |
| Sets the text contents of this text field. | |
| nullable< const PdfString & > | GetText () const |
| void | SetMaxLen (int64_t maxLen) |
| Sets the max length in characters of this textfield. | |
| int64_t | GetMaxLen () const |
| void | SetMultiLine (bool multiLine) |
| Create a multi-line text field that can contains multiple lines of text. | |
| bool | IsMultiLine () const |
| void | SetPasswordField (bool password) |
| Create a password text field that should not echo entered characters visibly to the screen. | |
| bool | IsPasswordField () const |
| void | SetFileField (bool file) |
| Create a file selection field. | |
| bool | IsFileField () const |
| void | SetSpellCheckingEnabled (bool spellcheck) |
| Enable/disable spellchecking for this text field. | |
| bool | IsSpellCheckingEnabled () const |
| void | SetScrollBarsEnabled (bool scroll) |
| Enable/disable scrollbars for this text field. | |
| bool | IsScrollBarsEnabled () const |
| void | SetCombs (bool combs) |
| Divide the text field into max-len equal combs. | |
| bool | IsCombs () const |
| void | SetRichText (bool richText) |
| Creates a richtext field. | |
| bool | IsRichText () const |
| PdfTextBox * | GetParent () |
| const PdfTextBox * | GetParent () const |
Friends | |
| class | PdfField |
A text field in a PDF file.
Users can enter text into a text field. Single and multi line text is possible, as well as richtext. The text can be interpreted as path to a file which is going to be submitted.
| int64_t PdfTextBox::GetMaxLen | ( | ) | const |
| bool PdfTextBox::IsCombs | ( | ) | const |
| bool PdfTextBox::IsFileField | ( | ) | const |
| bool PdfTextBox::IsMultiLine | ( | ) | const |
| bool PdfTextBox::IsPasswordField | ( | ) | const |
| bool PdfTextBox::IsRichText | ( | ) | const |
| bool PdfTextBox::IsScrollBarsEnabled | ( | ) | const |
| bool PdfTextBox::IsSpellCheckingEnabled | ( | ) | const |
Divide the text field into max-len equal combs.
| combs | if true enable division into combs |
By default combs are disabled. Requires the max-len property to be set.
Create a file selection field.
The entered contents are treated as filename to a file whose contents are submitted as the value of the field.
| file | if true the contents are treated as a pathname to a file to submit |
Sets the max length in characters of this textfield.
| maxLen | the max length of this textfields in characters |
Create a multi-line text field that can contains multiple lines of text.
| multiLine | if true a multi line field is generated, otherwise the text field can contain only a single line of text. |
The default is to create a single line text field.
Create a password text field that should not echo entered characters visibly to the screen.
| password | if true a password field is created |
The default is to create no password field
Creates a richtext field.
| richText | if true creates a richtext field |
By default richtext is disabled.
Enable/disable scrollbars for this text field.
| scroll | if true scrollbars will be enabled |
Text fields have scrollbars by default
Enable/disable spellchecking for this text field.
| spellCheck | if true spellchecking will be enabled |
Text fields are spellchecked by default
Sets the text contents of this text field.
| text | the text of this field |