Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

pdf signing error #13

Open
granci opened this issue Nov 24, 2017 · 6 comments
Open

pdf signing error #13

granci opened this issue Nov 24, 2017 · 6 comments

Comments

@granci
Copy link

granci commented Nov 24, 2017

while trying to run write() method on Sign class, i'm getting error:
"UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): podofosign: error while loading shared libraries: libpodofo.so.0.9.5: cannot open shared object file: No such file or directory"

it seems that the libpodofo from node_modules is located correctly, but the package somehow can't use it... what should be the possible issue?

@corymickelson
Copy link
Owner

@granci what operating system are you on? The node modules that CommonPdf is loading have been compiled specifically for execution in AWS Lambda (compiled on Centos 6). The setup method puts the required binaries on the aws lambda execution path, the error that you are getting is due to the binaries not being found on your path.

@granci
Copy link
Author

granci commented Nov 29, 2017

so far i'm developing on ubuntu, but the final goal is to use it in my pdf-generating app on heroku (i was planning to make heroku buildpack to include podofo and other binaries if needed)... i have tried to put binaries from node_modules to my path, but it seems that some dependencies are missing when i've checked it with ldd command... the solution would be to download or compile the binaries or is it possible to use standard podofo library with this API?

@corymickelson
Copy link
Owner

corymickelson commented Nov 29, 2017 via email

@corymickelson
Copy link
Owner

corymickelson commented Nov 29, 2017 via email

@granci
Copy link
Author

granci commented Nov 29, 2017

thank you, i'll have look at it... and if everything works well, in couple days you may have a link to heroku buildpack :)

@corymickelson
Copy link
Owner

@granci Im not sure if this will help but I have a docker file that builds podofo from source with all optional deps, maybe this could be used as reference for a ubuntu build.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants