Documentation ¶
Index ¶
- func AddImage(pdf *gofpdf.Fpdf, image string, x, y, w, h float64) *gofpdf.Fpdf
- func EncodePDF(pdf *gofpdf.Fpdf) string
- func FontStyle(pdf *gofpdf.Fpdf, style string, size float64, bw int, fontFamily string)
- func GetFacultadDelProyectoC(projectIdOikos string) (map[string]any, error)
- func GetProyectoCurricular(proyectoId int) (map[string]any, error)
- func Hex2RGB(hexString string) ([3]int, error)
- func Map2String(inMap map[string]any) (string, error)
- func MapValues[M ~map[K]V, K comparable, V any](m M) []V
- func SplitTrimSpace(s, sep string) []string
- type PageStyle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddImage ¶
AddImage agrega imagen de archivo a pdf, w o h en cero autoajusta segun ratio imagen
func GetFacultadDelProyectoC ¶
func MapValues ¶
func MapValues[M ~map[K]V, K comparable, V any](m M) []V
func SplitTrimSpace ¶
SplitTrimSpace use Split function to slices s into all substrings separated by sep and use TrimSpace to remove space and return a slice of the substrings.
Types ¶
type PageStyle ¶
type PageStyle struct { ML float64 // margen izq MT float64 // margen sup MR float64 // margen der MB float64 // margen inf WW float64 // ancho area trabajo HW float64 // alto area trabajo HH float64 // alto header HB float64 // alto body HF float64 // alto footer BaseColorRGB [3]int SecondaryColorRGB [3]int ComplementaryColorRGB [3]int }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.