# somefiletools **Repository Path**: awol2010ex/somefiletools ## Basic Information - **Project Name**: somefiletools - **Description**: some useful functions about file operation - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-05-25 - **Last Updated**: 2022-06-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 实现方法: 1) 是否二进制文件 (true 是 , false 否) pub fn is_binary_file(file_path :&str) -> Option 测试: cargo run --example test_is_binary_file 2) 抓取pdf内的文本 pub fn fetch_pdf_text(file_path :&str ) -> Result 测试: yum -y install fontconfig mkdir -p /usr/share/fonts/chinese yum -y install ttmkfdir ttmkfdir -e /usr/share/X11/fonts/encodings/encodings.dir cargo run --example test_fetch_pdf_text