pdfcpu

package
v0.0.0-...-4b8cb1b Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFileContent

func ExtractFileContent(filePath, tempDir, fileName string) (extractedLines string, patternsCount int, err error)

func ExtractRawPDF

func ExtractRawPDF(pdfPath, fileName string)

func ProcessExtractedPDF

func ProcessExtractedPDF(txtPath string)

Types

type NitInRut

type NitInRut struct {
	NIT string
	DV  string
}

func ExtractIdentification

func ExtractIdentification(content string) (nitInRut *NitInRut, remainingLines []string)

type PartialResolutionData

type PartialResolutionData struct {
	Resolution    Resolution
	InvoiceNumber int32
	InvoiceLimit  int32
}

func ExtractResolutionFields

func ExtractResolutionFields(remainingLines []string) *PartialResolutionData

type PartialRutData

type PartialRutData struct {
	FirstName     string
	SecondName    string
	FirstSurname  string
	SecondSurname string
	CompanyName   string
	PartyType     string
	IDType        string
	CountryCode   string
	Dept          string
	City          string
	Address       string
	Email         string
	Phone1        string
	Phone2        string
	TaxLevel      string
}

type Resolution

type Resolution struct {
	Prefix     string
	Number     int64
	LifeMonths int32
	StartDate  time.Time
	EndDate    time.Time
}

Jump to

Keyboard shortcuts

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