PDF Output Rendering Issues: Table and Note Spanning Across Pages

Post here questions and problems related to editing and publishing DITA content.
Amit+007appviewx
Posts: 20
Joined: Fri Aug 04, 2023 11:27 am

PDF Output Rendering Issues: Table and Note Spanning Across Pages

Post by Amit+007appviewx »

Hi Team
Greetings!!
I'm encountering issues in the generated PDF output, listed below:
  • When a table spans across 2 pages, the top border is missing on the second page.
    Table-1.png
    Table-1.png (41.95 KiB) Viewed 864 times
    Table-2.png
    Table-2.png (45.07 KiB) Viewed 864 times
  • When a table row spans 2 pages, the bottom border on the current page disappears, along with the top border on the next page.
    Table-3.png
    Table-3.png (52.29 KiB) Viewed 864 times
    Table-4.png
    Table-4.png (31.9 KiB) Viewed 864 times
  • When the 'Note' spans 2 pages, it should relocate entirely to the new page rather than splitting across.
    Note-1.png
    Note-1.png (34.47 KiB) Viewed 864 times
Please advise on the necessary CSS adjustments.
Thank you
With Regards
Last edited by Amit+007appviewx on Mon Nov 20, 2023 9:09 am, edited 1 time in total.
andrei_pomacu
Posts: 39
Joined: Mon Jul 25, 2022 11:18 am

Re: PDF Output Rendering Issues: Table and Note Spanning Across Pages

Post by andrei_pomacu »

Hi,
For tables and notes span problem you can use these CSS rules:

Code: Select all

/* Note span */
[class~="topic/note"]{
    page-break-inside:avoid;
}

/* Tables span */
*[class~="topic/row"]:has(*[class~="topic/entry"][rowspan]){
    page-break-before: avoid;
    page-break-after: avoid;
}
Regards,
Andrei
Amit+007appviewx
Posts: 20
Joined: Fri Aug 04, 2023 11:27 am

Re: PDF Output Rendering Issues: Table and Note Spanning Across Pages

Post by Amit+007appviewx »

Thank you Team
Amit+007appviewx
Posts: 20
Joined: Fri Aug 04, 2023 11:27 am

Re: PDF Output Rendering Issues: Table and Note Spanning Across Pages

Post by Amit+007appviewx »

Hello Team
Greetings the given solution for Note Span is working but the Table san is not working can you please suggest the changes to be done ?
"/* Tables span */
*[class~="topic/row"]:has(*[class~="topic/entry"][rowspan]){
page-break-before: avoid;
page-break-after: avoid;
}"
This is our customized CSS, kindly suggest where the changes needs to be done and also help with the warnings in the CSS.

Kindly suggest any other solution for table span.
Best Regards
Last edited by Amit+007appviewx on Mon Nov 20, 2023 4:06 pm, edited 1 time in total.
andrei_pomacu
Posts: 39
Joined: Mon Jul 25, 2022 11:18 am

Re: PDF Output Rendering Issues: Table and Note Spanning Across Pages

Post by andrei_pomacu »

Hi,
Could you please inform me which version of the Oxygen software you are currently using and reproduce the problem?
Regards,
Andrei
Amit+007appviewx
Posts: 20
Joined: Fri Aug 04, 2023 11:27 am

Re: PDF Output Rendering Issues: Table and Note Spanning Across Pages

Post by Amit+007appviewx »

Hi,
I am using Oxygen version: 25.0
Best Regards,
andrei_pomacu
Posts: 39
Joined: Mon Jul 25, 2022 11:18 am

Re: PDF Output Rendering Issues: Table and Note Spanning Across Pages

Post by andrei_pomacu »

Hi again,
I manage to reproduce the problem if I remove the table header.
Please remove from the CSS rules that I have you :has(*[class~="topic/entry"][rowspan]).
In order to avoid the page-break in tables the CSS rule should look like this:

Code: Select all

*[class~="topic/row"]{
    page-break-before: avoid;
    page-break-after: avoid;
}
Best Regards,
Andrei
Amit+007appviewx
Posts: 20
Joined: Fri Aug 04, 2023 11:27 am

Re: PDF Output Rendering Issues: Table and Note Spanning Across Pages

Post by Amit+007appviewx »

Hi Team
The solution given above is not working as expected.
There are some issues seen after making this change.
For Example: Table border missing on the existing page.
image.png
image.png (29.78 KiB) Viewed 721 times
The table is generated at the footer also:
image.png
image.png (41.37 KiB) Viewed 721 times
Single table split into 3 pages as show in this image:
image.png
image.png (173.7 KiB) Viewed 721 times
Can you please help us with any other solution ??
Best Regards
andrei_pomacu
Posts: 39
Joined: Mon Jul 25, 2022 11:18 am

Re: PDF Output Rendering Issues: Table and Note Spanning Across Pages

Post by andrei_pomacu »

Hi,
Could you please send the CSS files with your customizations and a portion of your documentation files to our email support (support@oxygenxml.com)? I would like to debug the issue you are facing.
If your DITA documents contain some sensitive content, you can randomize it by using Oxygen's Help > Support Tools > Randomize XML text content option.
Create a copy of your DITA structure before doing this operation as the randomizing cannot be reverted.
Regards,
Andrei
Amit+007appviewx
Posts: 20
Joined: Fri Aug 04, 2023 11:27 am

Re: PDF Output Rendering Issues: Table and Note Spanning Across Pages

Post by Amit+007appviewx »

Hi Team,
Thank you for your prompt response and willingness to assist.
I'll send the CSS files with our customizations and a portion of the documentation to support@oxygenxml.com shortly. Regarding sensitive content, I'll ensure to randomize it using Oxygen's Help > Support Tools > Randomize XML text content option before sending it over.
Prior to randomization, I'll create a backup of the DITA structure to avoid any loss of information.
Appreciate your help in resolving this matter.

Best regards,
Amit Darekar
Post Reply