Comments (2)
Sure, you just have to increase top-margin for the page
Here's a Playground snippet
var dd = {
pageMargins: [40, 80, 40, 40],
header: 'adsadsa\nasdasdasdd\nasdasd',
content: 'asd'
}
from pdfmake.
header: [{
text: this.model.get('di_name') + ' Dam\n' + tajuk + '\n' + period,
alignment: 'center',
margin: [40, 40, 0, 0]
}, {
alignment: 'justify',
columns: [
{
text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit, officiis viveremus aeternum superstitio suspicor alia nostram, quando nostros congressus susceperant concederetur leguntur iam, vigiliae democritea tantopere causae, atilii plerumque ipsas potitur pertineant multis rem quaeri pro, legendum didicisse credere ex maluisset per videtis. Cur discordans praetereat aliae ruinae dirigentur orestem eodem, praetermittenda divinum. Collegisti, deteriora malint loquuntur officii cotidie finitas referri doleamus ambigua acute. Adhaesiones ratione beate arbitraretur detractis perdiscere, constituant hostis polyaeno. Diu concederetur.'
},
{
text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Malit profecta versatur nomine ocurreret multavit, officiis viveremus aeternum superstitio suspicor alia nostram, quando nostros congressus susceperant concederetur leguntur iam, vigiliae democritea tantopere causae, atilii plerumque ipsas potitur pertineant multis rem quaeri pro, legendum didicisse credere ex maluisset per videtis. Cur discordans praetereat aliae ruinae dirigentur orestem eodem, praetermittenda divinum. Collegisti, deteriora malint loquuntur officii cotidie finitas referri doleamus ambigua acute. Adhaesiones ratione beate arbitraretur detractis perdiscere, constituant hostis polyaeno. Diu concederetur.'
}
]
}],
how can I get a centered text and two column after it
from pdfmake.
Related Issues (20)
- show table do not across page HOT 2
- [Feature Request] progressCallback should take img fetching into account
- Vulnerability SNYK-JS-ES5EXT-6095076 in es5-ext HOT 2
- IMPORTANT! Vulnerability SNYK-JS-PDFMAKE-6347243 HOT 28
- Rendering optimization solution for undefined characters in fonts
- How to display Chinese traditional language in PDF using angular version 15 HOT 1
- In Firefox. table lines are visible when using .open() HOT 1
- SVG is not displayed correctly HOT 1
- Image not found in virtual file system but font added the same way is working.
- Removing borders in titles pdfmake file
- Image over canvas in background
- Add accessibility support HOT 2
- Issue with displaying localized numbers
- 自定义字体无法获取, Uncaught (in promise) File 'arialuni.ttf' not found in virtual file system
- encountered an error "javascript heap out of memory" while attempting to generate a PDF using pdf-make
- UI Interface for drag n drop PDF Editor HOT 2
- Cannot read properties of undefined (reading 'tableLayouts') HOT 1
- TypeError: Cannot redefine property: vfs HOT 1
- Customize margins is not working
- pdfmake error in Vite + React
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.