Comments (3)
I was able to add space by modifying the getRowsHeight
method. I just added + 2
to item.height
jspdf-invoice-template/src/index.js
Line 394 in 93876fb
After refracting, this is how the method looks like:
//get nax height for the current row
var getRowsHeight = function () {
let rowsHeight = [];
row.forEach(function (rr, index) {
const widthToUse = param.invoice.header[index]?.style?.width || tdWidth;
let item = splitTextAndGetHeight(rr.toString(), widthToUse - 1); //minus 1, to fix the padding issue between borders
/* added row height */
rowsHeight.push(item.height + 2);
});
return rowsHeight;
};
Having the ability to add height to each row separately would be awesome!
Anyways, thanks a ton. This saved me days/weeks!
from jspdf-invoice-template.
Understand,
I'll try to add it as a property in the props object.
Reopening to keep track of features.
Thanks!
from jspdf-invoice-template.
It should be; i have to make some tests
from jspdf-invoice-template.
Related Issues (20)
- Japanese language HOT 15
- Add a stamp HOT 2
- 1.4.0 invoice header is expecting string[] but demo site given as object[] HOT 2
- using blob , prepend an image and upload to firebase storage doesn't work, but saving locally works HOT 2
- Semi missing license HOT 1
- Generate 2 PDF Everytime HOT 2
- Using Data URLS for the Logo HOT 5
- For Loop Dynamic Rendering, Saves Only 10 Times HOT 2
- Invalid Hook Call HOT 2
- Possibility to add a new table or more HOT 1
- Possibility to add a table background color , header color or text color ? HOT 2
- Uncaught TypeError: t is undefined HOT 5
- Question HOT 1
- Trouble writing Arabic HOT 2
- Directly saving as PDF - Node HOT 1
- Adding Columns to Footer
- Sveltkit Client side error window not defined. HOT 2
- ADD FEATURE Direct printing on same page on Sveltkit projects or others Reactjs/Next/Remix/VanillaJs
- I am not able to add the currency symbol to the price and the total. HOT 1
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 jspdf-invoice-template.