Questions tagged [jbig2]

An image compression standard for bi-level images that can be compress images up to 10x smaller than with TIFF G4

Developed by the Joint Bi-level Image Experts Group, it is suitable for both lossless and lossy compression.

The JBIG2 primer contains more detailed information.

26 questions
12
votes
5 answers

PDF Box generating blank images due to JBIG2 Images in it

Let me give you an overview of my project first. I have a pdf which I need to convert into images(One image for one page) using PDFBox API and write all those images onto a new pdf using PDFBox API itself. Basically, converting a pdf into a pdf,…
Vaibhav Sawalkar
  • 147
  • 1
  • 2
  • 9
8
votes
5 answers

Print PDF that contains JBIG2 images

Please, suggest me some libraries that will help me print PDF files that contain JBIG2 encoded images. PDFRenderer, PDFBox don't help me. These libs can print simple PDF, but not PDF containing JBIG2 images. PDFRenderer tries to fix it (according…
WelcomeTo
  • 19,843
  • 53
  • 170
  • 286
5
votes
1 answer

iOS Objective-C - Render JBIG2 image format

JBIG2 images have been supported in PDFs since PDF specification 1.4. Therefore all PDF reader applications can read JBIG2 images. I can confirm that a PDF containing JBIG2 images is correctly rendered on iPhone & iPad. What I want to do is to…
Alasdair
  • 13,348
  • 18
  • 82
  • 138
3
votes
2 answers

How to read out the properties of the Symbol Dictionary used by the JBIG2 algorithm in my pdf?

I have a PDF that contains a long list numbers, that was compressed using the JBIG2 algorithm. When I look up the the internal file structure of my file I can find, that my pages are being built with two different XObjects: (Pictured is Adobe…
SirHawrk
  • 610
  • 1
  • 4
  • 17
3
votes
3 answers

pdfbox application fat jar gives “Cannot read JBIG2 image: jbig2-imageio is not installed” but works ok running from IDE

I am facing a problem when I build an application that uses pdfbox. The application is able to read books with jbig2 images when I run it from IDE (I use netbeans 8.1) (I have maven dependencies for jbig2 in pom.xml). The problem is when I build the…
3
votes
2 answers

Extract images from PDF, how to handle JBIG2 encoded

I have a bunch of PDF files, some of them are pure text but some are fully or partially saved as "One image per page" because they are generated from a scanner. I need to extract all images contained in the PDF and then examine each image…
Marco
  • 1,952
  • 1
  • 17
  • 23
2
votes
1 answer

Embedded JBIG2 Postscript stream not being rendered in PDF

I am learning to write Postscript by hand. I've taken a JBIG2 image from the link below (amb_1.jb2 is used in the example here: http://jbig2dec.sourceforge.net/ubc/main.html) and I have added it to to a stream inside of a PDF file. The PDF in…
user319249
  • 145
  • 1
  • 8
2
votes
1 answer

Java - PDFBox - PDF with JBIG2 image

I'm getting a problem using PDFBox API. I have a PDF file with a JBIG2 image in it and I want to read it out and create a JPEG or PNG file with the PDF content. Unfortunately I'm only getting a black image. My code is: public static void…
user2835387
  • 31
  • 1
  • 3
1
vote
2 answers

How to convert a pdf with Ghostscript so the images will be encoded in CCITT

I'm trying to reduce the size of a pdf file by converting its images from color/gray to B/W and re-encode those images using the more efficient CCITT Group 4 or JBIG2 encoding. Can it be done via Ghostscript? How? If not, is there another CLI tool…
amit
  • 2,171
  • 4
  • 31
  • 50
1
vote
1 answer

PDFBox Rendering Jpeg2000 and JBIG2

I want to convert each pdf page into an image (like a screen shot), and then upload that image to a storage service. private void getImageBytes(PDDocument document, int pageIndex, int dpi, ConcurrentHashMap imgsToUpload, String…
Mu-Majid
  • 851
  • 1
  • 9
  • 16
1
vote
1 answer

Having ghostscript leave JBIG2 files alone

I'm using gs to remove some bad OCR from PDFs that are essentially images of book pages with invisible text layers. The page images in some of these are encoded as JBIG2. When I run them through gs, it changes the image format to CCIT, which usually…
Eponymous
  • 109
  • 8
1
vote
1 answer

Provider com.levigo.jbig2.util.log.JDKLoggerBridge not a subtype

While writing PDF file to HTML file format using the code below... import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.io.Writer; import…
User
  • 4,023
  • 4
  • 37
  • 63
1
vote
2 answers

jbig2 data in pdf is not valid jbig2 data. Wrong magic

I would like to take some jbig2 data out of a pdf file and load it using libjbig2dec (http://sourceforge.net/projects/jbig2dec) For some reason the jbig2 data in the pdf file starts with this: 00000000 00 00 00 00 30 01 01 00 00 00 13 00 00 0a 5e…
XPlatformer
  • 1,148
  • 8
  • 18
1
vote
1 answer

How to write a new image format decoder in Chrome Browser

Browsers have poor support of image formats. Actually only GIF, JPG, PNG and WebP are supported. I would like to had a new one : JBIG2 From the end user point of view, he will only download and install a chrome extension and his browser will be able…
1
vote
3 answers

Using pdf.js to render a JBIG2 image in a browser

I'm trying to render a JBIG2 image in a browser. This script, which is part of pdf.js appears to do this: https://github.com/mozilla/pdf.js/blob/master/src/core/jbig2.js Only it does not have instructions on its usage as it is usually executed as a…
Alasdair
  • 13,348
  • 18
  • 82
  • 138
1
2