-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextract.bat
More file actions
40 lines (33 loc) · 839 Bytes
/
extract.bat
File metadata and controls
40 lines (33 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@echo off
REM PDF2LLM - Single File Extractor
REM Drag and drop a PDF file onto this batch file to extract highlights
REM The output .md file will be created in the same folder as the PDF
setlocal
REM Check if a file was provided
if "%~1"=="" (
echo.
echo PDF2LLM - Highlight Extractor
echo =============================
echo.
echo Usage: Drag and drop a PDF file onto this batch file
echo Or run: extract.bat "path\to\file.pdf"
echo.
pause
exit /b 1
)
REM Get the directory where this script is located
set "SCRIPT_DIR=%~dp0"
REM Check if the input file exists
if not exist "%~1" (
echo Error: File not found: %~1
pause
exit /b 1
)
REM Run the Python script
echo.
echo PDF2LLM - Highlight Extractor
echo =============================
echo.
python -m pdf2llm "%~1"
echo.
pause