We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Pdf creation failed when inserting rows in tables


I have tested the table shape and I got problems to create pdf’s whenever I insert a row . When I change just the content of a cell everything is ok.

Please find the source pptx file with just a table attached.


Code :
String pptxInFile = “pdftable.pptx”;
String pptxOutFile = “pdftable-mod.pptx”;
String pdfOutFile = “pdftable-mod.pdf”;
PresentationEx pres = new PresentationEx(pptxInFile);

SlideEx s = (SlideEx) pres.getSlides().get(0);
ShapesEx scol = s.getShapes();
ShapeEx shape = scol.get(0);
if (!(shape instanceof TableEx)) {
System.out.println("Table not found on index 0 ");
}

TableEx table = (TableEx) shape;
RowsEx rows = table.getRows();
RowEx row = rows.get(1);


// ##############################################
// Problem - disappears in pdf file
rows.insertClone(rows.size()-1, row , false);
// ##############################################

table.get(0, 2).getTextFrame().setText(“Changed”);
pres.write(pptxOutFile);
pres.save(new FileOutputStream(pdfOutFile), SaveFormat.PDF);

Thanks for your help.

Thomas


Hi Thomas,


I have worked with the presentation file shared by you and have been able to observe the issue of missing table in exported PDF using Aspose.Slides for Java 2.8.1. An issue with ID SLIDESJAVA-33216 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

The issues you have found earlier (filed as SLIDESJAVA-33216) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.