### Create and read a PDF in src/main.rs Source: https://oxidize-pdf-for-rust.docs7.io/quickstart Creates a one-page PDF in the working directory, reopens it, and prints its text. Coordinates are in PDF points (72 per inch) with origin at bottom left. Errors propagate from main via ?. Text extraction reads text layers; scanned images without OCR are not handled. ```rust use oxidize_pdf::{Document, Page}; use oxidize_pdf::parser::PdfDocument; use oxidize_pdf::text::Font; fn main() -> Result<(), Box> { let mut document = Document::new(); let mut page = Page::a4(); page.text() .set_font(Font::Helvetica, 18.0) .at(72.0, 750.0) .write("Hello from oxidize-pdf!")?; document.add_page(page); document.save("hello.pdf")?; let reader = PdfDocument::open("hello.pdf")?; for page_text in reader.extract_text()? { println!("{}", page_text.text); } Ok(()) } ``` -------------------------------- ### Add oxidize-pdf dependency in Cargo.toml Source: https://oxidize-pdf-for-rust.docs7.io/quickstart Adds the oxidize-pdf crate version 5.5.5 as a dependency in a Cargo binary project. Requires Rust 1.88 or newer. ```toml [dependencies] oxidize-pdf = "=5.5.5" ``` -------------------------------- ### Ask Context7 to resolve oxidize-pdf for Rust 5.5.5 Source: https://oxidize-pdf-for-rust.docs7.io/context7 Use this prompt in a coding assistant to fetch version-specific documentation for the oxidize-pdf Rust library. Resolve the library first and verify the returned project and version before querying its documentation. ```text Use Context7 to find documentation for https://github.com/bzsanti/oxidizePdf. I am using oxidize-pdf for Rust 5.5.5. Show an example using the API documented for that version. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.