1 package pdf 2 3 import ( 4 "image" 5 "image/color" 6 ) 7 8 type Style struct { 9 Flow Flow 10 BackgroundColor color.Color 11 BackgroundImage image.Image 12 Font string 13 Size uint8 14 Color color.Color 15 Bold, Italic, Underline bool 16 Alignment Align 17 } 18 19 type Flow uint8 20 21 const ( 22 FlowNormal Flow = iota 23 FlowAround 24 FlowOver 25 FlowUnder 26 ) 27 28 type Align uint8 29 30 const ( 31 AlignLeft Align = iota 32 AlighCenter 33 AlignRight 34 AlighFull 35 )