React: form field viewing (Widget annotations)

This commit is contained in:
azeeee05
2026-06-10 18:38:38 +05:30
parent 41ab58ba67
commit 58b39b6780
10 changed files with 249 additions and 11 deletions
+8 -1
View File
@@ -143,7 +143,7 @@ public:
struct AnnotationInfo {
std::string id;
std::string type; // "highlight", "comment", "ink", "strikeout", "signature"
std::string type; // "highlight", "comment", "ink", "strikeout", "signature", "widget"
double x = 0.0, y = 0.0, width = 0.0, height = 0.0;
std::string color;
std::string author;
@@ -151,6 +151,13 @@ public:
std::string timestamp;
int pageIndex = 0;
std::vector<std::vector<Point2D>> paths;
// Form field specific properties
std::string fieldName;
std::string fieldValue;
std::string fieldType;
int fieldFlags = 0;
std::vector<std::string> fieldOptions;
};
[[nodiscard]] virtual std::expected<std::vector<AnnotationInfo>, EngineError> extractAnnotations() const = 0;