Comments (10)
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.
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.
Hi,
I hit this problem today and solve it via:
- go to lib folder
/node_modules/node-poppler/src/lib/darwin/poppler-0.89.0/lib
- remove libpoppler.100.dylib
rm libpoppler.100.dylib
- 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.
Thanks @JLWolff, i'll take a look!
from node-poppler.
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.
Hey, @Fdawgs it worked with the binaries downloaded externally. So it just occur with the included ones.
from node-poppler.
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.
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.
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.
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)
- Normalize file paths
- i instaleed this pakage and get errore. Error: spawn ./usr/bin/pdftocairo ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19) ".os:centos8 ,node-poppler version 4.1.1
- i instaleed this pakage and get errore. Error: spawn ./usr/bin/pdftocairo ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19) "os:centos8,node-poppler version4.1.1 HOT 1
- PDF-to-TIFF conversion with `pdfToCairo()` throws error, only converts first page
- How to handle errors? HOT 1
- `singleFile` option for pdfToCairo produces corrupt files when writing to stdout HOT 1
- Does poppler.pdfToCairo accepts input like blob Urls, or anything other than pdf file and pdf url? HOT 6
- Poppler library not supported in Linux HOT 1
- Put windows poppler binaries in a separate package HOT 6
- poppler.pdfInfo always reports 0 bytes in fileSize if PDF file is Buffer HOT 1
- The 'undefined' option for pdfToCairo's second parameter does not produce valid output for tiff files. HOT 16
- pdfToCairo result "Couldn't open 'nameToUnicode' file" HOT 1
- pdfToCairo: Error opening output file fd://0.png HOT 1
- Why is the binPath needed? HOT 4
- I think you might want /usr/bin in place of ./usr/bin in the docs HOT 1
- want to use popler by importing it with wasm HOT 4
- Drop support for Node 14 and 16
- pdfToText response limit to 1MB HOT 2
- Support for streams HOT 3
- Can the user decide whether to export images or HTML to a directory?
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 node-poppler.