Comments (3)
Sadly, Ghostscript converts CCITT to JBIG2 silently and without warning, even if the JBIG2 encoding was produced by another program. JBIG2 encoding is patented (I think). I use Ghostscript to produce the final output PDF, and found out about this misfeature of theirs only after I implemented monochrome to JBIG2 encoding for ocrmypdf in an unreleased branch.
I use Ghostscript to do PDF/A conversion. Would you give up PDF/A for JBIG2?
(Aside: Make sure you are using JBIG2 in lossless mode. Lossy mode is dangerous because it can cause character substitution errors.)
from ocrmypdf.
Personally, I would prefer JBIG2 over PDF/A because the compression differences to CCITT are big. But I can image that others prefer PDF/A ...
from ocrmypdf.
The new option in v4.2 --output-type pdf
lets you skip PDF/A and use PDF. If you don't specify any settings that alter the image it will pass JBIG2 through without modification.
(Any settings will cause the image to be modified and trigger CCITT transcoding: --deskew --clean-final --oversample --pdf-renderer tesseract --output-type pdfa --force-ocr
)
from ocrmypdf.
Related Issues (20)
- [Feature]: If page has text, force OCR and rasterize page HOT 1
- [Bug]: NotImplementedError: not sure how to get colorspace HOT 1
- [Bug]: test_semfree fails with ghostscript 10.03.0+
- Pushed docker image is always Ubuntu instead of alpine HOT 1
- [Bug]: HOT 4
- [Bug]: Flood of "Recursion depth exceeded in _find_image_xrefs_page" HOT 5
- [Bug]: multiple spaces not supported for delimitation of bbox parameters HOT 1
- [Bug]: OCR not complete. Parts of all pages are ignored HOT 1
- Error occurred while consuming document out1.pdf: SubprocessOutputError: Ghostscript rasterizing failed. HOT 1
- [Bug]: --tesseract-pagesegmode is not sufficiently documented HOT 1
- Incorrect behavior of text color setting in hocrtransform HOT 2
- [Bug]: crashes with tesseract 5.4.0 HOT 8
- [Bug]: ocrmypdf 16.3.1 fails on a file on Arch that 13.4.0 on Ubuntu handles well HOT 1
- [Feature]: Alternative AI OCR "surya" as opposed to EasyOCR, Just found it today and it dominated the accuracy and speed of Tesseract & EasyOCR HOT 3
- [Bug]: Paperless-ngx Release 2.9.0 Ghostscript rasterizing failed HOT 1
- [Bug]: MetadataProgress does not respect progress_bar=False argument
- [Bug]: No errors and no output for large DPI files HOT 2
- [Bug]: `lots of diacritics - possibly poor OCR` but using standalone tesseract works perfectly HOT 1
- [Bug]: ocrmypdf (16.3.1) and Tesseract 5.4.1 HOT 3
- [Bug]: Existing text is completely replaced with other characters HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ocrmypdf.