Typst to PDF

Compile Typst to PDF

Returns the PDF itself, or one page as an image. A mistake in the document returns 422 with Typst's message, line and column.

post/v1/typst

Request

  • Base URL: https://api.dharun.dev
  • URL: https://api.dharun.dev/v1/typst
  • Auth: none declared

Query parameters

format'pdf' | 'png' | 'svg'

Default pdf.

pageinteger

png and svg: which page. Default 1.

ppiinteger

png: pixels per inch, 36 to 300. Default 144.

Request body

format'pdf' | 'png' | 'svg'

Default pdf.

pageinteger

png and svg: which page. Default 1.

ppiinteger

png: pixels per inch, 36 to 300. Default 144.

textstring required

The Typst document.

Response

Success

Changes

No recorded changes to this operation across all 1 revision of this API.