Giter Club home page Giter Club logo

Comments (14)

Belval avatar Belval commented on July 29, 2024 1

Interesting, I'll see if I can add a test to detect that.

from pdf2image.

Belval avatar Belval commented on July 29, 2024

Are you using Python 2 or Python 3?

from pdf2image.

ferdinandhuang avatar ferdinandhuang commented on July 29, 2024

Are you using Python 2 or Python 3?

Python 3.5

from pdf2image.

Belval avatar Belval commented on July 29, 2024

Hmm then I don't really know, pdftoppm/pdftocairo don't have encoding options so it's probably the system configuration that is problematic.

Do you have a pdf I could convert on my side to reproduce the issue?

from pdf2image.

ferdinandhuang avatar ferdinandhuang commented on July 29, 2024

Hmm then I don't really know, pdftoppm/pdftocairo don't have encoding options so it's probably the system configuration that is problematic.

Do you have a pdf I could convert on my side to reproduce the issue?

051001800211-19368739.pdf

That's my test pdf.

from pdf2image.

Belval avatar Belval commented on July 29, 2024

This is what I get when I convert your document on my computer. Is this the expected behavior?

If not, what is wrong with the following image?

test

from pdf2image.

ferdinandhuang avatar ferdinandhuang commented on July 29, 2024

This is what I get when I convert your document on my computer. Is this the expected behavior?

If not, what is wrong with the following image?

test

Yes! That's my expect, but i got image which use the demo code like this:
image

from pdf2image.

Belval avatar Belval commented on July 29, 2024

What is your operating system?

I am pretty sure that the problem is not pdf2image.

from pdf2image.

ferdinandhuang avatar ferdinandhuang commented on July 29, 2024

Operation system is Windows 10, and my code is just like this:
images = convert_from_path('D:/Code/Demo/PyDemo/sample1.pdf')
c = 1
for image in images:
image.save('D:/Code/Demo/PyDemo/out/out' + str(c) + '.jpg', 'JPEG')
c = c + 1

from pdf2image.

chenxu7601257 avatar chenxu7601257 commented on July 29, 2024

@Belval Thanks for your time. I got the same issue as ferdinandhuang mentioned above, the image is there but the chars especially the Chinese chars are all missing. Would it be possible to share your findings? Much appreciated.

from pdf2image.

Belval avatar Belval commented on July 29, 2024

That's the thing, I did nothing. I don't have any rendering problem on both my Ubuntu 18.04 and archlinux machines when converting this PDF using pdf2image...

Does it show correctly when you open it in a browser?

from pdf2image.

ferdinandhuang avatar ferdinandhuang commented on July 29, 2024

Thanks for you reply.
I tried in Ubuntu, it work correct as I expect. So I think maybe this problem is poppler for Windows's problem.
At last, thank you again.

from pdf2image.

Belval avatar Belval commented on July 29, 2024

Closing as this is probably not a pdf2image issue. Feel free to reopen if you gather additional information.

from pdf2image.

ryul99 avatar ryul99 commented on July 29, 2024

@Belval I had the same Issue in ubuntu docker. (table and image is saved but the text is not saved)
I solved this by apt-get install poppler-data. I think this occurs when poppler doesn't font.

from pdf2image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.