Skip to content

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.

License

Notifications You must be signed in to change notification settings

francescoalemanno/gotypst

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gotypst

Go Report Card API Reference

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

package main

import (
	"fmt"
	"github.com/francescoalemanno/gotypst"
)

func main() {
    bts, err := gotypst.PDF([]byte("= hello"))
    if err!=nil {
        return
    }
    fmt.Println(bts)
}

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages