HummusJS is a node.js driver for my PDF library PDFHummus
Questions tagged [hummus.js]
43 questions
32
votes
5 answers
/lib64/libc.so.6: version `GLIBC_2.14' not found. Why am I getting this error?
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:…

user1187
- 2,116
- 8
- 41
- 74
12
votes
2 answers
draw an arrow head HummusJS
How can I draw an arrowhead in hummusJS?
I am using hummus for drawing in pdf. I need to draw an arrow in pdf. I am able to draw the line. But how can I draw an arrowhead?
I tried the following
if(x2 > y2)
{
a1 = x2-5;
…

user1187
- 2,116
- 8
- 41
- 74
8
votes
1 answer
MAC npm install issue with gyp
I was trying to install the npm, but I keep getting this error that I think is related to the hummus module:
npm WARN deprecated ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm ERR! code 1
npm ERR! path…

gangdou
- 123
- 2
- 6
6
votes
1 answer
In hummus js how can i draw a filled rectangle with transparent?
How can I draw a rectangle with a transparent color?
I tried the below code. I am using hummusjs for modifying pdf.
cxt.drawRectangle(x,y,width,height,{type: 'fill',
color: '#eeeeee',
opacity: 0.9});

user1187
- 2,116
- 8
- 41
- 74
4
votes
1 answer
Modifying a pdf using Hummus and creating buffer
I'm modifying a pdf using the code below but struggling with how to create a buffer that can then be used as an email attachment without writing anything to disk.
I'm finding it hard to work out from the documentation.
var pdfWriter =…

dottodot
- 1,479
- 1
- 16
- 24
3
votes
1 answer
TypeError: Unable to modify PDF file, make sure that output file target is available and that it is not protected
I'm trying to fill pdf form using HummusJS but it throws me an error TypeError: Unable to modify PDF file, make sure that output file target is available and that it is not protected while running pdf generation in AWS lambda function but its…

Sagar
- 4,473
- 3
- 32
- 37
3
votes
1 answer
Check if PDF is password protected HummusJS, NodeJS
Does anybody perhaps know, how I can check if a PDF is password protected by using HummusJS in NodeJS? This check needs to be done when modifying a PDF.
I am struggling to find a solution online and in the documentation.
Regards

frikkievb
- 481
- 3
- 11
2
votes
2 answers
How to convert a base64 png to pdf using nodejs?
Is there a way to convert multiple base64 PNG files to PDF?
Thanks

ginad
- 1,863
- 2
- 27
- 42
2
votes
1 answer
Why isn't HummusJS displaying pdf fill values in Acrobat Reader (but does in browser)?
Using HummusJS to fill government pdf forms I cannot figure out why the filled values do appear when I open the filled pdf forms in Chrome/Firefox but do not appear when I open them in Acrobat Reader.
Using filling-form-values and modifying the…

tbmpls
- 221
- 3
- 8
2
votes
2 answers
HummusJS - Convert HTML page to PDF in JavaScript
How can I use hummusJS to convert HTML code to PDF?
So far I am able to convert JPG images to pdf, as well as merge multiple pdfs.

Vipul Sharma
- 768
- 3
- 11
- 25
1
vote
1 answer
Modifying an existing PDF with MuhammaraJs
I'm trying to edit an existing PDF using Hummus js (now Muhammara js). In the example provided in the documentation page of the library for editing existing PDF, the editing is done by chaining of methods.
const Recipe =…

Debadatta Meher
- 11
- 2
1
vote
0 answers
Restrict number of pages on a PDF shown in browser Node server
I am developing a platform with model preview before paying to
download for pdf's my problem is how to restrict the number of pages of pdf showing to the user.
eg.
I use pdfjs to render the pdf on canvas but when I see the network
request the full…

Natnael
- 17
- 7
1
vote
0 answers
Replace String in PDF with node.js | manipulating datastreams/buffers of pdfs
I am currently trying to replace a placeholder string in an pdf programmatically. ( easy example: I want to change the string "SEI" to "1")
I can currently access the content of the pdf and convert that to a stream and/or buffer and convert that…

KevGi_AWSi
- 41
- 5
1
vote
1 answer
Mailmerge pdf in nodejs and hummus-recipe
I'm trying to make a simple mail-merge where recipients information is inserted on top of a template pdf.
The template is 1 page, but the result can be up to several hundred pages.
I have all recipient in array objects, but need to find a way to…

Simon
- 61
- 7
1
vote
0 answers
NodeJS Split large pdf file into multiple files
I have an app where the user uploads a very large pdf file ( 1GB ), and I need to split that file into multiple pdf documents (each 2 pages long) and map them to the associated user, I am using hummusJS to do the job, but the POST request takes way…

WalksAway
- 2,769
- 2
- 20
- 42