minecart icon indicating copy to clipboard operation
minecart copied to clipboard

PDFNotImplementedError: Colorspace 'PDFObjRef:100>' is not supported

Open prabhatmishra33 opened this issue 6 years ago • 2 comments

There are 2 images in the pdf which i am trying to read, 1st is the logo. 2nd is the handwritten Sign.

The library is able to read the logo and convert to image using pillow. but the issue comes when it tries to read the handwritten sign ,it spits out below error:

im = page.images[1].as_pil()
Traceback (most recent call last):

  File "<ipython-input-77-93f421217555>", line 1, in <module>
    im = page.images[1].as_pil()

  File "C:\Program Files\Anaconda3\lib\site-packages\minecart\content.py", line 363, in as_pil
    "Colorspace %r is not supported" % colorspace)

PDFNotImplementedError: Colorspace 'PDFObjRef:100>' is not supported

python version used : Python 3.5.2 :: Anaconda 4.2.0 (64-bit)

Thanks, Prabhat

prabhatmishra33 avatar Jan 14 '19 11:01 prabhatmishra33

Prabhat I also face the same problem. Are you solved the error.?

mujeeb-merwat avatar Nov 20 '19 12:11 mujeeb-merwat

Look at this issue for a fix: https://github.com/felipeochoa/minecart/issues/16

This is an excellent library (just finding out)… Please continue develop, when I have some time, will contribute.

vgopinath avatar Nov 22 '19 06:11 vgopinath