Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 949 Bytes

README.md

File metadata and controls

47 lines (32 loc) · 949 Bytes

go-pdf2svg

Go

go-pdf2svg is a Go package for convert PDF to SVG and use for Web and Easy to use it. SVG is best for high quality for web.

Installation

This package required inkscape

# apt install inkscape # debian, Ubuntu
# dnf install inkscape # Fedora, Redhat

Usage

package main

import (
	"log"
	c "github.com/fajrulaulia/go-pdf2svg"
)

func main() {
	err := c.Exporter("DirOfFilePDF.pdf", "newSvgFile")
	if err != nil {
		log.Fatal(err)
		return
	}
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Author

FAJRUL AULUA