pdf-inspector

(★ 16,426)

PDF 검사, 분류 및 텍스트 추출을 위한 빠른 Rust 라이브러리입니다. 스캔된 PDF와 텍스트 기반 PDF를 지능적으로 감지하여 스마트 라우팅 결정을 내릴 수 있게 해줍니다.

파일 탐색기

  • .gitattributes
  • .gitignore
  • AGENTS.md
  • Cargo.toml
  • CLAUDE.md
  • LICENSE
  • pdf_inspector.pyi
  • pyproject.toml
  • README.md
  • rust-toolchain.toml
  • SECURITY.md

# 설치 가이드

rust

설치 및 실행 절차

cargo build --release

Rust 프로젝트를 릴리즈 모드로 빌드합니다.

cargo install pdf-inspector

CLI 도구 및 패키지를 글로벌에 설치합니다.

pip install pdf-inspector

Python 바인딩 패키지를 설치합니다.

npm install @firecrawl/pdf-inspector

Node.js 패키지를 설치합니다.

핵심 명령어

cargo build --release

프로젝트의 Rust 소스 코드를 최적화하여 빌드합니다.

cargo install pdf-inspector

crates.io에서 pdf-inspector CLI를 설치합니다.

pdf2md document.pdf --json

PDF 파일을 마크다운 형식으로 변환합니다.

detect-pdf document.pdf --analyze --json

PDF 문서의 유형을 감지하고 분류합니다.

pip install pdf-inspector

PyPI를 통해 Python용 패키지를 설치합니다.

npm install @firecrawl/pdf-inspector

NPM을 통해 Node.js용 패키지를 설치합니다.

OCR 기능을 활성화하려면 PDFIUM_LIB_PATH 및 ORT_DYLIB_PATH 환경 변수 설정이 필요합니다.

# CDN으로 사용하기

jsDelivr

jsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.

명령어 용어집

이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.

🔍

cargo add

설명 보기 ▼

Add dependencies to a Rust project's `Cargo.toml` manifest.

cargo add {{dependency}}

Add the latest version of a dependency to the current project:

cargo add {{dependency}}@{{version}}

Add a specific version of a dependency:

cargo add {{dependency}} {{[-F|--features]}} {{feature_1,feature_2,...}}

Add a dependency and enable one or more specific features:

🔍

cargo install

설명 보기 ▼

Build and install a Rust binary.

cargo install {{package}}@{{version}}

Install a package from <https://crates.io> (the version is optional - latest by default):

cargo install --git {{repo_url}}

Install a package from the specified Git repository:

cargo install --git {{repo_url}} --{{branch|tag|rev}} {{branch_name|tag|commit_hash}}

Build from the specified branch/tag/commit when installing from a Git repository:

🔍

cargo run

설명 보기 ▼

Run the current Cargo package.
Note: The working directory of the executed binary will be set to the current working directory.

cargo {{[r|run]}}

Run the default binary target:

cargo {{[r|run]}} --bin {{name}}

Run the specified binary:

cargo {{[r|run]}} --example {{name}}

Run the specified example:

🔍

npm install

설명 보기 ▼

Install Node packages.

npm {{[i|install]}}

Install dependencies listed in `package.json`:

npm {{[i|install]}} {{package_name}}@{{version}}

Download a specific version of a package and add it to the list of dependencies in `package.json`:

npm {{[i|install]}} {{package_name}} {{[-D|--save-dev]}}

Download the latest version of a package and add it to the list of dev dependencies in `package.json`:

🔍

pip install

설명 보기 ▼

Install Python packages.

pip install {{package1 package2 ...}}

Install one or more packages:

pip install {{package1 package2 ...}} {{[-U|--upgrade]}}

Upgrade all specified packages to the latest version, installing any that are not already present:

pip install {{package}}=={{version}}

Install a specific version of a package:

# 프로젝트 배지

// repository documentation