mirror of
https://github.com/jdiaz97/pdfx.git
synced 2026-06-19 20:06:35 +02:00
new
This commit is contained in:
@@ -0,0 +1,19 @@
|
|||||||
|
pdfjson
|
||||||
|
|
||||||
|
AI-powered CLI tool to extract information from PDFs using a custom prompt.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
MAke sure to: GROQ_API_KEY=your_api_key
|
||||||
|
|
||||||
|
And then
|
||||||
|
|
||||||
|
```
|
||||||
|
pdfy <pdf-file> "<your prompt>"
|
||||||
|
```
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
pdfy example.pdf "Make a summary of this paper, also get me all contact information."
|
||||||
|
```
|
||||||
+1
-1
@@ -4,7 +4,7 @@ use std::env;
|
|||||||
use crate::extractor::extract_contact_info;
|
use crate::extractor::extract_contact_info;
|
||||||
|
|
||||||
pub async fn run_cli() -> Result<(), Box<dyn std::error::Error>> {
|
pub async fn run_cli() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
let matches = Command::new("pdfy")
|
let matches = Command::new("pdfjson")
|
||||||
.version("0.1.0")
|
.version("0.1.0")
|
||||||
.author("José Díaz <jose@boquila.org>")
|
.author("José Díaz <jose@boquila.org>")
|
||||||
.about("Extract information from PDF files using AI")
|
.about("Extract information from PDF files using AI")
|
||||||
|
|||||||
Reference in New Issue
Block a user