25 releases

0.8.10 Sep 13, 2022
0.8.9 Mar 10, 2022
0.8.8 Nov 19, 2021
0.8.5 Jul 30, 2021
0.1.0 Jul 9, 2015

#326 in Text processing

Download history 303/week @ 2022-12-07 162/week @ 2022-12-14 212/week @ 2022-12-21 201/week @ 2022-12-28 125/week @ 2023-01-04 187/week @ 2023-01-11 228/week @ 2023-01-18 208/week @ 2023-01-25 305/week @ 2023-02-01 200/week @ 2023-02-08 382/week @ 2023-02-15 354/week @ 2023-02-22 267/week @ 2023-03-01 401/week @ 2023-03-08 663/week @ 2023-03-15 425/week @ 2023-03-22

1,798 downloads per month
Used in 12 crates (6 directly)

MIT/Apache

49KB
969 lines

Build Status

Instructions

  1. Install pandoc

  2. add the pandoc crate to your Cargo.toml

    [dependencies]
    pandoc = "0.8"
    
  3. create a pandoc builder and execute it

    let mut pandoc = pandoc::new();
    pandoc.add_input("hello_world.md");
    pandoc.set_output(OutputKind::File("hello_world.pdf".to_string()));
    pandoc.execute().unwrap();
    

PDF-output

Windows specific

install miktex or texlive, if your installation paths differ from the default use the add_latex_path_hint function to add them to the pandoc builder.

Common Issues

file not found errors

use add_pandoc_path_hint to add the actual path to pandoc search path. Under windows it can often be found in %LOCALAPPDATA%\Pandoc\, but that path is searched automatically by this crate.

Dependencies

~385KB