pdf_generator

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 1099-MISC Copy B
	PdfMscCopyB = "1099msc_copy_b"
	// 1099-MISC Copy C
	PdfMscCopyC = "1099msc_copy_c"
	// 1099-MISC(NEC) Copy B
	PdfNecCopyB = "1099nec_copy_b"
	// 1099-MISC(NEC) Copy C
	PdfNecCopyC = "1099nec_copy_c"
)

Variables

This section is empty.

Functions

func GeneratePdf

func GeneratePdf(p *Pdf1099Misc) ([]byte, error)

Generate pdf file form Pdf1099Misc struct using pdftk

func MergePdfs

func MergePdfs(files [][]byte) ([]byte, error)

Generate pdf file form Pdf1099Misc struct using pdftk

Types

type Pdf1099Misc

type Pdf1099Misc struct {
	Type          string
	VoID          bool
	Corrected     bool
	Fatca         bool
	SecondTin     bool
	DirectSale    bool
	PayerInfo     string
	PayerTin      string
	RecipientTin  string
	RecipientName string
	Street        string
	City          string
	AccountNumber string
	Rents         int
	Royalties     int
	Other         int
	Federal       int
	Fishing       int
	Medical       int
	Substitute    int
	Crop          int
	Gross         int
	Section       int
	Excess        int
	Nonqualified  int
	Nonemployee   int
	StateTax1     int
	StateTax2     int
	StateIncome1  int
	StateIncome2  int
	StateNo1      string
	StateNo2      string
	// contains filtered or unexported fields
}

Pdf struct for 1099-MISC

Jump to

Keyboard shortcuts

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