Hi,
I am using aspose.pdf.11.5 version
I need a function to keep a headline and the following paragraph connected on the same page.
I have tried setKeptWithNext(true). But it did not work.
Here is sample code
TextFragment txt2 = new TextFragment(“Next Steps1”);
txt2.setMargin(new MarginInfo(0, 5, 0, 10));
txt2.getTextState().setHorizontalAlignment(HorizontalAlignment.Center);
txt2.setKeptWithNext(true);
page.getParagraphs().add(txt2);
Table table = new Table();
table.setColumnWidths(“3% 97%”);
table.setDefaultCellPadding(new MarginInfo(0,5,0,5));
Row row = table.getRows().add();
Cell cell = row.getCells().add(“cell1”);
cell.setMargin(new MarginInfo(-25,0,0,0));
Cell cel2 = row.getCells().add(“cell2”);
page.getParagraphs().add(table);
How can I make it work?
Thanks
Mamatha
Hi Mamatha,
Thanks for your inquiry. I have tested the scenario and noticed the reported issue, so logged a ticket PDFNEWJAVA-35835 in our issue tracking system for further investigation and rectification. We will keep you updated about the issue resolution progress.
We are sorry for the inconvenience caused.
Best Regards,
Tilal,
We are planning to buy the license. Can you please let us know when this issue will be fixed.
or specify if there are any workarounds for this.
Thanks
Mamatha
Hi Mamatha,
Thanks for your inquriy. The issue is recently logged and it is still pending for investigation. As soon as investigation of the issue is completed then we will be in good position to share any ETA/workaround with you. We have recorded your concern and we will keep you updated about the issue resolution progress.
We are sorry for the inconvenience caused.
Best Regards,
The issues you have found earlier (filed as PDFNEWJAVA-35835) have been fixed in Aspose.Pdf for Java 11.8.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.