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

Issue with table border width and pagination #635

Open
axd3 opened this issue Jan 13, 2021 · 1 comment
Open

Issue with table border width and pagination #635

axd3 opened this issue Jan 13, 2021 · 1 comment
Assignees

Comments

@axd3
Copy link

axd3 commented Jan 13, 2021

Hi,

first of all, thank you for this awesome library.

I've encountered some problems with tables I just can't seem to fix myself.

  1. When I create a table where borders cross there seems to be an issue with the border width. It appears to be thicker for one cell after the junction (see screenshot 1). I tried it with different pdf-readers and browsers, and although it appears to get better the more you zoom out, it really stands out when zoomed in. Maybe I'm doing something wrong with the css? Or it is a bug? The lines don't appear to have different width when I use either vertical or horizontal lines, only when they cross, and just for one cell in each direction.
  2. Pagination for larger tables works fine, my headers repeat on each page and everything looks good. However, if I use page-break-after: avoid; in the css, and a page break is avoided by this rule, the headers disappear. The borders for them are still there but the text is missing (see screenshot 2). When the page-break-after: avoid; rule does NOT apply for one page, everything looks good again.

I created a repository here where you can reproduce the beaviour. Just run the PdfTableTest.java and look at foo.pdf. Any help would be appreciated!

Screenshot 1
Screenshot_20210113_135350_edit

Screenshot 2
Screenshot_20210113_151332

Thank you!

@syjer
Copy link
Contributor

syjer commented Jan 13, 2021

the thickness issue may be related to also this issue #310 and maybe even #291 ?

@danfickle danfickle self-assigned this Jan 19, 2021
danfickle added a commit that referenced this issue Sep 10, 2021
…isable bevels on borders.

Doing so avoids ugly anti-aliasing effects, especially on tables. Property is:
-fs-border-rendering: no-bevel and inherits so can be set at the table level to apply to all cells.

This commit is a better alternative to the work in #755.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants