16 releases

0.8.1 Nov 3, 2020
0.8.0 May 8, 2020
0.7.0 Aug 3, 2018
0.6.2 Aug 16, 2017
0.1.0 Jul 9, 2015

#57 in Text processing

Download history 953/week @ 2020-08-06 5756/week @ 2020-08-13 5052/week @ 2020-08-20 4777/week @ 2020-08-27 4427/week @ 2020-09-03 3437/week @ 2020-09-10 3325/week @ 2020-09-17 3267/week @ 2020-09-24 3152/week @ 2020-10-01 2991/week @ 2020-10-08 2856/week @ 2020-10-15 2594/week @ 2020-10-22 3548/week @ 2020-10-29 3397/week @ 2020-11-05 2722/week @ 2020-11-12 2820/week @ 2020-11-19

15,103 downloads per month
Used in 5 crates (3 directly)

MIT/Apache

45KB
913 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

~270KB