You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,38 @@ cd markitdown
74
74
pip install -e 'packages/markitdown[all]'
75
75
```
76
76
77
+
## Troubleshooting
78
+
79
+
### ImageMagick Policy Error when Converting PDFs with Images
80
+
81
+
If you encounter an error like `PolicyError: not authorized PDF at error/constitute.c/ReadImage/1243` when converting PDFs containing embedded images, this is caused by ImageMagick's security policy that restricts PDF processing by default.
82
+
83
+
**Solution:**
84
+
85
+
1.**Edit ImageMagick's policy file** (typically at `/etc/ImageMagick-6/policy.xml` or `/etc/ImageMagick/policy.xml`):
86
+
87
+
```bash
88
+
# Find and comment out or modify the PDF restriction line
3.**Alternative: Use PIL directly** - If you can't modify system policies, the `markitdown-ocr` plugin can use PyMuPDF directly to extract images without ImageMagick.
106
+
107
+
For more details, see ImageMagick's [Security Policy](https://imagemagick.org/script/security-policy.php) documentation.
0 commit comments