feat: add PDF OCR and metadata management capabilities #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces comprehensive PDF OCR (Optical Character Recognition) and metadata management capabilities to forgekit. Users can now:
ocrmypdf, with support for multiple languages, deskewing, and text detectionexiftoolThe implementation includes new CLI commands (
forgekit pdf ocrandforgekit pdf metadata), core library enhancements for job specifications, and tool adapters forOcrmypdfandExifTool.Type of Change
feat: New featurefix: Bug fixdocs: Documentation onlyrefactor: Code refactoring (no behavior change)perf: Performance improvementtest: Adding or updating testsbuild: Build system or dependenciesci: CI/workflow changeschore: Maintenance tasksScope
cli- CLI commands and interfacecore- Core library functionalitytools- Tool integrations (qpdf, ghostscript, etc.)pdf- PDF-specific operationspackaging- Package configurationsRelated Issues
Checklist
type(scope): descriptioncargo test)cargo clippyandcargo fmt)Breaking Changes
Key Changes
CLI Commands
forgekit pdf ocrcommand with support for:eng,deu,fra)forgekit pdf metadatacommand with support for:forgekit pdf metadata doc.pdf)--get title)--set title="My Doc" --set author="John")Core Library
Ocrmypdftool adapter for OCR operationsExifTooladapter for metadata managementJobSpecwithPdfOcrandPdfMetadatavariantsMetadataActionenum for metadata operations (Get, GetAll, Set)Version