1234567891011121314151617181920212223242526 |
- package gopdf
- import (
- "testing"
- "github.com/tiechui1994/gopdf/core"
- )
- func ComplexHLineReport() {
- r := core.CreateReport()
- r.SetPage("A4", "mm", "P")
- r.RegisterExecutor(core.Executor(ComplexHLineReportExecutor), core.Detail)
- r.Execute("hr_test.pdf")
- r.SaveAtomicCellText("hr_test.txt")
- }
- func ComplexHLineReportExecutor(report *core.Report) {
- hr := NewHLine(report)
- hr.SetColor(0)
- hr.GenerateAtomicCell()
- }
- func TestComplexHLineReport(t *testing.T) {
- ComplexHLineReport()
- }
|