Comments (6)
{"header":{
"text":"Porous Tube Piezometer\nBatu Dam\n23, Jun 2014",
"alignment":"center",
"margin":[40,40,0,0]},
"content":{
"table":{
"headerRows":1,
"body":[
["#","PTP ","Station ","Offset ","Elevation of P.Tube (Meter)","Top Ele Initial (Meter)","Top Ele Present (Meter)","Settlement (Meter)","Field Reading (Meter)","Piezo Head (Meter)","Initial Piezo Ele (Meter)","Remarks ","Status"],
["1. ","PTP-1","09+75","112D","60.745","72.698","72.695","0.003","","","68.918","","X"],
["2. ","PTP-2","09+75","190D","68.352","72.828","72.802","0.026","","","68.268","","X"],
["3. ","PTP-3A","09+09","096D","52.701","76.525","76.524","0.001","","","69.825","","X"],
["4. ","PTP-3B","09+09","096D","71.451","76.525","76.524","0.001","","","71.435","","X"],
["5. ","PTP-4","09+06","184D","46.69","76.855","76.855","0","","","68.455","","X"],
["6. ","PTP-5A","08+08","092D","53.448","76.985","76.984","0.001","","","69.975","","X"],
["7. ","PTP-5B","08+08","092D","72.048","76.985","76.984","0.001","","","71.965","","X"],
["8. ","PTP-6","08+08","190D","46.42","77.225","77.219","0.006","","","69.125","","X"],
["9. ","PTP-7","08+00","040D","70","93.452","93.452","0","","","71.682","","X"],
["10. ","PTP-8","07+10","040D","70.03","97.172","97.147","0.025","","","77.932","","X"],
["11. ","PTP-9A","06+00","010D","70.418","107.638","107.633","0.005","","","86.408","","X"],
["12. ","PTP-9B","06+00","010D","87.018","107.638","107.633","0.005","","","85.058","","X"],
["13. ","PTP-10","04+43","017D","71.42","112.153","112.153","0","","","85.713","","X"],
["14. ","PTP-11","10+99","060D","85.294","93.72","93.707","0.013","","","85.91","","X"],
["15. ","PTP-12A","10+83","020D","77.229","103.931","103.917","0.014","","","78.301","","X"],
["16. ","PTP-12B","10+83","020D","99.129","103.931","103.917","0.014","","","DRY","","X"],
["17. ","PTP-13","03+84","007D","88.711","113.111","113.111","0","","","101.211","","X"],
["18. ","PTP-14","04+52","024D","88.678","101.196","101.196","0","","","95.516","","X"],
["19. ","PTP-15","03+94","048D","90.267","113.512","113.512","0","","","100.157","","X"],
["20. ","PTP-16","04+54","050D","88.62","93.04","93.04","0","","","89.93","","X"],["21. ","DH-129","07+82","095D","0","77.185","77.174","0.011","","","73.595","","X"],
["22. ","DH-130","07+42","080D","0","82.077","82.066","0.011","","","75.627","","X"]
]},
"layout":"lightHorizontalLines",
"style":"table"},
"styles":{
"header":{"fontSize":19,"bold":true},
"tableHeader":{"bold":true,"fontSize":13},
"table":{"fontSize":10}
},
"pageOrientation":"landscape",
"pageMargins":[40,100,40,50]
}
from pdfmake.
Could you paste whole doc-definition-object please?
from pdfmake.
I've pasted your definition to the playground editor and it doesn't overflow the page:
from pdfmake.
where is the footer?
from pdfmake.
There's no footer in your doc definition. You've set top margin to 100 and your header is rendered there, 40 for left/right margin and 50 below.
I think I don't follow.
If you need a footer, define footer property on the top level.
Also remember that pageMargins do not expand automatically if footer or header overflows. Maybe we should change this behavior and let them expand in such case?
from pdfmake.
sorry my mistake to include this
footer: function(currentPage, pageCount) { return {text: currentPage.toString() + ' of ' + pageCount, alignment: 'center'}; },
from pdfmake.
Related Issues (20)
- Error with Woff2 fonts HOT 1
- avoid conversion to date HOT 1
- Try-Catch handling HOT 1
- Support of images inside tables HOT 2
- Side header HOT 5
- Custom table layout not applied if table is in header or footer HOT 3
- Types of property 'alignment' are incompatible. HOT 1
- "Error: Unknown font format" for a valid TTF font file HOT 1
- Variable fonts support HOT 1
- Table header row text not populating HOT 1
- Displaying footer on everypage when generating PDF through HTML HOT 1
- page-break-inside: avoid; doesn't work when generating PDF from html HOT 1
- Query regarding use of polyfill.js in pdfmake HOT 1
- Uncaught (in promise) File 'Roboto-Regular.ttf' not found in virtual file system HOT 1
- Page break not detected in empty rows that are not headers
- Help needed: how can i forcefully prevent my table cell from wrapping onto the next page? HOT 3
- Table border extends outside the table when table spans across multiple pages HOT 1
- Setting language has no effect on rendered PDF HOT 1
- Deprecation warning: [email protected] HOT 1
- Line issue while table starts in new page 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 pdfmake.