PDF: Table cells duplicated before and after a page break

Post here questions and problems related to editing and publishing DITA content.
ChrisWarren
Posts: 4
Joined: Wed Dec 04, 2024 12:51 am

PDF: Table cells duplicated before and after a page break

Post by ChrisWarren »

Hello everyone,

I'm seeing a weird and inconsistent issue outputting DITA content to PDF. Sometimes, if a table crosses a page break, one or more rows of the table will be printed twice: before and after the page break. The attached example is a <choicetable>, but the same thing happened with a standard <table> before I shrank its cell padding. Note that the header row is printed an additional time before the page break as well.
With &quot;page-break-inside:avoid&quot;
With "page-break-inside:avoid"
choicetable_duplication_error.png (58.87 KiB) Viewed 516 times
It seems to be related to the particular placement of the table relative to the page break. I tried exporting an example ditamap with only the offending topic and its parent. The spacing of the topic on the page came out slightly differently, and the table split across the page break correctly, with the header row repeated at the top of the second page.

My custom CSS normally includes the lines:
tr,
th,
td {
page-break-inside: avoid;
}
When I tried commenting this out, I got a different version of the same issue (see second attachment).
Without &quot;page-break-inside:avoid&quot;
Without "page-break-inside:avoid"
choicetable_duplication_error_2.png (52.06 KiB) Viewed 516 times
I'm using DITA 2.0. To attempt to rule out a publishing incompatibility with 2.0, I've tried creating test files to try switching between 1.3 and 2.0, but I have been unable to reproduce the issue with a smaller ditamap in either version.

Has anyone encountered something like this before?
julien_lacour
Posts: 614
Joined: Wed Oct 16, 2019 3:47 pm

Re: PDF: Table cells duplicated before and after a page break

Post by julien_lacour »

Hello,

Could you indicate which version of Oxygen you are using?

Regards,
Julien
ChrisWarren
Posts: 4
Joined: Wed Dec 04, 2024 12:51 am

Re: PDF: Table cells duplicated before and after a page break

Post by ChrisWarren »

Hi Julien,
Version 27.0 on MacOS 15.1.1
Thanks,
Chris
julien_lacour
Posts: 614
Joined: Wed Oct 16, 2019 3:47 pm

Re: PDF: Table cells duplicated before and after a page break

Post by julien_lacour »

Hi Chris,

We are aware of this issue and a fix is already ready.
It will be available in the new maintenance build of Oxygen 27.0.
I will notify this thread when it will be available.

Regards,
Julien
ChrisWarren
Posts: 4
Joined: Wed Dec 04, 2024 12:51 am

Re: PDF: Table cells duplicated before and after a page break

Post by ChrisWarren »

Excellent! Glad to hear it.
Stacey
Posts: 58
Joined: Tue Mar 14, 2017 12:36 am

Re: PDF: Table cells duplicated before and after a page break

Post by Stacey »

Hi Julien:

Is there a timeline for the fix?
I'm seeing the same thing (Windows 11 | XML Editor 27.0, build 2024112212 ); some of the tables in one of the documents I work with are 10 or more pages long.
It is happening when I try the DITA Map PDF - based on HTML5 & CSS transformation scenario, as well as our own scenarios.
I will probably need to publish this document in the next week or so. (Would using an older version of oXygen be the workaround for this?)

Thanks!
julien_lacour
Posts: 614
Joined: Wed Oct 16, 2019 3:47 pm

Re: PDF: Table cells duplicated before and after a page break

Post by julien_lacour »

Hello,

The maintenance build is planned for next week. The problem is only happening in the DITA Map PDF - based on HTML5 & CSS scenario using Oxygen 27.0 so if you are in a hurry you can still use Oxygen 26.1 to generate the PDF output.

Regards,
Julien
julien_lacour
Posts: 614
Joined: Wed Oct 16, 2019 3:47 pm

Re: PDF: Table cells duplicated before and after a page break

Post by julien_lacour »

Hello,

The new maintenance build of Oxygen 27.0 is available.
This build contains the fix for the extra table caption displayed in the page footer.

Regards,
Julien
ChrisWarren
Posts: 4
Joined: Wed Dec 04, 2024 12:51 am

Re: PDF: Table cells duplicated before and after a page break

Post by ChrisWarren »

Thanks, Julien! So far it looks like today's update has fixed the issue for me.
Post Reply