Doku: Titel pdf2md.py, Pfade auf Repo-Ordner pdf2md, git clone in der Installation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Dieter Schlüter 2026-10-02 18:35:04 +02:00
commit b8ad0310d0
2 changed files with 7 additions and 6 deletions

View file

@ -21,7 +21,8 @@ Einmalig unter Ubuntu 24.04:
```bash ```bash
sudo apt install tesseract-ocr tesseract-ocr-deu pandoc sudo apt install tesseract-ocr tesseract-ocr-deu pandoc
cd ~/Downloads/ljutsch git clone https://kitux.de/forgejo/dschlueter/pdf2md.git
cd pdf2md # Ordner des Repos
pip install -r requirements.txt pip install -r requirements.txt
``` ```
@ -41,7 +42,7 @@ python3 pdf2md.py --help # zeigt alle Optionen
## 2. Weg A – PDF → EPUB in einem Schritt ## 2. Weg A – PDF → EPUB in einem Schritt
```bash ```bash
cd ~/Downloads/ljutsch cd pdf2md # Ordner des Repos
python3 pdf2md.py --epub Operation_Ljutsch_Band_1_-_Reinhard_Otto_Kranz.pdf Output/band1.md python3 pdf2md.py --epub Operation_Ljutsch_Band_1_-_Reinhard_Otto_Kranz.pdf Output/band1.md
``` ```
@ -86,7 +87,7 @@ Wie bei Weg A, also **mit** `--epub`. So entstehen gleich das Cover (`cover.jpg`
EPUB zum Vergleichen: EPUB zum Vergleichen:
```bash ```bash
cd ~/Downloads/ljutsch cd pdf2md # Ordner des Repos
python3 pdf2md.py --epub Operation_Ljutsch_Band_1_-_Reinhard_Otto_Kranz.pdf Output/band1.md python3 pdf2md.py --epub Operation_Ljutsch_Band_1_-_Reinhard_Otto_Kranz.pdf Output/band1.md
``` ```
@ -155,7 +156,7 @@ Am nächsten Morgen ...
### Schritt 3: EPUB aus dem bearbeiteten Markdown erzeugen ### Schritt 3: EPUB aus dem bearbeiteten Markdown erzeugen
```bash ```bash
cd ~/Downloads/ljutsch cd pdf2md # Ordner des Repos
python3 pdf2md.py --from-md Output/band1.md python3 pdf2md.py --from-md Output/band1.md
``` ```
@ -172,7 +173,7 @@ Dateinamen.
## 4. Weg C – Teile oder Kapitel als Einzeldateien ## 4. Weg C – Teile oder Kapitel als Einzeldateien
```bash ```bash
cd ~/Downloads/ljutsch cd pdf2md # Ordner des Repos
python3 pdf2md.py --epub --split kapitel Operation_Ljutsch_Band_1_-_Reinhard_Otto_Kranz.pdf Output/band1.md python3 pdf2md.py --epub --split kapitel Operation_Ljutsch_Band_1_-_Reinhard_Otto_Kranz.pdf Output/band1.md
``` ```

View file

@ -1,4 +1,4 @@
# ljutsch – PDF → Markdown → EPUB # pdf2md.py – PDF → Markdown → EPUB
Werkzeug, um PDF-Bücher in sauberes Markdown und anschließend in ein EPUB für den Werkzeug, um PDF-Bücher in sauberes Markdown und anschließend in ein EPUB für den
PocketBook-Reader umzuwandeln – mit Überschriften, Bildern und echten Absätzen. Funktioniert PocketBook-Reader umzuwandeln – mit Überschriften, Bildern und echten Absätzen. Funktioniert