Landscape PDF with multiple cols, strange rendering
See original GitHub issueDear @simonbengtsson,
I’m rendering a landscape pdf with:
pdf.autoTable({
html: '.csv-table',
didParseCell: function (table) {
if (table.section === 'head') {
table.cell.styles.fillColor = '#999';
table.cell.styles.textColor = '#fff';
table.cell.styles.fontSize = 9;
}
if (table.section === 'body') {
table.cell.styles.fontSize = 9;
}
},
});
Which ends in:
Can you say what leads to behavior like this?
I’ve recognized that it gets better when only using short names in table header cells. Is it possible to access the content with didParseCell
if (cell.content == 'Longname'){cell.content = 'LN'}
and just rename long names? or is there maybe already something to truncate long titles?
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Solved: Trouble with landscape pdf attachment
Solved: Hi I try to make a PDF attachment in landscape. I make my template in google document in landscape but the PDF...
Read more >Splitting a landscape spread into 2 portrait pages...
Typically, these PDFs have several pages where two facing portrait pages have been rendered as a single landscape spread; I need to split...
Read more >How can I take text and convert to PDF with landscape ...
To put content into two (or more) columns, you can create your own document renderer, or use an existing ColumnDocumentRenderer which suits ...
Read more >Question on rendering pdf using visual force
I have an issue rendering a pdf using visual force. It is a form with multiple rows and each row has multiple columns...
Read more >rendered pdf not showing data table formatting
<apex:pageBlockSection columns="1" id="section2b" title="* Expiring Excess ... This is the problem with salesforce while rendering the pdf.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
grazie will try!
Hmm I think you should set
data.cell.text
.