Loading...
Searching...
No Matches
TextWidget.h
Go to the documentation of this file.
1//---------------------------------------------------------------------------------------
2// Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3// Consult legal.txt regarding legal and license information.
4//---------------------------------------------------------------------------------------
5#ifndef PDFTRON_H_CPPPDFTextWidget
6#define PDFTRON_H_CPPPDFTextWidget
7
8#include <PDF/Annots/Widget.h>
9
10namespace pdftron {
11 namespace PDF {
12 namespace Annots {
13
17class TextWidget : public Widget
18{
19public:
30
39 TextWidget(const Annot& annot);
40
50 static TextWidget Create(PDFDoc& doc, const Rect& pos, const UString& field_name = "");
51
61 static TextWidget Create(PDFDoc& doc, const Rect& pos, const Field& field);
62
68 void SetText(const UString& text);
69
76};
77
78 }; //namespace Annots
79 }; //namespace PDF
80}; //namespace pdftron
81
82
83#include <Impl/TextWidget.inl>
84
85#endif // PDFTRON_H_CPPPDFTextWidget
Annot(SDF::Obj d=0)
TextWidget(const Annot &annot)
static TextWidget Create(PDFDoc &doc, const Rect &pos, const Field &field)
static TextWidget Create(PDFDoc &doc, const Rect &pos, const UString &field_name="")
void SetText(const UString &text)