typst / typst/typst

Embed source code in PDF

Open
#1,465 17 comments 32 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request pdf
Dominant language
Rust
Stars
56.1k
Forks
1.7k
Avg merge
3d 10h
Merged PRs (30d)
22

Description

Description

Similarly to draw.io, there should be an option to embed the source code in the compiled PDF file, so that the code wouldn't be lost.

Use Case

You'd be able to easily pass around editable documents, sending just the PDF file (instead of PDF + TYP). Also, when given a PDF file whose layout you really like, you'd be able to use it as a template if it contains the source code.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by tracing the compiled PDF output path and how source files are handled, then determine how an embedding option should be exposed and recovered from a PDF. Done means a defined, tested way to include and retrieve the source without requiring a separate TYP file.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.