diff options
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 +} + |