diff --git a/go.mod b/go.mod index 8cd6951..8ec2ae6 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitea.tecamino.com/paadi/html2pdf.git +module gitea.tecamino.com/paadi/html2pdf go 1.25.4 diff --git a/html2pdf.go b/html2pdf.go index 8b6c0af..09555cd 100644 --- a/html2pdf.go +++ b/html2pdf.go @@ -1,32 +1,8 @@ package html2pdf -import "gitea.tecamino.com/paadi/html2pdf.git/converter" +import "gitea.tecamino.com/paadi/html2pdf/converter" func Convert(chromePath, inputFile, outputFile string) error { c := converter.NewConverter(chromePath) return c.Convert(inputFile, outputFile) - // chromePath := "chrome-headless-shell" - // htmlURL := "file://" - // switch runtime.GOOS { - // case "windows": - // chromePath += ".exe" - // htmlURL += "/" - // default: - // } - - // // Convert to absolute path - // absPath, err := filepath.Abs(imputFile) - // if err != nil { - // return err - // } - - // htmlURL += filepath.ToSlash(absPath) - // chromePath = filepath.Join(c.chromePath, chromePath) - - // opts := append(chromedp.DefaultExecAllocatorOptions[:], - // chromedp.ExecPath(chromePath), - // chromedp.NoSandbox, - // chromedp.Headless, - // chromedp.DisableGPU, - // ) }