From 17fb6add26291b31f7020e3551a7c8487130a747 Mon Sep 17 00:00:00 2001 From: "F.O." Date: Sun, 16 Feb 2025 17:56:08 +0100 Subject: genesi --- go-poppler/text.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 go-poppler/text.go (limited to 'go-poppler/text.go') 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 +} + -- cgit v1.2.3