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

broken colspan with innertable in cell element #4

Open
dakky opened this issue Aug 27, 2014 · 3 comments
Open

broken colspan with innertable in cell element #4

dakky opened this issue Aug 27, 2014 · 3 comments

Comments

@dakky
Copy link

dakky commented Aug 27, 2014

Hello again.

I think i found another bug:
Here is the JSON I'm using (formatted for better reading):

[
    {},
    [
        "table",
        [
            "c1r1",
            [
                "cell",
                [
                    "table",
                    [
                        "Inner table Col1",
                        "Inner table Col2",
                        "Inner table Col3"
                    ]
                ]
            ],
            "c3r1"
        ],
        [
            [
                "cell",
                {
                    "colspan": 3
                },
                "this should be a rowspan 3 for the complete row 2 of the table"
            ]
        ],
        [
            "c1r3",
            "c2r3",
            "c3r3"
        ],
        [
            "c1r4",
            "c2r4",
            "c3r4"
        ]
    ]
]

This results in a wrong interpretation of the colspan element:
image

@yogthos
Copy link
Owner

yogthos commented Aug 27, 2014

Unfortunately, this appears to be a bug with iText itself. Seems like inner tables affect colspan of the cells in outer table for some reason. I'll have to look and see if there's any workaround for that.

@DevAndyroo
Copy link

@yogthos did you find a workaround for this?

@yogthos
Copy link
Owner

yogthos commented Jan 5, 2016

I haven't had a chance to investigate further yet. It doesn't look like there's a simple fix.

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