Source code PDF generator for student projects
775
Source Printer turns a zip full of student coding projects into syntax-highlighted PDFs.
It parses source files from uploaded project archives, renders them with configurable formatting, and returns either a single merged PDF or a zip of per-project PDFs.
docker run --rm -p 8080:8080 haanlaurent/sourceprinter:latest
Then open:
http://localhost:8080
Run a specific version tag:
docker run --rm -p 8080:8080 haanlaurent/sourceprinter:v0.9.4
| Variable | Default | Description |
|---|---|---|
PORT | 8080 | Port the server listens on |
RENDER_CONCURRENCY | 2 | Number of files rendered in parallel within a single job |
MAX_ACTIVE_JOBS | 2 | Maximum number of render jobs running simultaneously |
MAX_QUEUED_JOBS | 8 | Maximum number of jobs waiting in the queue before returning HTTP 429 |
MAX_ZIP_BYTES | 52428800 | Maximum upload size for the zip file (bytes) |
MAX_TOTAL_BYTES | 52428800 | Maximum total size of all extracted source files combined (bytes) |
MAX_UMZ_BYTES | 10485760 | Maximum uncompressed size of embedded UMZ archives (bytes) |
MAX_FILE_BYTES | 2097152 | Maximum size of a single source file (bytes) |
MAX_FILE_COUNT | 2000 | Maximum number of source files allowed in a zip |
CHROMIUM_NO_SANDBOX | 1 | Set to 0 only if running with a seccomp profile that supports Chromium sandboxing |
Example with custom limits:
docker run --rm -p 8080:8080 \
-e RENDER_CONCURRENCY=4 \
-e MAX_ACTIVE_JOBS=4 \
-e MAX_ZIP_BYTES=104857600 \
haanlaurent/sourceprinter:latest
GitHub repository:
Content type
Image
Digest
sha256:e0db0692b…
Size
329.9 MB
Last updated
2 days ago
docker pull haanlaurent/sourceprinter