Documentation ¶
Index ¶
- func GetA4PDF(fontMap map[string]string, ...) pdf
- func GetNormalTableIter(h []string) *normalTableIter
- func GetSensorDynamicHeaderTableIter(h [][]string) *sensorDynamicHeaderTableIter
- func GetSensorTableIter(h []string) *sensorTableIter
- type AddPagePipe
- type PDF
- type SensorCell
- type TableValueAryIter
- type TimeValueAry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNormalTableIter ¶
func GetNormalTableIter(h []string) *normalTableIter
func GetSensorDynamicHeaderTableIter ¶
func GetSensorDynamicHeaderTableIter(h [][]string) *sensorDynamicHeaderTableIter
func GetSensorTableIter ¶
func GetSensorTableIter(h []string) *sensorTableIter
Types ¶
type AddPagePipe ¶
type PDF ¶
type PDF interface { GetX() float64 GetY() float64 GetHeight() float64 GetWidth() float64 GetPage() uint8 // 輸出檔案 Write(w io.Writer) error // 直印頁面 AddDirectPage(pp ...AddPagePipe) // 橫印頁面 AddHorizontalPage(pp ...AddPagePipe) // 產生文字 Text(text string, ts style.TextStyle, align int) // 指定位置產生文字 TextWithPosition(text string, style style.TextStyle, x, y float64) // 二列文字說明 TwoColumnText(text1, text2 string, ts style.TextStyle) // 換行 Br(h float64) // 畫線 Line(width float64) // 畫有顔色的綫 LineWithColor(width float64, Color style.Color) // 指定 X,Y 畫線 LineXY(width, x1, y1, x2, y2 float64) ImageReader(imageByte io.Reader) ImageReaderPosition(imageByte io.Reader, x, y float64) DrawSensorTable(nti *sensorTableIter, ts style.FixRowColumnTableStyle) DrawSensorMergeTable(nti *sensorTableIter, pageRows int, mergeRows int, ts style.FixRowColumnTableStyle, pp ...AddPagePipe) DrawSensorDynamicHeaderMergeTable(nti *sensorDynamicHeaderTableIter, pageRows int, mergeRows int, ts style.FixRowColumnTableStyle, pp ...AddPagePipe) DrawSenStateChartTable(nti *sensorTableIter, ts style.FixRowColumnTableStyle) DrawSenStateTable(nti *sensorTableIter, ts style.StateTableStyle, pp ...AddPagePipe) // 矩型填滿顏色 RectFillColor(text string, ts style.TextBlockStyle, w, h float64, align, valign int, ) }
type SensorCell ¶
type TableValueAryIter ¶
type TableValueAryIter struct { Header string // contains filtered or unexported fields }
func GetTableValueAryIter ¶
func GetTableValueAryIter(header string, data []TimeValueAry) *TableValueAryIter
func (*TableValueAryIter) Next ¶
func (vdai *TableValueAryIter) Next(tva *TimeValueAry) bool
type TimeValueAry ¶
Click to show internal directories.
Click to hide internal directories.