PDF not properly converted to Word file using Aspose.PDF (Java)

Hello Aspose Team,

When we create the word file from template(excel), issue is occurred on layout of generated docx file as text value overlapped. However, there is no issue on pdf file generated from same template. Here we attached the sample-code we have used, template with demo data, generated word & pdf file and screen shot of word file with marking (red-circle) issue generated point on zipped file. Could you please look into this from your side.wordGenerateProperly.zip (540.2 KB)

Sample Code:

try {

            FileInputStream io1=new FileInputStream(new File("TemplateWithDemoData.xlsx"));
            Workbook workbook1 = new Workbook(io1);
            workbook1.save("temporary_saved_templateFile.xlsx");

            FileInputStream io = new FileInputStream(new File("temporary_saved_templateFile.xlsx"));
            Workbook workbook = new Workbook(io);
            workbook.calculateFormula();

            for (int m = 0; m < workbook.getWorksheets().getCount(); m++) {
                workbook.getWorksheets().get(m).getShapes().updateSelectedValue();
            }

            for (int j = 0; j < workbook.getWorksheets().getCount(); j++) {
                def sheetName = workbook.getWorksheets().get(j).getName();
                if ((sheetName.startsWith("_") || sheetName.contains("staging") || sheetName.contains("Staging"))) {
                    workbook.getWorksheets().get(j).setVisible(false);
                }
            }
            workbook.save("PDF_file_result.pdf");
            Document pdfDocument=new Document("PDF_file_result.pdf")

            pdfDocument.save("WORD_file_result3.docx",com.aspose.pdf.SaveFormat.DocX);
        } catch (Exception e) {
            e.printStackTrace();
        }

@brpokharel,

Thanks for contacting support.

I have observed your issue and like to inform that I have created investigation ticket with ID PDFJAVA-39127 in our issue tracking system to investigate and resolve this issue as soon possible.

@ Adnan.Ahmad

Any updates on this?

@brpokharel,

I like to inform this issue has been added recently in our issue tracking system and as per our company policy, the first priority for investigation is given to the Paid Support i.e. Enterprise and Priority Support on first come first serve basis. After that the issues from normal support forum are scheduled for investigation on first come first serve basis. I request for your patience and we will share good news with you soon.

The issues you have found earlier (filed as PDFJAVA-39127) have been fixed in Aspose.PDF for Java 21.5.