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

Free Support Forum - aspose.com

Images in pdf not getting reflected in docx file while converting pdf to docx

hi


I am converting a pdf file to docx format.
My pdf document contains some images .But the images are not getting reflected in the docx file.
Find my code below
public static void main(String[] args) {
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(“C:\Users\Mvision\Desktop\test.pdf”);
DocSaveOptions saveOptions = new DocSaveOptions();
// Set output file format as DOCX
saveOptions.setFormat(DocSaveOptions.DocFormat.DocX);
// Save resultant DOCX file
pdfDocument.save(“C:\Users\Mvision\Desktop\resultant.docx”, saveOptions);
System.out.println("====Finished=====");
}
I have attached the source pdf file and the converted docx file.

Thanks
spencer

hi


I am converting a pdf file to docx format.
My pdf document contains some images .But the images are not getting reflected in the docx file.
Find my code below
public static void main(String[] args) {
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(“C:\Users\Mvision\Desktop\test.pdf”);
DocSaveOptions saveOptions = new DocSaveOptions();
// Set output file format as DOCX
saveOptions.setFormat(DocSaveOptions.DocFormat.DocX);
// Save resultant DOCX file
pdfDocument.save(“C:\Users\Mvision\Desktop\resultant.docx”, saveOptions);
System.out.println("====Finished=====");
}
I have attached the source pdf file and the converted docx file.

Thanks
spencer

Hi Spencer,

Thanks for your inquiry. I have tested your scenario with shared document using Aspose.Pdf for Java 10.6.1 and managed to observe the reported missing images issue. For further investigation, I have logged an issue in our issue tracking system as PDFNEWJAVA-35088 and also linked your request to it. We will keep you updated via this thread regarding the issue status.

Please feel free to contact us for any further assistance.

<span style=“font-size:10.0pt;line-height:115%;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:Calibri;color:#333333;mso-ansi-language:EN-US;
mso-fareast-language:EN-US;mso-bidi-language:AR-SA”>Best Regards

The issues you have found earlier (filed as PDFNEWJAVA-35088) have been fixed in Aspose.Pdf for Java 10.9.0.


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