github.com/Mikey1964x/excel2pdf

Converts an Excel file to PDF


License
MIT
Install
go get github.com/Mikey1964x/excel2pdf

Documentation

excel2pdf

Converts an Excel file to PDF, compatible with both Windows and Linux. Uses either LibreOffice or Microsoft Excel, with LibreOffice given priority if installed.

var excelPath = `file.xlsx`

func main() {
    pdfFilePath,err := excel2pdf.ConvertExcelToPdf(excelPath)
	fmt.Println(pdfFilePath, err)
}