mioffice-pdf-utils
Lightweight PDF utilities for Rust — merge, split, extract pages, and read metadata. Pure Rust, zero native dependencies.
Built by MiOffice.ai — the AI office suite where files never leave your browser.
Install
[]
= "0.1"
Usage
use ;
use fs;
// Merge PDFs
let pdf1 = read.unwrap;
let pdf2 = read.unwrap;
let merged = merge_pdfs.unwrap;
write.unwrap;
// Split into single pages
let pages = split_pdf.unwrap;
// Extract pages 1, 3, 5 (0-indexed)
let extracted = extract_pages.unwrap;
// Read metadata
let meta = get_metadata.unwrap;
println!;
API
| Function | Description |
|---|---|
merge_pdfs(pdfs) |
Combine multiple PDFs into one |
split_pdf(pdf) |
Split into single-page PDFs |
extract_pages(pdf, indices) |
Extract specific pages (0-indexed) |
get_metadata(pdf) |
Read title, author, page count, page sizes |
Why This Exists
MiOffice.ai provides 67+ file processing tools that run 100% in the browser — no uploads, no signup, no cloud. This crate extracts our PDF utilities for Rust developers who need the same capabilities.
License
MIT — JSVV SOLS LLC