Commit 49d3d38b authored by Benjamin Rokseth's avatar Benjamin Rokseth
Browse files

Remove unused wkhtmltopdf

parent 96470ca0
......@@ -26,10 +26,10 @@ var (
)
/*
* Prerequisites:
* wkhtmltopdf binary MUST be downloaded to /usr/bin
* Requirements:
* this file needs to be chown root and chmod 755 executable in /usr/lib/cups/backend/
* job needs two extra options passed: koha-printer-type and koha-origin-ip
* a running athena pdf generator service must be running at localhost:8089
* job needs two extra options passed: `koha-printer-type` and `koha-origin-ip`
* kohaprinter_mapping.json mapping must exist beside this file
*/
func main() {
......@@ -84,7 +84,6 @@ func main() {
}
// All good, lets render
// switch to athenapdf
var data []byte
// Read job data from file or stdin
if os.Args[6] != "" {
......@@ -152,21 +151,6 @@ func main() {
args = []string{"-d", "dummy", tmpf.Name()}
}
/* pdfg.NoPdfCompression.Set(true)
pdfg.AddPage(wkhtml.NewPageReader(strings.NewReader(string(data))))
err = pdfg.Create()
if err != nil {
fail(err)
}
if _, err := tmpf.Write(pdfg.Bytes()); err != nil {
fail(err)
}
if err := tmpf.Close(); err != nil {
fail(err)
}*/
Log.Printf("[INFO ] ARGS: %s\n", args)
out, err := exec.Command("lp", args...).Output()
if err != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment