Comments (6)
hey @awesomehimanshu, It sounds like you want this, but I'm not sure if I understand your needs properly:
wkhtmltopdf('http://google.com/', { pageSize: 'letter' }, function (err, stream) {
// note the stream arg in the callback.
});
Please elaborate if this is not what you want.
from node-wkhtmltopdf.
i have solved it thanks
from node-wkhtmltopdf.
wkhtmltopdf(str,{ pageSize: 'letter' },{output: newPath+"/tmp/"+fileName},function(err,stream){
});
saying "TypeError: callback is not a function",
I know i have send one extra argument but i want to do so how can i do it
from node-wkhtmltopdf.
plz i need it . If you have any solution tell me
from node-wkhtmltopdf.
Try this:
wkhtmltopdf(str, { pageSize: 'letter', output: newPath + '/tmp/' + fileName }, function(err,stream) {
// note that the options hash can contain multiple values.
});
from node-wkhtmltopdf.
thanks it works
from node-wkhtmltopdf.
Related Issues (20)
- Covert a html file to pdf
- Pdf Generation for large html file takes too long HOT 2
- Not generating when PDF is more than one page
- ContentNotFoundError kills the process HOT 4
- Spawn Error - Windows 10 HOT 2
- wkhtmltopdf stalls at page 36 of 78
- Error: This dependency was not found: * child_process in ./node_modules/wkhtmltopdf/index.js HOT 2
- PDF is missing Charts. When used Google Charts, Nivo Chart and few other charts. HOT 1
- Empty pdf while calling internal api by URL HOT 2
- Stream ends before emitting error HOT 1
- How to specify the working directory - cwd HOT 3
- Not able to implement custom header with page number in PDF HOT 1
- non-ASCII characters in directly passed header/footer not working unless LANG is set
- Issue with Nodejs AWS-Lambda HOT 1
- Is Integration with Angular 12 feasible ? HOT 1
- issue with Umlaut char conversion to pdf from html
- Export Options interface
- have some wired characters( �� ) appear after send pdf stream to react frontend
- Displaying footer doesn't work
- Is wkhtmltopdf npm package deprecated and Node 20x incompatible?
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-wkhtmltopdf.