remove .git
This commit is contained in:
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
||||
module gitea.tecamino.com/paadi/html2pdf.git
|
||||
module gitea.tecamino.com/paadi/html2pdf
|
||||
|
||||
go 1.25.4
|
||||
|
||||
|
||||
26
html2pdf.go
26
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,
|
||||
// )
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user