# nb-ocr-pdf
**Repository Path**: NEWBRAN/nb-ocr-pdf
## Basic Information
- **Project Name**: nb-ocr-pdf
- **Description**: OCR a PDF
- **Primary Language**: JavaScript
- **License**: ISC
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2019-12-19
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# PDF to OCR
Take a pdf then ocr it with tesseract
## How to
### Problems
You might get an error like this
```
attempt to perform an operation not allowed by the security policy 'PDF'
```
On my development machine (Ubuntu 19.10 Pop_OS), I just edit the `/etc/ImageMagick-6/policy.xml`
Change the line `` to
`` then it works.
See here https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion for more information.
---
Joel Chu 2019