Dear team,
We are extracting images from docx using aspose java, but below case we are getting one red line in extracted image please find source code and Input & output files
Source code :
Document tableDoc = docSetup(interimdoc, table);
NodeImporter importers = new NodeImporter(interimdoc, tableDoc, ImportFormatMode.KEEP_SOURCE_FORMATTING);
tableDoc.getFirstSection().getBody().appendChild(importers.importNode(table, true));
tableDoc.save(AIE.pdfFolder + saveAS);
if ((table.getPreviousSibling() != null && !AIE.removeEquationShapes(tableDoc)
&& table.getPreviousSibling().getNodeType() == NodeType.PARAGRAPH)
|| ((Paragraph)table.getNextSibling()).getParentSection().getBody().indexOf(table) == 0)
{
Input : New Microsoft Word Document.docx (266.4 KB)
output : Fig0014.pdf (137.2 KB)
Fig0015.pdf (146.1 KB)