Crate gulagcleaner_rs

Source
Expand description

github

§GulagCleaner crate in Rust

Gulag Cleaner is a tool designed to remove advertisements from PDFs, making it easier to read and navigate documents without being disrupted by unwanted ads.

§Examples

use gulagcleaner_rs::clean::clean_pdf;

fn main(){
    let data = std::fs::read("example_docs/wuolah-free-example.pdf").unwrap();
    let (clean_pdf, _) = clean_pdf(data, false);
    //Stores the clean pdf in the out directory
    std::fs::write("example_docs/out/wuolah_clean.pdf", clean_pdf).unwrap();
}

Re-exports§

pub use clean::clean_pdf;

Modules§

clean
Main method execution
models
Modeling the different pdf sources and types