Skip to content

Commit f2a5795

Browse files
authored
Merge pull request #3 from AstraBert/segfault-fix
Temporary Fix for Segmentation Fault
2 parents f328dc8 + ede157d commit f2a5795

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

Diff for: README.md

+17
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,23 @@ output_pdf = convert_markdown_to_pdf(file_path = "BusinessGrowth.md", output_pat
9393

9494
In these examples, you will find the output PDF under `business_growth.pdf`.
9595

96+
### Troubleshooting
97+
98+
If you encounter a segmentation fault error like in [this issue](https://github.com/AstraBert/PdfItDown/issues/1), please consider the following option:
99+
100+
```bash
101+
git clone https://github.com/AstraBert/PdfItDown.git
102+
cd PdfItDown
103+
python3 -m build
104+
python3 -m venv virtualenv
105+
source virtualenv/bin/activate
106+
python3 -m pip install -r requirements.txt
107+
python3 -m pip install .
108+
```
109+
110+
> [!IMPORTANT]
111+
> This is just a temporary fix, until `markdown-pdf` does not resolve the issue itself by implementing a newer version of PyMuPdf. See [this issue](https://github.com/vb64/markdown-pdf/issues/38) for reference
112+
96113
### Contributing
97114

98115
Contributions are always welcome!

Diff for: pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pdfitdown"
7-
version = "0.0.2"
7+
version = "0.0.3.post1"
88
authors = [
99
{ name="Clelia (Astra) Bertelli", email="[email protected]" },
1010
]
@@ -19,7 +19,7 @@ classifiers = [
1919
dependencies = [
2020
'markitdown',
2121
'markdown_pdf == 1.3.2',
22-
'termcolor'
22+
'termcolor',
2323
]
2424

2525
[project.urls]

Diff for: requirements.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pymupdf==1.25.1
2+
markdown-it-py==3.0.0
3+
markdown_pdf==1.3.2 --no-deps
4+
markitdown
5+
termcolor

0 commit comments

Comments
 (0)