document

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDate

func FormatDate(in *string)

func SetData added in v1.2.0

func SetData(fontFS, rfzoLogoFS embed.FS) error

Types

type Document

type Document interface {
	BuildPdf() ([]byte, string, error)
	BuildUI(func(), *widgets.StatusBar) *fyne.Container
}

type IdDocument added in v1.2.0

type IdDocument struct {
	Loaded                 bool
	Photo                  image.Image
	DocumentNumber         string
	IssuingDate            string
	ExpiryDate             string
	IssuingAuthority       string
	PersonalNumber         string
	Surname                string
	GivenName              string
	ParentName             string
	Sex                    string
	PlaceOfBirth           string
	CommunityOfBirth       string
	StateOfBirth           string
	StateOfBirthCode       string
	DateOfBirth            string
	State                  string
	Community              string
	Place                  string
	Street                 string
	AddressNumber          string
	AddressLetter          string
	AddressEntrance        string
	AddressFloor           string
	AddressApartmentNumber string
	AddressDate            string
}

func (*IdDocument) BuildPdf added in v1.2.0

func (doc *IdDocument) BuildPdf() ([]byte, string, error)

func (IdDocument) BuildUI added in v1.2.0

func (doc IdDocument) BuildUI(pdfHandler func(), statusBar *widgets.StatusBar) *fyne.Container

type MedicalDocument added in v1.2.0

type MedicalDocument struct {
	PersonalNumber                 string
	Surname                        string
	GivenName                      string
	ParentName                     string
	SurnameCyrl                    string
	GivenNameCyrl                  string
	ParentNameCyrl                 string
	Sex                            string
	InsuranceNumber                string
	Language                       string
	DateOfBirth                    string
	AddressApartmentNumber         string
	AddressNumber                  string
	AddressStreet                  string
	AddressTown                    string
	AddressMunicipality            string
	AddressState                   string
	CardIssueDate                  string
	CardExpiryDate                 string
	ValidUntil                     string
	PermanentlyValid               bool
	InsuranceHolderName            string
	InsuranceHolderSurname         string
	InsuranceHolderNameCyrl        string
	InsuranceHolderSurnameCyrl     string
	InsuranceHolderPersonalNumber  string
	InsuranceHolderInsuranceNumber string
	InsuranceHolderIsFamilyMember  bool
	InsuranceHolderRelation        string
	InsuranceReason                string
	InsuranceStartDate             string
	InsuranceDescription           string
	ObligeeName                    string
	ObligeePlace                   string
	ObligeeRegistrationNumber      string
	ObligeeIdNumber                string
	ObligeeActivity                string
}

func (*MedicalDocument) BuildPdf added in v1.2.0

func (doc *MedicalDocument) BuildPdf() ([]byte, string, error)

func (MedicalDocument) BuildUI added in v1.2.0

func (doc MedicalDocument) BuildUI(pdfHandler func(), statusBar *widgets.StatusBar) *fyne.Container

Jump to

Keyboard shortcuts

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