Export a .typ file to PDF, then prepare a scan-style copy
LensUp does not open or compile .typ files, so the PDF has to come from Typst. In the Typst web app, export the document as PDF; on your own computer, use the typst compile command. A project or source ZIP is not the PDF. Once you have the PDF and have checked it, you can make an image-only copy in the LensUp scanner or use PDF to scanned PDF for a scan-style copy with slight grain and tilt. Both copies are made of page images and lose selectable text and links.
Steps
- Get a clean compile first
Open the project and check the preview and the error list. Typst only produces a PDF from a document that compiles, so fix errors such as a missing image path, an unknown function or a misspelled label in Typst itself. LensUp cannot repair a .typ file and never needs your source.
- Web app: export as PDF
Use the export option in the Typst web app and choose PDF; Typst documents this in its Export and Preview guide. Save the file where you can find it. Don't confuse this with downloading the project: the project ZIP holds .typ files, images and other assets, not the typeset document.
- On your computer: run typst compile
With the Typst CLI installed, run typst compile input.typ output.pdf in the folder that contains your main file, replacing the names with your own. PDF is the default output, and typst watch input.typ recompiles while you edit. If you moved a project out of the web app, keep images and data files at the same relative paths and install the fonts it uses; a missing font or asset can change the layout or stop compilation.
- Open the PDF and check it
Open the PDF in a browser or PDF reader. Check the page count, page size, fonts, equations, figures and links. Fix anything wrong in Typst and export again; changes made to the PDF afterwards are lost the next time you compile.
- Optional: prepare an image-only or scan-style copy in LensUp
Open the LensUp scanner and import the exported PDF. On a page with small text or an equation, compare Color, Grayscale and White document; avoid Black & white if thin lines or subscripts break up. Check the page order, export a new PDF and keep the Typst PDF as your original. Those effects make image pages without adding grain or tilt. To add grain and tilt, open PDF to scanned PDF and keep “Scanned look” selected.

Synthetic control: a sample PDF made for this guide, not compiled by Typst, imported into the LensUp scanner. Demo file: typst-control-sample.pdf. 
Synthetic control: the sample equation page in the Result preview with Grayscale selected. Demo file: typst-control-sample.pdf.
What a scan-style copy keeps and loses
A PDF compiled by Typst can contain selectable text, vector formulas and links. The scanner renders each page to an image. Links stop working and text is no longer selectable. The rasterized export has no searchable text layer. LensUp offers PDF OCR separately.
Math and small type show the effect first. Fraction bars, subscripts, hairline table rules and light gray text can blur or disappear in a strong document mode, so inspect the Result preview or zoom in on a reopened export. An image-based PDF is also usually larger than the compiled original; check its size before uploading it somewhere with a file limit.
When Typst export fails or looks wrong
No PDF where you expected it: check the compiler diagnostics and the export location. If the compiler reports an error, fix the first one and compile again.
Different fonts or line breaks between the web app and your computer: the available fonts differ. Add the font files to the project or install them locally, then compile again.
Missing image or data file: relative paths are resolved from the file that refers to them. Paths starting with / resolve from the project root. Keep the project's folder structure when compiling locally. If the PDF will not open, check the export messages and confirm you opened the correct file before exporting again.
Combining chapters and ordering pages
If the document is split across several .typ files, compile the main file that includes the others so numbering, references and the table of contents stay consistent. If you have separately exported PDFs, such as a title page made elsewhere, combine them with Merge PDF and confirm the order in the result. Merging does not renumber pages or update cross-references.
Use a scan-style copy only where an image-based PDF is appropriate. It does not show that a paper document was signed or scanned, and no setting guarantees that a recipient will accept it.
Frequently asked questions
Can I upload a .typ file to LensUp?
No. Export or compile the PDF in Typst first, then open that PDF in a LensUp tool.
Is the Typst project download the same as the PDF?
No. The project or source ZIP contains .typ files and assets. Use the PDF export in the web app, or compile locally to produce the PDF.
Why does my locally compiled PDF differ from the web app?
Usually fonts or assets: a font the web project used is missing on your computer, or a file sits at a different path. Install or add the font, keep the project folders intact and compile again.
Will equations stay sharp in the scan-style copy?
They become pixels. Check thin lines and subscripts at high zoom, prefer Color or Grayscale over Black & white for math-heavy pages, and keep the Typst PDF when quality matters.
Does LensUp run Typst on a server?
No. LensUp does not run Typst or any other compiler. You compile in the Typst web app or on your own computer.
Why is the scan-style PDF larger than the original?
Each page is stored as an image instead of text and vector shapes. Leave out pages you don't need, or send the original PDF where a size limit applies.
Once the Typst PDF opens correctly, import it to prepare an image-only copy.
Open your Typst PDF in the scanner