pdf

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const InfoImageURL = "https://home.ulbi.ac.id/ulbi.png"

Variables

This section is empty.

Functions

func AddHeadText

func AddHeadText(pdf *gofpdf.Fpdf, spacing, x float64, align, text string) *gofpdf.Fpdf

func AddNameText

func AddNameText(pdf *gofpdf.Fpdf, Text string, spacing, x, size float64) *gofpdf.Fpdf

func AddText added in v0.0.5

func AddText(pdf *gofpdf.Fpdf, x, y float64, text string) *gofpdf.Fpdf

func AddTextCustomSize added in v0.1.4

func AddTextCustomSize(pdf *gofpdf.Fpdf, x, y, size float64, text string) *gofpdf.Fpdf

func CreateHeaderBAP added in v0.1.9

func CreateHeaderBAP(Text []string, x float64) *gofpdf.Fpdf

func CreatePDFBAP added in v0.1.9

func CreatePDFBAP(Text []string, filename, filename2, filename3, filename4, filenamee5 string) string

func DownloadFile

func DownloadFile(filepath string, url string) error

func FileExists

func FileExists(filename string) bool

func ImageCustomize added in v0.0.9

func ImageCustomize(pdf *gofpdf.Fpdf, filename, urlimage string, x, y, w, h, wimg, himg, borderWidth float64) *gofpdf.Fpdf

func ImagePdf

func ImagePdf(pdf *gofpdf.Fpdf, filename, urlimage string) *gofpdf.Fpdf

func PDFToBase64

func PDFToBase64(filePath string) (string, error)

func SavePDF

func SavePDF(pdf *gofpdf.Fpdf, path string) error

func SetHeaderTable

func SetHeaderTable(pdf *gofpdf.Fpdf, hdr []string, widths []float64, rgb []int) *gofpdf.Fpdf

func SetKambingContent added in v0.0.5

func SetKambingContent(pdf *gofpdf.Fpdf, tbl [][]string, widths []float64, align []string) *gofpdf.Fpdf

func SetMergedCell

func SetMergedCell(pdf *gofpdf.Fpdf, text, align string, width float64, rgb []int) *gofpdf.Fpdf

func SetMergedCellSkyBlue added in v0.0.5

func SetMergedCellSkyBlue(pdf *gofpdf.Fpdf, text string, width float64) *gofpdf.Fpdf

func SetTableContent

func SetTableContent(pdf *gofpdf.Fpdf, tbl [][]string, widths []float64, align []string) *gofpdf.Fpdf

func SetTableContentCustomY added in v0.1.4

func SetTableContentCustomY(pdf *gofpdf.Fpdf, tbl [][]string, widths []float64, align []string, customY []float64) *gofpdf.Fpdf

func SignatureImage added in v0.0.5

func SignatureImage(pdf *gofpdf.Fpdf, filename string, x, spacing float64, textlines []string, textYOffset float64) *gofpdf.Fpdf

Types

This section is empty.

Jump to

Keyboard shortcuts

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