jrmuizel / pdf-extract

A rust library for extracting content from pdfs
364 stars 73 forks source link

remove some println! to be more CLI / TUI friendly #52

Open qkzk opened 1 year ago

qkzk commented 1 year ago

I'm using pdf-extract in a tui file manager, where I preview the files on demand.

Sometimes, when the pdf is corrupted, there's some println!("Unicode mismatch"); on the screen which I can't prevent.

Could those prints be replaced with logs instead like it's proposed here

I can count 5 other prints in lib.rs.

jrmuizel commented 1 year ago

Do you have an example PDF that shows this?

mihaimaganu17 commented 1 year ago

Hello, I get the same output printed. My case is Intel's SDM manual, volume 2 https://www.intel.com/content/www/us/en/developer/articles/technical/intel-sdm.html