Page 1 of 1

PDF: Table cells duplicated before and after a page break

Posted: Wed Dec 04, 2024 1:09 am
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.
choicetable_duplication_error.png
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).
choicetable_duplication_error_2.png
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?

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

Posted: Wed Dec 04, 2024 10:44 am
by julien_lacour
Hello,

Could you indicate which version of Oxygen you are using?

Regards,
Julien

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

Posted: Wed Dec 04, 2024 4:49 pm
by ChrisWarren
Hi Julien,
Version 27.0 on MacOS 15.1.1
Thanks,
Chris

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

Posted: Wed Dec 04, 2024 6:29 pm
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

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

Posted: Wed Dec 04, 2024 6:57 pm
by ChrisWarren
Excellent! Glad to hear it.

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

Posted: Mon Dec 09, 2024 8:25 pm
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!

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

Posted: Tue Dec 10, 2024 10:11 am
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

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

Posted: Mon Dec 16, 2024 3:19 pm
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

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

Posted: Mon Dec 16, 2024 11:32 pm
by ChrisWarren
Thanks, Julien! So far it looks like today's update has fixed the issue for me.