diff options
author | F.O. <scrotadamus@insiberia.net> | 2025-02-16 17:56:08 +0100 |
---|---|---|
committer | F.O. <scrotadamus@insiberia.net> | 2025-02-16 17:56:57 +0100 |
commit | 17fb6add26291b31f7020e3551a7c8487130a747 (patch) | |
tree | d4559a7339ed181393ff921909e6ce05b7c2cf18 /go-poppler/text.go |
genesi
Diffstat (limited to 'go-poppler/text.go')
-rw-r--r-- | go-poppler/text.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/go-poppler/text.go b/go-poppler/text.go new file mode 100644 index 0000000..5550b64 --- /dev/null +++ b/go-poppler/text.go @@ -0,0 +1,22 @@ +package poppler + +import () + +type TextEl struct { + Text string + Attrs *TextAttributes + Rect Rectangle +} + +type TextAttributes struct { + FontName string + FontSize float64 + IsUnderlined bool + Color Color + StartIndex, EndIndex int +} + +type Color struct { + R, G, B int +} + |