Documentation ¶
Index ¶
- Constants
- func GenerateExpenseRec(s schema.Schema, exp schema.Expense, dstPath string, downConvert bool, ...)
- func GenerateExpensesRec(s schema.Schema, dstFolder string, doOverwrite, downConvert bool)
- func GenerateInvoiceRec(s schema.Schema, inv schema.Invoice, dstPath string, downConvert bool, ...)
- func GenerateInvoicesRec(s schema.Schema, dstPath string, doOverwrite, downConvert bool)
- func GenerateMiscRec(s schema.Schema, mrc schema.MiscRecord, dstPath string, downConvert bool, ...)
- func GenerateMiscsRec(s schema.Schema, dstPath string, doOverwrite, downConvert bool)
- type Pdf
- type PdfVersion
- type Properties
- type ScrType
Constants ¶
const NA = "n.a."
Variables ¶
This section is empty.
Functions ¶
func GenerateExpenseRec ¶
func GenerateExpenseRec(s schema.Schema, exp schema.Expense, dstPath string, downConvert bool, wg *sync.WaitGroup)
GenerateExpenseRec generates and saves the record PDF for a given expense.
func GenerateExpensesRec ¶
GenerateExpensesRec generates an record document for all expenses in the given schema. The PDFs will then be saved into the given destination folder. DownConvert (converting all PDF's to a PostScript file and back) should be done always as gopdf will have otherwise problems embedding most PDFs.
func GenerateInvoiceRec ¶
func GenerateInvoiceRec(s schema.Schema, inv schema.Invoice, dstPath string, downConvert bool, wg *sync.WaitGroup)
GenerateInvoiceRec generates and saves the record PDF for a given invoice.
func GenerateInvoicesRec ¶
GenerateInvoicesRec generates an record document for all invoices in the given schema. The PDFs will then be saved into the given destination folder. DownConvert (converting all PDF's to a PostScript file and back) should be done always as gopdf will have otherwise problems embedding most PDFs.
func GenerateMiscRec ¶
func GenerateMiscRec(s schema.Schema, mrc schema.MiscRecord, dstPath string, downConvert bool, wg *sync.WaitGroup)
GenerateMiscRec generates and saves the record PDF for a given misc-record.
func GenerateMiscsRec ¶
GenerateMiscsRec generates an record document for all misc-records in the given schema. The PDFs will then be saved into the given destination folder. DownConvert (converting all PDF's to a PostScript file and back) should be done always as gopdf will have otherwise problems embedding most PDFs.
Types ¶
type Pdf ¶
type Pdf struct { SrcPath string ScrType ScrType DstPath string // contains filtered or unexported fields }
Pdf is the PDF document structure for report PDFs.
func (*Pdf) Generate ¶
func (p *Pdf) Generate(props Properties, downConvert bool)
Generate generates and saves the file for a given Pdf element.