HummusJS is a node.js driver for my PDF library PDFHummus
Questions tagged [hummus.js]
43 questions
1
vote
1 answer
How to Dcypt a PDF file by HummusRecipe in server side
So far i am generating a Password protected file in node by using HummusRecipe.This has been easily done with HummusRecipe.Following is the code to Encrypt the password protect any pdf file.
const localFilePath =…

Puneet Sharma
- 246
- 3
- 14
1
vote
0 answers
Hummus.JS read/write from Google Cloud Storage
Per the issue I reported for Hummus.js: #342, I'm having trouble writing an appended PDF to Google Cloud Storage.
The simplest MWE, using Firebase functions, is:
const getRawBody = require('raw-body')
const admin =…

Brian M. Hunt
- 81,008
- 74
- 230
- 343
1
vote
1 answer
Use PaperJS export path with Hummus PDF JS
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,…

vital
- 1,308
- 3
- 13
- 28
1
vote
2 answers
Serverless, node and Hummus. Compiling a binary does not work
I'm trying to use HummusJS on a Lambda function using the Serverless framework for deployment.
The Hummus npm library needs a binary compiled to function. This (hummus.node) is provided in its node_modules folder. However when I require 'hummus' the…

Christopher Grigg
- 2,238
- 27
- 33
1
vote
1 answer
Plesk How to install additional modules?
i have troubles using Node Js with Plesk. I have a Root Server (Ubuntu + Plesk Onyx) and installed Node Js. My API runs well. But now I have a new API Build, and must install new Node modules. (Hummus.js) When I want to install it through my…

Ckappo
- 607
- 1
- 9
- 27
1
vote
1 answer
Increase table row height in existing pdf
I would like to modify the height of a table row in an existing pdf document. I would like the content below the table to be automatically moved down when the row height is increased. I have tried with hummuspdf, but there doesn't seem to be en…

Raj
- 135
- 2
- 11
1
vote
0 answers
How to use HummusJS operators to adjust text space?
HummusJS is a great lib make pdf for node js.
but I can't understand how to use operators like TJ.
How to use text, hex or code on it?
I have try it as like as example
var newPdf = new hummus.PDFWStreamForFile('temp.pdf');
var pdfWriter =…

James Yang
- 19
- 3
0
votes
0 answers
How to add a custom watermark for each pdf pages without creating a new one in memory using node.js
I am working on project with pdf's, i want to add a custom watermark to each pages of pdf but only using 'input.pdf' and save it no 'output.pdf'.
I tried with pdf-lib.js but i can't achieve what i want
const fs = require('fs');
const {
…

Natnael
- 17
- 7
0
votes
0 answers
Modification of pdf in nodejs
I want to Modify the pdf such that.
First we need to search the string in the pdf after that Replace by the same string but now I want to string Font size is increased or Make the string Bold.
I am able to replace String with other string.
Please…

Suraj Pandey
- 1
- 1
0
votes
1 answer
How to write pdf to file instead of response of http request with Hummus.js
How can I save the created PDF with hummus.js to file instead of sending it as a response of my route? I couldn't find any example.
res.writeHead(200, { "Content-Type": "application/pdf" });
var hummus = require("hummus");
var pdfWriter =…

Suisse
- 3,467
- 5
- 36
- 59
0
votes
1 answer
How to rotate text with hummus recipe JS
I want to add text "PO-83274323" to existing PDF file but I want to rotate it.
const HummusRecipe = require('hummus-recipe');
const pdfDoc = new HummusRecipe('046303BO.pdf', 'PO-83274323_046303BO.pdf');
pdfDoc
// edit
.editPage(1)
…

Barjadze Temo
- 1
- 2
0
votes
0 answers
Editing PDFs with Hummus.js problem with certain pages
i am currently trying to edit a pdf with hummus.js to replace certain placeholder characters in the pdf with others.
This works perfectly fine for almost every page, but for certain pages I get the following…

KevGi_AWSi
- 41
- 5
0
votes
0 answers
npm can't uninstall hummus
I keep getting this error when I try npm install on Ubuntu 18.04.3
Creating an optimized production build...
<--- Last few GCs --->
[17781:0x44c8c50] 66207 ms: Scavenge 993.2 (998.1) -> 993.0 (998.6) MB, 8.9 / 0.0 ms (average mu = 0.258,…

Davtho1983
- 3,827
- 8
- 54
- 105
0
votes
1 answer
How to move text in PDF?
Is there a Java or Nodejs library that can move existing text in a PDF file?
I'd like to extract all the text nodes, then move some of them to a new location based on some conditions.
I tried PdfClown, galkahana/HummusJS, Hopding/pdf-lib, but seems…

junli
- 25
- 10
0
votes
2 answers
Combine PDF files in a loop ( Hummus-Recipe )
I work with Hummus-Recipe library and it's work fine but I want to make a function that accept array of files to append all files to one.
This is my code that work:
const filesRoot = './uploads';
router.route('/')
.get( async (request, response) =>…

Baruch Mashasha
- 951
- 1
- 11
- 29