https://github.com/francescoalemanno/gotypst
gotypst is a Go package that compiles Typst code into a PDF. It provides an easy-to-use function to pass Typst markup as bytes and receive the compiled PDF as bytes. This can be used to integrate Typst into Go projects, automate PDF generation, or add Typst support to your web services.
https://github.com/francescoalemanno/gotypst
pdf-generation report-generation typesetting
Last synced: about 1 year ago
JSON representation
gotypst is a Go package that compiles Typst code into a PDF. It provides an easy-to-use function to pass Typst markup as bytes and receive the compiled PDF as bytes. This can be used to integrate Typst into Go projects, automate PDF generation, or add Typst support to your web services.
- Host: GitHub
- URL: https://github.com/francescoalemanno/gotypst
- Owner: francescoalemanno
- License: apache-2.0
- Created: 2024-09-15T10:53:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-06T08:09:55.000Z (over 1 year ago)
- Last Synced: 2025-04-13T15:05:30.570Z (about 1 year ago)
- Topics: pdf-generation, report-generation, typesetting
- Language: Go
- Homepage: https://github.com/francescoalemanno/gotypst
- Size: 217 MB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gotypst
[](https://goreportcard.com/report/github.com/francescoalemanno/gotypst)
[](https://pkg.go.dev/github.com/francescoalemanno/gotypst)
gotypst is a Go package that compiles Typst code into a PDF. It provides an easy-to-use function to pass Typst markup as bytes and receive the compiled PDF as bytes. This can be used to integrate Typst into Go projects, automate PDF generation, or add Typst support to your web services.
Features
- Convert Typst code into PDF on the fly
- Flexible options for customization
- Simple, minimal interface
## example
```go
package main
import (
"fmt"
"github.com/francescoalemanno/gotypst"
)
func main() {
bts, err := gotypst.PDF([]byte("= hello"))
if err!=nil {
return
}
fmt.Println(bts)
}
```