Figure extra content present

Hello Team, When we convert docx to pdf using Aspose(java
Application), the resulting figure contains extra content. Please check this and advise us. The attached file is included for your reference.
Man_r1.docx (5.3 MB)

Man_r1_interim_pdf.pdf (1.2 MB)

@mohamed.sathakathullah
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-29439

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@mohamed.sathakathullah As a workaround, you can remove the affected elements from the SVG before loading the document.

Document doc = new Document(fixEmptySvgClipPaths("Man_r1.docx"));
doc.save("Man_r1.pdf");

/**
 * Removes SVG elements clipped by an empty clipPath (d="").
 * Per the SVG spec such elements must be invisible.
 */
private static InputStream fixEmptySvgClipPaths(String docxPath) throws IOException {
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    try (ZipInputStream zin = new ZipInputStream(new FileInputStream(docxPath));
         ZipOutputStream zout = new ZipOutputStream(out)) {
        ZipEntry entry;
        byte[] chunk = new byte[8192];
        while ((entry = zin.getNextEntry()) != null) {
            ByteArrayOutputStream buf = new ByteArrayOutputStream();
            int n;
            while ((n = zin.read(chunk)) != -1)
                buf.write(chunk, 0, n);
            byte[] data = buf.toByteArray();

            if (entry.getName().toLowerCase().endsWith(".svg")) {
                String svg = new String(data, StandardCharsets.UTF_8);

                Matcher m = Pattern.compile("<clipPath id=\"([^\"]+)\"><path d=\"\"[^>]*/></clipPath>").matcher(svg);
                while (m.find()) {
                    String pattern = "<[a-z]+ [^>]*clip-path=\"url\\(#" + Pattern.quote(m.group(1)) + "\\)\"[^>]*/>";
                    svg = svg.replaceAll(pattern, "");
                }

                data = svg.getBytes(StandardCharsets.UTF_8);
            }

            zout.putNextEntry(new ZipEntry(entry.getName()));
            zout.write(data);
            zout.closeEntry();
        }
    }
    return new ByteArrayInputStream(out.toByteArray());
}