Chris Oszi
Chris Oszi

Reputation: 11

Salesforce Visualforce PDF page break in tables

I have a Visualforce page rendered as pdf. The page contains multiline table. I set the

page-break-inside: avoid;

css property to tr tags already. The borders are duplicated on the bottom and the top of the pages on page breaks. With 90% zoom level I see dots, with 100% I see the horizontal line on the rendered PDF. What is the solution the break tables between pages? Thanks is advance, Chris

horizontal line

horizontal dots

Upvotes: 1

Views: 1001

Answers (1)

Uladzislau Skrundz
Uladzislau Skrundz

Reputation: 1

In case anyone will need this in the future, those two properties solved this problem for me:

table {
  -fs-table-paginate: paginate;
  border-spacing: 0;
}

Upvotes: 0

Related Questions