Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fajrulaulia/go-pdf2svg
Tool converter PDF to SVG using golang and lib inkscape
https://github.com/fajrulaulia/go-pdf2svg
golang inkscape pdf pdf2svg svg
Last synced: about 6 hours ago
JSON representation
Tool converter PDF to SVG using golang and lib inkscape
- Host: GitHub
- URL: https://github.com/fajrulaulia/go-pdf2svg
- Owner: fajrulaulia
- Created: 2021-04-03T21:40:43.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-16T04:27:38.000Z (over 2 years ago)
- Last Synced: 2024-06-20T06:28:25.720Z (5 months ago)
- Topics: golang, inkscape, pdf, pdf2svg, svg
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-pdf2svg
[![Go](https://github.com/fajrulaulia/go-pdf2svg/actions/workflows/go.yml/badge.svg)](https://github.com/fajrulaulia/go-pdf2svg/actions/workflows/go.yml)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`
```bash
# apt install inkscape # debian, Ubuntu
# dnf install inkscape # Fedora, Redhat```
## Usage
```go
package mainimport (
"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](https://choosealicense.com/licenses/mit/)## Author
[FAJRUL AULUA](https://twitter.com/fajrulgopher)