Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdfmake - text alignments for table cell #379

Open
blendxorz opened this issue Apr 2, 2024 · 1 comment
Open

pdfmake - text alignments for table cell #379

blendxorz opened this issue Apr 2, 2024 · 1 comment

Comments

@blendxorz
Copy link

blendxorz commented Apr 2, 2024

Hi,

I would like to be able to control the text alignment for columns in the body.
For example in the snippet below, I would like to have the data for "Date", "Start Time" and "End Time" to be right aligned.
The data for "Owner Name" should be left aligned.
The headers should remain center aligned.
Is this possible?

image

@hhurz
Copy link
Owner

hhurz commented Apr 7, 2024

As of version 1.30, the PDF export with pdfmake now also takes into account some style attributes from the html table to be exported: alignment, background color, color, font style

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants