pdf-builder icon indicating copy to clipboard operation
pdf-builder copied to clipboard

Text overlapping in the beginning of new page

Open vlipovetskii opened this issue 5 years ago • 1 comments

sshot-2019-03-06- 19-09-07

            repeat(20) {
                table {

                    header {
                        text("h1")
                        text("h1")
                        text("")
                        text("")
                    }

                    row {
                        text("r1 c1")
                        text("r1 c2")
                        text("")
                        text("")
                    }
                        row {
                            text("r2 c1")
                            text("r2 c2")
                            text("")
                            text("")
                        }

                    row {
                        text("r2 c1")
                        text("r2 c2")
                        text("")
                        text("")
                    }
                    //border = Border(1f, 2f, 3f, 4f, Color.GREEN, Color.RED, Color.BLUE, Color.BLACK)
                }
            }

vlipovetskii avatar Mar 06 '19 17:03 vlipovetskii

Thanks!

This looks like a duplicate of https://github.com/timrs2998/pdf-builder/issues/9. There's a bug with tables where nothing can go below the table because the calculated height of the table is incorrect. As a workaround you can create a single table. instead of repeat(20).

timrs2998 avatar Mar 14 '19 23:03 timrs2998