hummus.js

/lib64/libc.so.6: version `GLIBC_2.14' not found. Why am I getting this error?

余生长醉 提交于 2019-12-21 07:55:39
问题 I am working in node js. I have installed hummus package. It installed properly. I am using this package for modifying the pdf files. While downloading the pdf I am calling hummus. Onclick of download I am getting this error. Error: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /var/www/html/node_modules/hummus/binding/hummus.node) at Object.Module._extensions..node (module.js:681:18) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module.

How to modify a stream from request to a new response stream in HummusJS

半世苍凉 提交于 2019-12-11 15:19:44
问题 I need to inject a png into a PDF using HummusJS. In the production version of my API, I'll be receiving a post request containing a base64 that I'll convert to binary reader stream. (In the example below, I'm using a test read from a local file.) Here's my test input stream (which is defined in a "create" object factory): hummusReadStreamObject (filePath) { let fileData = fs.readFileSync(filePath).toString('hex'); let result = [] for (var i = 0; i < fileData.length; i+=2) { result.push('0x'

Use PaperJS export path with Hummus PDF JS

◇◆丶佛笑我妖孽 提交于 2019-12-11 04:29:08
问题 I am trying to draw paths with Hummus PDF JS based on paths exported from PaperJS. Hence PaperJS data output would be the data input for Hummus. Those two libraries works differently to create curves. PaperJS uses handles to curve a straight lines, while Hummus will curve a line based on 3 points. Let's say I want to have a curved line that goes through 3 key points: [200, 100] -> [300, 200] -> [400, 100]. Like this picture: With PaperJS, I will have to do something like this: var vector =

/lib64/libc.so.6: version `GLIBC_2.14' not found. Why am I getting this error?

旧巷老猫 提交于 2019-12-04 02:29:29
I am working in node js. I have installed hummus package. It installed properly. I am using this package for modifying the pdf files. While downloading the pdf I am calling hummus. Onclick of download I am getting this error. Error: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /var/www/html/node_modules/hummus/binding/hummus.node) at Object.Module._extensions..node (module.js:681:18) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at