moonpdf

    A pure-MoonBit PDF page rendering engine.

    pdf
    renderer
    graphics
    rasterizer
    document
    Download zip
    Author
    Version
    0.1.0
    License
    Apache-2.0
    Last updated
    56 minutes ago
    Downloads
    1

    #MoonPDF

    A pure-MoonBit PDF page rendering engine: parse a PDF, interpret its content stream, rasterize the page and write a PNG without a JavaScript VM or a C library.

    The public facade exposes page_count(data) and render_page_png(data, page,scale). The parser lives in pdf/, the renderer in render/, and the CLI in cmd/moonpdf/.

    See README.md for the full project description, compatibility matrix and roadmap.

    MoonPdfError

    pub suberror MoonPdfError {
    MoonPdfError(String)
    }

    page_count

    fn page_count(data : Bytes) -> Int raise MoonPdfError

    render_page_png

    fn render_page_png(data : Bytes, page_index : Int, scale : Double) -> Bytes raise MoonPdfError

    Source Files