Page 1 of 1

PDF Output Rendering Issues: Table and Note Spanning Across Pages

Posted: Thu Nov 16, 2023 2:26 pm
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-2.png
  • 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-4.png
  • When the 'Note' spans 2 pages, it should relocate entirely to the new page rather than splitting across.
    Note-1.png
Please advise on the necessary CSS adjustments.
Thank you
With Regards

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

Posted: Thu Nov 16, 2023 3:45 pm
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

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

Posted: Fri Nov 17, 2023 1:42 pm
by Amit+007appviewx
Thank you Team

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

Posted: Mon Nov 20, 2023 8:07 am
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

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

Posted: Mon Nov 20, 2023 10:39 am
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

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

Posted: Mon Nov 20, 2023 10:43 am
by Amit+007appviewx
Hi,
I am using Oxygen version: 25.0
Best Regards,

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

Posted: Mon Nov 20, 2023 11:54 am
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

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

Posted: Wed Nov 22, 2023 12:09 pm
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
The table is generated at the footer also:
image.png
Single table split into 3 pages as show in this image:
image.png
Can you please help us with any other solution ??
Best Regards

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

Posted: Thu Nov 23, 2023 5:31 pm
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

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

Posted: Fri Dec 01, 2023 9:45 am
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