Thanks for contacting support.
I have tried to add SVG image inside Table, by using following code snippet and Aspose.Pdf for Java 17.8, and was able to add image inside the PDF. However, I have observed that the image turned into black and white in the resultant PDF document. For your reference, I have attached generated document as well as the code snippet, used to generate it.
Document doc = new Document();
Page page = doc.getPages().add();
com.aspose.pdf.Image img = new com.aspose.pdf.Image();
img.setFile(dataDir + "highstockImg.svg");
com.aspose.pdf.Table table = new com.aspose.pdf.Table();
com.aspose.pdf.Row row = table.getRows().add();
com.aspose.pdf.Cell cell = row.getCells().add();
cell.getParagraphs().add(new com.aspose.pdf.TextFragment("First Cell"));
cell = row.getCells().add();
doc.save(dataDir + "SVG_in-Table.pdf");
SVG_in-Table.pdf (73.9 KB)
We have logged an issue as PDFJAVA-37053 in our issue tracking system, regarding image turning into black and white. We will further look into the details of the issue and keep you informed with the status of its rectification. Please be patient and spare us little time.
We are sorry for the inconvenience.