mirror of
https://github.com/unidoc/unipdf.git
synced 2025-04-27 13:48:51 +08:00
Added : Color applied for example 1
This commit is contained in:
parent
d0e3f8dacb
commit
3211682ce5
@ -1049,31 +1049,32 @@ func TestBorderedTable2(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func newContent(text string, alignment TextAlignment, font fonts.Font, fontSize float64) *Paragraph {
|
func newContent(text string, alignment TextAlignment, font fonts.Font, fontSize float64, color Color) *Paragraph {
|
||||||
p := NewParagraph(text)
|
p := NewParagraph(text)
|
||||||
p.SetFontSize(fontSize)
|
p.SetFontSize(fontSize)
|
||||||
p.SetTextAlignment(alignment)
|
p.SetTextAlignment(alignment)
|
||||||
p.SetFont(font)
|
p.SetFont(font)
|
||||||
|
p.SetColor(color)
|
||||||
return p
|
return p
|
||||||
}
|
}
|
||||||
|
|
||||||
func newBillItem(t *Table, no, date, notes, amount, con, retApplied, ret, netBill string) {
|
func newBillItem(t *Table, no, date, notes, amount, con, retApplied, ret, netBill string) {
|
||||||
billNo := t.NewCell()
|
billNo := t.NewCell()
|
||||||
billNo.SetContent(newContent(no, TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
billNo.SetContent(newContent(no, TextAlignmentLeft, fonts.NewFontTimesBold(), 8, ColorBlack))
|
||||||
billDate := t.NewCell()
|
billDate := t.NewCell()
|
||||||
billDate.SetContent(newContent(date, TextAlignmentCenter, fonts.NewFontTimesBold(), 8))
|
billDate.SetContent(newContent(date, TextAlignmentCenter, fonts.NewFontTimesBold(), 8, ColorBlack))
|
||||||
billNotes := t.NewCell()
|
billNotes := t.NewCell()
|
||||||
billNotes.SetContent(newContent(notes, TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
billNotes.SetContent(newContent(notes, TextAlignmentLeft, fonts.NewFontTimesBold(), 8, ColorBlack))
|
||||||
billAmount := t.NewCell()
|
billAmount := t.NewCell()
|
||||||
billAmount.SetContent(newContent(amount, TextAlignmentRight, fonts.NewFontTimesBold(), 8))
|
billAmount.SetContent(newContent(amount, TextAlignmentRight, fonts.NewFontTimesBold(), 8, ColorBlack))
|
||||||
billCon := t.NewCell()
|
billCon := t.NewCell()
|
||||||
billCon.SetContent(newContent(con, TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
billCon.SetContent(newContent(con, TextAlignmentLeft, fonts.NewFontTimesBold(), 8, ColorBlack))
|
||||||
billRetApplied := t.NewCell()
|
billRetApplied := t.NewCell()
|
||||||
billRetApplied.SetContent(newContent(retApplied, TextAlignmentRight, fonts.NewFontTimesBold(), 8))
|
billRetApplied.SetContent(newContent(retApplied, TextAlignmentRight, fonts.NewFontTimesBold(), 8, ColorBlack))
|
||||||
billRet := t.NewCell()
|
billRet := t.NewCell()
|
||||||
billRet.SetContent(newContent(ret, TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
billRet.SetContent(newContent(ret, TextAlignmentLeft, fonts.NewFontTimesBold(), 8, ColorBlack))
|
||||||
billNetBill := t.NewCell()
|
billNetBill := t.NewCell()
|
||||||
billNetBill.SetContent(newContent(netBill, TextAlignmentRight, fonts.NewFontTimesBold(), 8))
|
billNetBill.SetContent(newContent(netBill, TextAlignmentRight, fonts.NewFontTimesBold(), 8, ColorBlack))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Test creating and drawing a table.
|
// Test creating and drawing a table.
|
||||||
@ -1082,142 +1083,153 @@ func TestCreatorHendricksReq1(t *testing.T) {
|
|||||||
// Default, equal column sizes (4x0.25)...
|
// Default, equal column sizes (4x0.25)...
|
||||||
table.SetColumnWidths(0.35, 0.30, 0.35)
|
table.SetColumnWidths(0.35, 0.30, 0.35)
|
||||||
|
|
||||||
|
projectColorOne := ColorBlue
|
||||||
|
projectColorTwo := ColorRed
|
||||||
|
|
||||||
companyTitle := table.NewCell()
|
companyTitle := table.NewCell()
|
||||||
companyTitle.SetContent(newContent("Hendricks Consulting LLC", TextAlignmentLeft, fonts.NewFontTimesBold(), 12))
|
companyTitle.SetContent(newContent("Hendricks Consulting LLC", TextAlignmentLeft, fonts.NewFontTimesBold(), 12, projectColorOne))
|
||||||
|
|
||||||
table.SkipCells(1)
|
table.SkipCells(1)
|
||||||
|
|
||||||
pageHeader := table.NewCell()
|
pageHeader := table.NewCell()
|
||||||
pageHeader.SetContent(newContent("Billing Schedule by Project", TextAlignmentCenter, fonts.NewFontTimesBold(), 12))
|
pageHeader.SetContent(newContent("Billing Schedule by Project", TextAlignmentCenter, fonts.NewFontTimesBold(), 12, ColorBlack))
|
||||||
pageHeader.SetBorder(CellBorderStyleDoubleBox, 3)
|
pageHeader.SetBorder(CellBorderStyleBox, 3)
|
||||||
pageHeader.SetBorderLineStyle(draw.LineStyleSolid)
|
pageHeader.SetBorderLineStyle(draw.LineStyleSolid)
|
||||||
|
|
||||||
companyAddress := table.NewCell()
|
companyAddress := table.NewCell()
|
||||||
companyAddress.SetContent(newContent("2666 Airport Drive, Apt. 309", TextAlignmentLeft, fonts.NewFontTimesRoman(), 8))
|
companyAddress.SetContent(newContent("2666 Airport Drive, Apt. 309", TextAlignmentLeft, fonts.NewFontTimesRoman(), 8, ColorBlack))
|
||||||
|
|
||||||
table.SkipCells(2)
|
table.SkipCells(2)
|
||||||
|
|
||||||
companyLocation := table.NewCell()
|
companyLocation := table.NewCell()
|
||||||
companyLocation.SetContent(newContent("Portland, Oregon, 92019", TextAlignmentLeft, fonts.NewFontTimesRoman(), 8))
|
companyLocation.SetContent(newContent("Portland, Oregon, 92019", TextAlignmentLeft, fonts.NewFontTimesRoman(), 8, ColorBlack))
|
||||||
|
|
||||||
table.SkipCells(1)
|
table.SkipCells(1)
|
||||||
|
|
||||||
printingDate := table.NewCell()
|
printingDate := table.NewCell()
|
||||||
printingDate.SetContent(newContent("Printed on: 22/02/2011", TextAlignmentRight, fonts.NewFontTimesRoman(), 8))
|
printingDate.SetContent(newContent("Printed on: 22/02/2011", TextAlignmentRight, fonts.NewFontTimesRoman(), 8, ColorBlack))
|
||||||
|
|
||||||
companyTelAndFax := table.NewCell()
|
companyTelAndFax := table.NewCell()
|
||||||
companyTelAndFax.SetContent(newContent("Tel: (999) 609-4032 Fax: (999) 999-9922", TextAlignmentLeft, fonts.NewFontTimesRoman(), 8))
|
companyTelAndFax.SetContent(newContent("Tel: (999) 609-4032 Fax: (999) 999-9922", TextAlignmentLeft, fonts.NewFontTimesRoman(), 8, ColorBlack))
|
||||||
|
|
||||||
table.SkipCells(1)
|
table.SkipCells(1)
|
||||||
|
|
||||||
pageOf := table.NewCell()
|
pageOf := table.NewCell()
|
||||||
pageOf.SetContent(newContent("Page 10 of 10", TextAlignmentRight, fonts.NewFontTimesRoman(), 8))
|
pageOf.SetContent(newContent("Page 10 of 10", TextAlignmentRight, fonts.NewFontTimesRoman(), 8, ColorBlack))
|
||||||
|
|
||||||
email := table.NewCell()
|
email := table.NewCell()
|
||||||
email.SetContent(newContent("admin@hendricks.com", TextAlignmentLeft, fonts.NewFontTimesRoman(), 8))
|
email.SetContent(newContent("admin@hendricks.com", TextAlignmentLeft, fonts.NewFontTimesRoman(), 8, ColorBlack))
|
||||||
|
|
||||||
table.SkipCells(2)
|
table.SkipCells(2)
|
||||||
|
|
||||||
website := table.NewCell()
|
website := table.NewCell()
|
||||||
website.SetContent(newContent("www.hendricks.com", TextAlignmentLeft, fonts.NewFontTimesRoman(), 8))
|
website.SetContent(newContent("www.hendricks.com", TextAlignmentLeft, fonts.NewFontTimesRoman(), 8, ColorBlack))
|
||||||
|
|
||||||
table2 := NewTable(5)
|
table2 := NewTable(5)
|
||||||
table2.SetColumnWidths(0.20, 0.20, 0.20, 0.20, 0.20)
|
table2.SetColumnWidths(0.20, 0.20, 0.20, 0.20, 0.20)
|
||||||
table2.SkipCells(5)
|
table2.SkipCells(5)
|
||||||
|
|
||||||
projectName := table2.NewCell()
|
projectName := table2.NewCell()
|
||||||
projectName.SetContent(newContent("Project Name (ID):", TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
projectName.SetContent(newContent("Project Name (ID):", TextAlignmentLeft, fonts.NewFontTimesBold(), 8, projectColorOne))
|
||||||
|
|
||||||
projectNameValue := table2.NewCell()
|
projectNameValue := table2.NewCell()
|
||||||
projectNameValue.SetContent(newContent("Biggi Group", TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
projectNameValue.SetContent(newContent("Biggi Group", TextAlignmentLeft, fonts.NewFontTimesBold(), 8, ColorBlack))
|
||||||
|
|
||||||
table2.SkipCells(3)
|
table2.SkipCells(3)
|
||||||
|
|
||||||
projectID := table2.NewCell()
|
projectID := table2.NewCell()
|
||||||
projectID.SetContent(newContent("Project ID:", TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
projectID.SetContent(newContent("Project ID:", TextAlignmentLeft, fonts.NewFontTimesBold(), 8, projectColorOne))
|
||||||
|
|
||||||
projectIDValue := table2.NewCell()
|
projectIDValue := table2.NewCell()
|
||||||
projectIDValue.SetContent(newContent("BG:01", TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
projectIDValue.SetContent(newContent("BG:01", TextAlignmentLeft, fonts.NewFontTimesBold(), 8, ColorBlack))
|
||||||
|
|
||||||
table2.SkipCells(1)
|
table2.SkipCells(1)
|
||||||
|
|
||||||
contractType := table2.NewCell()
|
contractType := table2.NewCell()
|
||||||
contractType.SetContent(newContent("Contract Type:", TextAlignmentRight, fonts.NewFontTimesBold(), 8))
|
contractType.SetContent(newContent("Contract Type:", TextAlignmentRight, fonts.NewFontTimesBold(), 8, projectColorOne))
|
||||||
|
|
||||||
contractTypeValue := table2.NewCell()
|
contractTypeValue := table2.NewCell()
|
||||||
contractTypeValue.SetContent(newContent("Percentage", TextAlignmentLeft, fonts.NewFontTimesRoman(), 8))
|
contractTypeValue.SetContent(newContent("Percentage", TextAlignmentLeft, fonts.NewFontTimesRoman(), 8, ColorBlack))
|
||||||
|
|
||||||
projectManager := table2.NewCell()
|
projectManager := table2.NewCell()
|
||||||
projectManager.SetContent(newContent("Manager:", TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
projectManager.SetContent(newContent("Manager:", TextAlignmentLeft, fonts.NewFontTimesBold(), 8, projectColorOne))
|
||||||
|
|
||||||
projectManagerValue := table2.NewCell()
|
projectManagerValue := table2.NewCell()
|
||||||
projectManagerValue.SetContent(newContent("SHH", TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
projectManagerValue.SetContent(newContent("SHH", TextAlignmentLeft, fonts.NewFontTimesBold(), 8, ColorBlack))
|
||||||
|
|
||||||
table2.SkipCells(1)
|
table2.SkipCells(1)
|
||||||
|
|
||||||
contractAmount := table2.NewCell()
|
contractAmount := table2.NewCell()
|
||||||
contractAmount.SetContent(newContent("Contract Amount:", TextAlignmentRight, fonts.NewFontTimesBold(), 8))
|
contractAmount.SetContent(newContent("Contract Amount:", TextAlignmentRight, fonts.NewFontTimesBold(), 8, projectColorOne))
|
||||||
|
|
||||||
contractAmountValue := table2.NewCell()
|
contractAmountValue := table2.NewCell()
|
||||||
contractAmountValue.SetContent(newContent("$2,975.00", TextAlignmentLeft, fonts.NewFontTimesRoman(), 8))
|
contractAmountValue.SetContent(newContent("$2,975.00", TextAlignmentLeft, fonts.NewFontTimesRoman(), 8, ColorBlack))
|
||||||
|
|
||||||
clientID := table2.NewCell()
|
clientID := table2.NewCell()
|
||||||
clientID.SetContent(newContent("Client ID:", TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
clientID.SetContent(newContent("Client ID:", TextAlignmentLeft, fonts.NewFontTimesBold(), 8, projectColorOne))
|
||||||
|
|
||||||
clientIDValue := table2.NewCell()
|
clientIDValue := table2.NewCell()
|
||||||
clientIDValue.SetContent(newContent("Baggi ehf", TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
clientIDValue.SetContent(newContent("Baggi ehf", TextAlignmentLeft, fonts.NewFontTimesBold(), 8, ColorBlack))
|
||||||
|
|
||||||
table2.SkipCells(1)
|
table2.SkipCells(1)
|
||||||
|
|
||||||
retainerAmount := table2.NewCell()
|
retainerAmount := table2.NewCell()
|
||||||
retainerAmount.SetContent(newContent("Retainer Amount:", TextAlignmentRight, fonts.NewFontTimesBold(), 8))
|
retainerAmount.SetContent(newContent("Retainer Amount:", TextAlignmentRight, fonts.NewFontTimesBold(), 8, projectColorOne))
|
||||||
|
|
||||||
retainerAmountValue := table2.NewCell()
|
retainerAmountValue := table2.NewCell()
|
||||||
retainerAmountValue.SetContent(newContent("", TextAlignmentLeft, fonts.NewFontTimesRoman(), 8))
|
retainerAmountValue.SetContent(newContent("", TextAlignmentLeft, fonts.NewFontTimesRoman(), 8, ColorBlack))
|
||||||
|
|
||||||
table3 := NewTable(8)
|
table3 := NewTable(8)
|
||||||
table3.SetColumnWidths(0.05, 0.10, 0.35, 0.10, 0.10, 0.10, 0.10, 0.10)
|
table3.SetColumnWidths(0.05, 0.10, 0.35, 0.10, 0.10, 0.10, 0.10, 0.10)
|
||||||
table3.SkipCells(8)
|
table3.SkipCells(8)
|
||||||
|
|
||||||
billNo := table3.NewCell()
|
billNo := table3.NewCell()
|
||||||
billNo.SetContent(newContent("Bill #", TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
billNo.SetContent(newContent("Bill #", TextAlignmentLeft, fonts.NewFontTimesBold(), 8, projectColorOne))
|
||||||
billNo.SetBorder(CellBorderStyleTop, 2)
|
billNo.SetBorder(CellBorderStyleTop, 2)
|
||||||
billNo.SetBorder(CellBorderStyleBottom, 1)
|
billNo.SetBorder(CellBorderStyleBottom, 1)
|
||||||
|
billNo.SetBorderColor(projectColorOne)
|
||||||
|
|
||||||
billDate := table3.NewCell()
|
billDate := table3.NewCell()
|
||||||
billDate.SetContent(newContent("Date", TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
billDate.SetContent(newContent("Date", TextAlignmentLeft, fonts.NewFontTimesBold(), 8, projectColorOne))
|
||||||
billDate.SetBorder(CellBorderStyleTop, 2)
|
billDate.SetBorder(CellBorderStyleTop, 2)
|
||||||
billDate.SetBorder(CellBorderStyleBottom, 1)
|
billDate.SetBorder(CellBorderStyleBottom, 1)
|
||||||
|
billDate.SetBorderColor(projectColorOne)
|
||||||
|
|
||||||
billNotes := table3.NewCell()
|
billNotes := table3.NewCell()
|
||||||
billNotes.SetContent(newContent("Notes", TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
billNotes.SetContent(newContent("Notes", TextAlignmentLeft, fonts.NewFontTimesBold(), 8, projectColorOne))
|
||||||
billNotes.SetBorder(CellBorderStyleTop, 2)
|
billNotes.SetBorder(CellBorderStyleTop, 2)
|
||||||
billNotes.SetBorder(CellBorderStyleBottom, 1)
|
billNotes.SetBorder(CellBorderStyleBottom, 1)
|
||||||
|
billNotes.SetBorderColor(projectColorOne)
|
||||||
|
|
||||||
billAmount := table3.NewCell()
|
billAmount := table3.NewCell()
|
||||||
billAmount.SetContent(newContent("Bill Amount", TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
billAmount.SetContent(newContent("Bill Amount", TextAlignmentLeft, fonts.NewFontTimesBold(), 8, projectColorOne))
|
||||||
billAmount.SetBorder(CellBorderStyleTop, 2)
|
billAmount.SetBorder(CellBorderStyleTop, 2)
|
||||||
billAmount.SetBorder(CellBorderStyleBottom, 1)
|
billAmount.SetBorder(CellBorderStyleBottom, 1)
|
||||||
|
billAmount.SetBorderColor(projectColorOne)
|
||||||
|
|
||||||
billCon := table3.NewCell()
|
billCon := table3.NewCell()
|
||||||
billCon.SetContent(newContent("% Con", TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
billCon.SetContent(newContent("% Con", TextAlignmentLeft, fonts.NewFontTimesBold(), 8, projectColorOne))
|
||||||
billCon.SetBorder(CellBorderStyleTop, 2)
|
billCon.SetBorder(CellBorderStyleTop, 2)
|
||||||
billCon.SetBorder(CellBorderStyleBottom, 1)
|
billCon.SetBorder(CellBorderStyleBottom, 1)
|
||||||
|
billCon.SetBorderColor(projectColorOne)
|
||||||
|
|
||||||
billRetApplied := table3.NewCell()
|
billRetApplied := table3.NewCell()
|
||||||
billRetApplied.SetContent(newContent("Ret Applied", TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
billRetApplied.SetContent(newContent("Ret Applied", TextAlignmentLeft, fonts.NewFontTimesBold(), 8, projectColorOne))
|
||||||
billRetApplied.SetBorder(CellBorderStyleTop, 2)
|
billRetApplied.SetBorder(CellBorderStyleTop, 2)
|
||||||
billRetApplied.SetBorder(CellBorderStyleBottom, 1)
|
billRetApplied.SetBorder(CellBorderStyleBottom, 1)
|
||||||
|
billRetApplied.SetBorderColor(projectColorOne)
|
||||||
|
|
||||||
billRet := table3.NewCell()
|
billRet := table3.NewCell()
|
||||||
billRet.SetContent(newContent("% Ret", TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
billRet.SetContent(newContent("% Ret", TextAlignmentLeft, fonts.NewFontTimesBold(), 8, projectColorOne))
|
||||||
billRet.SetBorder(CellBorderStyleTop, 2)
|
billRet.SetBorder(CellBorderStyleTop, 2)
|
||||||
billRet.SetBorder(CellBorderStyleBottom, 1)
|
billRet.SetBorder(CellBorderStyleBottom, 1)
|
||||||
|
billRet.SetBorderColor(projectColorOne)
|
||||||
|
|
||||||
billNetBill := table3.NewCell()
|
billNetBill := table3.NewCell()
|
||||||
billNetBill.SetContent(newContent("Net Bill Amt", TextAlignmentLeft, fonts.NewFontTimesBold(), 8))
|
billNetBill.SetContent(newContent("Net Bill Amt", TextAlignmentLeft, fonts.NewFontTimesBold(), 8, projectColorOne))
|
||||||
billNetBill.SetBorder(CellBorderStyleTop, 2)
|
billNetBill.SetBorder(CellBorderStyleTop, 2)
|
||||||
billNetBill.SetBorder(CellBorderStyleBottom, 1)
|
billNetBill.SetBorder(CellBorderStyleBottom, 1)
|
||||||
|
billNetBill.SetBorderColor(projectColorOne)
|
||||||
|
|
||||||
newBillItem(table3, "1", "1/2/2012", "", "$297.50", "", "$0.00", "", "$297.50")
|
newBillItem(table3, "1", "1/2/2012", "", "$297.50", "", "$0.00", "", "$297.50")
|
||||||
newBillItem(table3, "2", "1/2/2012", "", "$595.00", "", "$0.00", "", "$595.00")
|
newBillItem(table3, "2", "1/2/2012", "", "$595.00", "", "$0.00", "", "$595.00")
|
||||||
@ -1229,24 +1241,24 @@ func TestCreatorHendricksReq1(t *testing.T) {
|
|||||||
table3.SkipCells(2 + 8)
|
table3.SkipCells(2 + 8)
|
||||||
|
|
||||||
totalBill := table3.NewCell()
|
totalBill := table3.NewCell()
|
||||||
totalBill.SetContent(newContent("Total: ", TextAlignmentRight, fonts.NewFontTimesBold(), 8))
|
totalBill.SetContent(newContent("Total: ", TextAlignmentRight, fonts.NewFontTimesBold(), 8, projectColorTwo))
|
||||||
|
|
||||||
totalBillAmount := table3.NewCell()
|
totalBillAmount := table3.NewCell()
|
||||||
totalBillAmount.SetContent(newContent("$3,272.50", TextAlignmentRight, fonts.NewFontTimesBold(), 8))
|
totalBillAmount.SetContent(newContent("$3,272.50", TextAlignmentRight, fonts.NewFontTimesBold(), 8, projectColorTwo))
|
||||||
totalBillAmount.SetBorder(CellBorderStyleDoubleTop, 1)
|
totalBillAmount.SetBorder(CellBorderStyleDoubleTop, 1)
|
||||||
totalBillAmount.SetBorder(CellBorderStyleBottom, 1)
|
totalBillAmount.SetBorder(CellBorderStyleBottom, 1)
|
||||||
|
|
||||||
table3.SkipCells(1)
|
table3.SkipCells(1)
|
||||||
|
|
||||||
totalRetAmount := table3.NewCell()
|
totalRetAmount := table3.NewCell()
|
||||||
totalRetAmount.SetContent(newContent("$0.00", TextAlignmentRight, fonts.NewFontTimesBold(), 8))
|
totalRetAmount.SetContent(newContent("$0.00", TextAlignmentRight, fonts.NewFontTimesBold(), 8, projectColorTwo))
|
||||||
totalRetAmount.SetBorder(CellBorderStyleDoubleTop, 1)
|
totalRetAmount.SetBorder(CellBorderStyleDoubleTop, 1)
|
||||||
totalRetAmount.SetBorder(CellBorderStyleBottom, 1)
|
totalRetAmount.SetBorder(CellBorderStyleBottom, 1)
|
||||||
|
|
||||||
table3.SkipCells(1)
|
table3.SkipCells(1)
|
||||||
|
|
||||||
totalNetAmount := table3.NewCell()
|
totalNetAmount := table3.NewCell()
|
||||||
totalNetAmount.SetContent(newContent("$3,272.50", TextAlignmentRight, fonts.NewFontTimesBold(), 8))
|
totalNetAmount.SetContent(newContent("$3,272.50", TextAlignmentRight, fonts.NewFontTimesBold(), 8, projectColorTwo))
|
||||||
totalNetAmount.SetBorder(CellBorderStyleDoubleTop, 1)
|
totalNetAmount.SetBorder(CellBorderStyleDoubleTop, 1)
|
||||||
totalNetAmount.SetBorder(CellBorderStyleBottom, 1)
|
totalNetAmount.SetBorder(CellBorderStyleBottom, 1)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user