React: form field viewing (Widget annotations)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user