From 5400570efa13d24519e321474f41ebda5cc4cbc7 Mon Sep 17 00:00:00 2001 From: Lino Le Van <11367844+lino-levan@users.noreply.github.com> Date: Tue, 23 May 2023 03:20:12 -0700 Subject: feat(cli): export as png (#1159) Co-authored-by: Laurenz --- cli/src/args.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cli/src/args.rs') diff --git a/cli/src/args.rs b/cli/src/args.rs index 7eb4f4e2..fbd5ec2d 100644 --- a/cli/src/args.rs +++ b/cli/src/args.rs @@ -62,7 +62,7 @@ pub struct CompileCommand { /// Path to input Typst file pub input: PathBuf, - /// Path to output PDF file + /// Path to output PDF file or PNG file(s) pub output: Option, /// Opens the output file after compilation using the default PDF viewer @@ -72,6 +72,10 @@ pub struct CompileCommand { /// Produces a flamegraph of the compilation process #[arg(long = "flamegraph", value_name = "OUTPUT_SVG")] pub flamegraph: Option>, + + /// The PPI to use if exported as PNG + #[arg(long = "ppi")] + pub ppi: Option, } /// List all discovered fonts in system and custom font paths -- cgit v1.2.3