Comments (11)
beforePageContent: function(data) {
doc.setFontSize(12);
doc.setFont("courier");
doc.text("Content X " ,20, 15);
doc.text("Content Y" ,20, 15);
}
What am trying to do here is , Printing the Content Y in the next line of Content X , But it's getting Overlapped
from jspdf-autotable.
Aha! Make sure you use the doc.text function correctly. Its signature is like this jsPDF.text(x, y, text)
.
from jspdf-autotable.
Yes man , You are right . I just Misunderstood that . Thanks Buddy @simonbengtsson
from jspdf-autotable.
Btw, thanks for your library.
from jspdf-autotable.
What I did was to increase the top margin a bit and then write a title with the native jsPDF api. There is an example on how to do this in examples/example.js
.
You might find support for this limited right now though. It is very much something I'm working on improving though!
from jspdf-autotable.
Thank for the advice. Another thing I realized is the support of unicode symbols inside a jsPDF doc.
You can't use for example: \uXXXX to refer symbols from UTF-8.
Btw, Good Work Here!
from jspdf-autotable.
No that is true, the issue can be tracked here . Swedish and German characters such as åäö seem to work fine though.
from jspdf-autotable.
Better support for this was released in version 1.0. An example "With content" also exist in /examples/examples.js
.
from jspdf-autotable.
Hi Simon , How to add two sentences in pageBeforeContent ?
Ex : 1). content X
2) content Y .
is it possible huh ?
from jspdf-autotable.
Not sure what you mean. If you have a question about how to do something with the plugin it would be easier if you created a question on stackoverflow with more information. I actively monitor the jspdf-autotable
tag.
from jspdf-autotable.
doc.text(400, 50, "Daily View");
doc.autoTable({
headStyles: { fontSize: 10, headerBackgroundColor:"red" },
backgroundColor:"red",
bodyStyles: { fontSize: 8 },
head: [filedNames],
body: dailyRows,
// options
// ...
});
doc.text("Weekly View", 400, doc.autoTable.previous.finalY + 10);
doc.autoTable({
headStyles: { fontSize: 10},
bodyStyles: { fontSize: 8},
head: [filedNames],
body: weeklyRows,
// options
// ...
});
from jspdf-autotable.
Related Issues (20)
- Ensure table fits in single page regardless of end size HOT 1
- Como puedo cambiar la localizacion de la tabla en el eje x? HOT 2
- you can apply RTL and use Arabic font finally HOT 2
- Rendering html tags as cell content and formatting of cell content HOT 1
- Problem with horizontalPageBreak with colspan column header HOT 1
- Memory is not deallocating for autotable. js heap is increasing eventhough for small amount of data HOT 6
- HTML Entities or HEX Code issues for symbols HOT 5
- line breaks are not working
- Change row colors on page break HOT 1
- jspdf Auto Table, can we break the if the lines are more than 10 HOT 1
- (0 , import_jspdf_autotable.default) is not a function HOT 9
- Textfield Signature?
- 表格项合并时表格项与表头信息不对应 HOT 2
- Multitable loop doesn't align properly and creates unusual gaps or overlaps each other HOT 11
- HorizontalPageBreak page break can continue on same page if vertical space is enough HOT 6
- Cannot Read html tags HOT 1
- Merge Cell Inside the body of the table HOT 1
- Parsing HTML with tables HOT 1
- Rowspan on heading HOT 1
- Inconsistent Table Width Across Pages When Exporting Using jsPDF-AutoTable HOT 4
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-autotable.