19 releases

new 0.8.4 Mar 4, 2021
0.8.1 Nov 3, 2020
0.8.0 May 8, 2020
0.7.0 Aug 3, 2018
0.1.0 Jul 9, 2015

#242 in Text processing

Download history 3173/week @ 2020-11-14 2866/week @ 2020-11-21 3064/week @ 2020-11-28 2874/week @ 2020-12-05 2040/week @ 2020-12-12 1601/week @ 2020-12-19 1771/week @ 2020-12-26 1050/week @ 2021-01-02 556/week @ 2021-01-09 643/week @ 2021-01-16 770/week @ 2021-01-23 996/week @ 2021-01-30 1302/week @ 2021-02-06 1178/week @ 2021-02-13 1136/week @ 2021-02-20 1103/week @ 2021-02-27

5,600 downloads per month
Used in 5 crates (4 directly)

MIT/Apache

47KB
938 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

~330KB