Versions in this module Expand all Collapse all v0 v0.2.4 May 8, 2024 v0.2.3 Nov 2, 2023 Changes in this version + const BaseMargin + const BaseMarginTop + const DeliveryNote + const HeaderMarginTop + const Invoice + const ItemColNameOffset + const ItemColProductNumberOffset + const ItemColQuantityOffset + const ItemColTaxOffset + const ItemColTotalHTOffset + const ItemColTotalTTCOffset + const ItemColUnitPriceOffset + const MaxPageHeight + const Quotation + var BaseTextColor = []int + var BaseTextFontSize float64 = 8 + var DarkBgColor = []int + var ExtraSmallTextFontSize float64 = 6 + var GreyBgColor = []int + var GreyTextColor = []int + var LargeTextFontSize float64 = 10 + var SmallTextFontSize float64 = 7 + type Address struct + Address string + Address2 string + City string + Country string + Extend string + Phone string + PostalCode string + func (a *Address) ToLineString() string + func (a *Address) ToString() string + type Contact struct + Address *Address + Logo *[]byte + Name string + type Discount struct + Amount string + Percent string + type Document struct + BankingDetails string + ClientRef string + Company *Contact + Customer *Contact + Date string + DefaultTax *Tax + Description string + Discount *Discount + Footer *HeaderFooter + Header *HeaderFooter + Items []*Item + Notes string + Options *Options + PaymentTerm string + Ref string + Type string + ValidityDate string + Version string + func New(docType string, options *Options) (*Document, error) + func (d *Document) AppendItem(item *Item) *Document + func (d *Document) Build() (*gofpdf.Fpdf, error) + func (d *Document) SetBankingDetails(details string) *Document + func (d *Document) SetCompany(company *Contact) *Document + func (d *Document) SetCustomer(customer *Contact) *Document + func (d *Document) SetDate(date string) *Document + func (d *Document) SetDefaultTax(tax *Tax) *Document + func (d *Document) SetDescription(desc string) *Document + func (d *Document) SetDiscount(discount *Discount) *Document + func (d *Document) SetFooter(footer *HeaderFooter) *Document + func (d *Document) SetHeader(header *HeaderFooter) *Document + func (d *Document) SetNotes(notes string) *Document + func (d *Document) SetPaymentTerm(term string) *Document + func (d *Document) SetRef(ref string) *Document + func (d *Document) SetType(docType string) *Document + func (d *Document) SetVersion(version string) *Document + func (d *Document) Validate() error + type HeaderFooter struct + FontSize float64 + Pagination bool + Text string + UseCustomFunc bool + func (hf *HeaderFooter) ApplyFunc(pdf *gofpdf.Fpdf, fn fnc) + type Item struct + Description string + Discount *Discount + Name string + ProductNumber string + Quantity string + Tax *Tax + UnitCost string + type Options struct + AutoPrint bool + CurrencyDecimal string + CurrencyPrecision int + CurrencySymbol string + CurrencyThousand string + TextDateTitle string + TextItemsDiscountTitle string + TextItemsNameTitle string + TextItemsProductNumberTitle string + TextItemsQuantityTitle string + TextItemsTaxTitle string + TextItemsTotalHTTitle string + TextItemsTotalTTCTitle string + TextItemsUnitCostTitle string + TextPaymentTermTitle string + TextRefTitle string + TextTotalDiscounted string + TextTotalTax string + TextTotalTotal string + TextTotalWithTax string + TextTypeDeliveryNote string + TextTypeInvoice string + TextTypeQuotation string + TextVersionTitle string + type Tax struct + Amount string + Percent string