Coder Social home page Coder Social logo

Comments (10)

Fdawgs avatar Fdawgs commented on May 24, 2024 1

Hi @JLWolff, as I'm using Windows and don't have access to a Mac I can't test this myself.

Does this also occur if you pass in a separately downloaded version of Poppler (as documented in the Linux and macOS/Darwin Support section of the readme) or is it just with the included macOS binaries?

from node-poppler.

JLWolff avatar JLWolff commented on May 24, 2024 1

Ok, @Fdawgs , i don't have much experience in the macOS side too, i am actually doing this for someone and using a VM for the mac part!! lol

But i can try to do this pull request of the updated macOS binaries, sure. i transfered them to my Win already and will do this asap.

from node-poppler.

siuying avatar siuying commented on May 24, 2024 1

Hi,

I hit this problem today and solve it via:

  1. go to lib folder /node_modules/node-poppler/src/lib/darwin/poppler-0.89.0/lib
  2. remove libpoppler.100.dylib rm libpoppler.100.dylib
  3. soft link libpoppler.100.0.0.dylib ln -s libpoppler.100.0.0.dylib libpoppler.100.dylib

I don't sure why the symbolic link is broken ... but by recreate it it work for me.

from node-poppler.

Fdawgs avatar Fdawgs commented on May 24, 2024

Thanks @JLWolff, i'll take a look!

from node-poppler.

JLWolff avatar JLWolff commented on May 24, 2024

Ok, @Fdawgs thanks! If you need any more info just let me know. Im using the latest version of the node-poppler too.

from node-poppler.

JLWolff avatar JLWolff commented on May 24, 2024

Hey, @Fdawgs it worked with the binaries downloaded externally. So it just occur with the included ones.

from node-poppler.

Fdawgs avatar Fdawgs commented on May 24, 2024

Hi @JLWolff, the contributor who added the included macOS binaries is no longer on GitHub so i can't ask for them help. 😞

Unless you're able to make a pull request to add new, working macOS binaries and libs, I may have to remove them.
I don't have any macOS experience to keep them up to date myself, and it seems that homebrew is the way to go on the Mac side.

from node-poppler.

JLWolff avatar JLWolff commented on May 24, 2024

Hello @siuying, at the time i needed the poppler files to be portable so i ended up saving it locally and linking all libs correctly with the path of the project.

Anyways, thanks for the solve. :)

from node-poppler.

mcdado avatar mcdado commented on May 24, 2024

Also, when installing with npm the executables in node_modules/node-poppler/src/lib/darwin/poppler-0.89.0/bin do not have executable permissions:

~/Desktop/test ❯ ls -la node_modules/node-poppler/src/lib/darwin/poppler-0.89.0/bin
total 1176
drwxr-xr-x  14 David  staff   448B Aug 31 12:45 .
drwxr-xr-x  14 David  staff   448B Aug 31 12:45 ..
-rw-r--r--   1 David  staff    19K Aug 31 12:45 pdfattach
-rw-r--r--   1 David  staff    20K Aug 31 12:45 pdfdetach
-rw-r--r--   1 David  staff    19K Aug 31 12:45 pdffonts
-rw-r--r--   1 David  staff    45K Aug 31 12:45 pdfimages
-rw-r--r--   1 David  staff    56K Aug 31 12:45 pdfinfo
-rw-r--r--   1 David  staff    19K Aug 31 12:45 pdfseparate
-rw-r--r--   1 David  staff   140K Aug 31 12:45 pdftocairo
-rw-r--r--   1 David  staff    97K Aug 31 12:45 pdftohtml
-rw-r--r--   1 David  staff    26K Aug 31 12:45 pdftoppm
-rw-r--r--   1 David  staff    26K Aug 31 12:45 pdftops
-rw-r--r--   1 David  staff    53K Aug 31 12:45 pdftotext
-rw-r--r--   1 David  staff    37K Aug 31 12:45 pdfunite

This causes errors when calling the pdfToCairo methods. Also, while poppler is included (albeit an older version) cairo is not... in my opinion would be better to no include the library and just leave the instructions on how to install poppler and cairo from Homebrew.

from node-poppler.

Fdawgs avatar Fdawgs commented on May 24, 2024

Cheers @mcdado, I end up using the home brew version myself.

As alluded too earlier in this issue, I don't have the know how to maintain the MacOS binaries.
I will remove them either this week or next (at the same time as updating the Windows binaries to 21.09.0).

from node-poppler.

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.