weightticketparser

package
v0.0.0-...-cc5767a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsWeightEstimatorFile

func IsWeightEstimatorFile(appCtx appcontext.AppContext, file io.ReadCloser) (bool, error)

func NewWeightTicketComputer

func NewWeightTicketComputer() services.WeightTicketComputer

NewWeightTicketComputer creates a WeightTicketComputer

func NewWeightTicketParserGenerator

func NewWeightTicketParserGenerator(pdfGenerator *paperwork.Generator) (services.WeightTicketGenerator, error)

NewWeightTicketParserGenerator creates a WeightTicketParserGenerator

Types

type WeightTicketComputer

type WeightTicketComputer struct {
}

WeightTicketComputer is the concrete struct implementing the services.weightticketparser interface

func (*WeightTicketComputer) ParseWeightEstimatorExcelFile

func (WeightTicketComputer *WeightTicketComputer) ParseWeightEstimatorExcelFile(appCtx appcontext.AppContext, file io.ReadCloser) (*services.WeightEstimatorPages, error)

Parses a Weight Estimator Spreadsheet file and returns services.WeightEstimatorPages populated with the parsed data

type WeightTicketGenerator

type WeightTicketGenerator struct {
	// contains filtered or unexported fields
}

WeightTicketGenerator is the concrete struct implementing the services.weightticketparser interface

func (*WeightTicketGenerator) FillWeightEstimatorPDFForm

func (WeightTicketParserGenerator *WeightTicketGenerator) FillWeightEstimatorPDFForm(PageValues services.WeightEstimatorPages, fileName string) (afero.File, *pdfcpu.PDFInfo, error)

FillWeightEstimatorPDFForm takes form data and fills an existing Weight Estimaator PDF template with data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL