Codync
무료 오픈소스 1:1 대안, Grok Bot과 Muse 대신
pdfcpu는 PDF 파일 검증·최적화·분할·병합·추출·변환을 위한 Go API와 CLI를 제공
pdfcpu provides a Go API and CLI for validating, optimizing, splitting, merging, extracting, and transforming PDF files. It supports command-line workflows, server-side automation, and direct PDF cont
개발 도구Go · ShellGitHub @pdfcpu온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
PDF tooling for Go and the command line.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗pdfcpu is a PDF processing library and command-line tool written in Go. It supports validation, optimization, encryption, signing, document assembly, content extraction, and other common PDF operations.
pdfcpu supports PDF versions through PDF 2.0 (ISO 32000-2). PDF 2.0 validation support is basic and continuously improving.
| Command-line interface | Go API |
|---|---|
| CLI Installation instructions | API Installation instructions |
Validate a PDF:
pdfcpu validate input.pdf
Merge two PDFs:
pdfcpu merge merged.pdf in1.pdf in2.pdf
See API documentation for usage examples.
Local images in create, form fill, and JSON/CSV form multifill are confined to
an allowed directory.
API callers must set conf.LocalImageRoot to enable them. The CLI defaults to its working
directory and localImageRoot in config.yml selects another root.
See local image access for configuration examples, path restrictions, migration instructions and security limitations.
Selected examples:
Complete list of supported commands:
| annotations | attachments | booklet |
| bookmarks | boxes | certificates |
| change owner password | change user password | collect |
| config | create | crop |
| cut | decrypt | encrypt |
| extract | fonts | form |
pdfcpu aims to provide comprehensive PDF processing capabilities implemented in Go for both individual files and automated batch processing.
It focuses on correctness, robustness and independence from external dependencies.
pdfcpu [command] --helpPackage documentation: https://pkg.go.dev/github.com/pdfcpu/pdfcpu
API documentation: https://pkg.go.dev/github.com/pdfcpu/pdfcpu/pkg/api
Examples:
Contributions are welcome. See the contributing guidelines and the complete list of contributors.
For triage, we use Adobe Acrobat Reader and macOS Preview as practical compatibility references. Reports are especially helpful when a PDF opens in either application but cannot be processed by pdfcpu, as these cases may reveal opportunities to improve validation or parser compatibility. If neither application can open the PDF, it is unlikely that pdfcpu will be able to process it reliably.
Start by validating the file:
pdfcpu validate -vv <file.pdf>
Include the command, its verbose output, and a sample PDF with the report. Please submit only files that you have permission to share and that contain no confidential information or personal data.
Please do not report security vulnerabilities through public GitHub issues. See the security policy for private reporting instructions.
This project is released with a Contributor Code of Conduct. By participating, you agree to abide by its terms.
Use of pdfcpu assumes compliance with all applicable copyrights for any processed PDF content, including embedded resources such as fonts and images.
Gopher artwork by Renee French
Apache License 2.0
| grid | images | import |
| info | keywords | merge |
| ndown | nup | optimize |
| pagelayout | pagemode | pages |
| permissions | portfolio | poster |
| properties | resize | rotate |
| signatures | split | stamp |
| trim | validate | viewerpref |
| watermark | zoom |