the.bay.news

Replace Text with lopdf It is possible for PDFs with large texts

The Rust Programming Language Forum
Replace Text with lopdf It is possible for PDFs with large texts
use std::collections::BTreeMap; use std::io::{BufRead, Lines}; use lopdf::content::{Content, Operation}; use lopdf::{Document, Object}; use lopdf::Error::ObjectType; fn main() -> Result<(), Box<dyn std::error::Error>> { println!("Hello, world!"); let mut doc = Document::load("C:\\template_xml_invoice\\example_2.pdf").unwrap(); doc.decompress(); for page_id in doc.get_pages().values() { //println!("page_id: {:?}", doc.get_page_content(*page_id)); let content_str...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.