Doc/Docx to Pdf conversion issue

Dear Team,
I have issues in converting the docx into Pdf and i have tested 7 files. The output varies in all 7 Pdf files.
Currently using Aspose Version Word 19.8 and Pdf version 19.7 and jdk version is 1.8
Attached input samples of issued Pdf .

Sample:
issue.zip (9.2 MB).

Code:
String dataDir =" " ;
String outputPath =" ";
Document doc;
doc = new Document(dataDir);
com.aspose.words.PdfSaveOptions opts = new com.aspose.words.PdfSaveOptions();
opts.getDownsampleOptions().setDownsampleImages(false);
doc.save(outputPath, opts);

Thanks…

@resh05,

Please also provide comparison screenshots highlighting (encircle) the problematic areas in each Aspose.Words generated PDF file (with respect to what is shown in Word document) and attach them here for further testing. Thanks for your cooperation.

1 Like

Dear @awais.hafeez
Thanks for your reply. The doc contains embedded excel objects and during the conversion to Pdf mismatch of image occurs.

Attached screenshot for your references.
Note: Original image and converted images are in the screenshots.

Screenshot:
error1.jpg (70.2 KB)
error2.jpg (85.8 KB)
error3.jpg (90.1 KB)
error4.jpg (59.0 KB)
error5.jpg (66.4 KB)

Thanks in advance…

@resh05,

We tested the scenarios and have managed to reproduce the same problems on our end. For the sake of corrections, we have logged the following issues in our issue tracking system.

WORDSNET-19179: related to 2019-02-09T10-56-51_581Z_egi10S6HM1X03F.docx
WORDSNET-19180: related to 2019-06-03T15-39-29_468Z_egi10K56HJW7LQ.docx
WORDSNET-19181: related to 2019-06-03T15-39-29_498Z_egi103Q8ZMBVSQ.docx
WORDSNET-19182: related to 2019-06-03T15-39-29_492Z_egi105GXBLF0WN.docx
WORDSNET-19183: related to 2019-06-03T15-39-29_518Z_egi101636N50KR.docx

We will further look into the details of these issues and will keep you updated on the status of corrections. We apologize for your inconvenience.

Please also provide comparison screenshots related to the following Word documents for further testing:

  • 2019-06-03T15-39-29_447Z_egi10085D2082N.docx
  • 2019-06-03T15-39-29_484Z_egi10XJNM75WXM.docx

Dear @awais.hafeez
Sorry for the delayed response.

Please also provide comparison screenshots related to the following Word documents for further testing:

  • 2019-06-03T15-39-29_447Z_egi10085D2082N.docx
  • 2019-06-03T15-39-29_484Z_egi10XJNM75WXM.docx

Please find the attachments for above requirements.

  • 2019-06-03T15-39-29_447Z_egi10085D2082N.docx - Missing Numbers in X- axis.Attached Screeenshot.
    Issue1.png (29.6 KB)
  • 2019-06-03T15-39-29_484Z_egi10XJNM75WXM.docx - Mismatch of Options. Attached Screenshot.
    Issue 2.png (26.1 KB)

Thanks…

@resh05,

Thanks for the additional information. We tested the scenarios and have managed to reproduce the same problems on our end. For the sake of corrections, we have logged the following issues in our issue tracking system.

WORDSNET-19191: related to 2019-06-03T15-39-29_447Z_egi10085D2082N.docx
WORDSJAVA-2176: related to 2019-06-03T15-39-29_484Z_egi10XJNM75WXM.docx

We will further look into the details of these issues and will keep you updated on the status of corrections. We apologize for your inconvenience.

@resh05,

Regarding WORDSJAVA-2176, it is to update you that this issue is no longer reproducible on our end when using the latest version of Aspose.Words for Java i.e. 19.9. Please upgrade to the latest version. Hope, this helps.

We have also attached the generated PDF file here for your reference.

Hi @awais.hafeez
Sorry for the delayed response.

The issue WORDSJAVA - 2176 had been solved.
Thanks…

@resh05,

Thanks for your feedback on WORDSJAVA-2176. We will keep you posted on any further updates and let you know once the linked issues will be resolved in future.

Hi @awais.hafeez

Is their any other way to convert the embedded excel objects in word document into pdf?
Thanks…

The issues you have found earlier (filed as WORDSJAVA-2176) have been fixed in this Aspose.Words for .NET 19.11 update and this Aspose.Words for Java 19.11 update.

The issues you have found earlier (filed as WORDSNET-19191) have been fixed in this Aspose.Words for .NET 21.5 update and this Aspose.Words for Java 21.5 update.

The issues you have found earlier (filed as WORDSNET-19180,WORDSNET-19182) have been fixed in this Aspose.Words for .NET 21.8 update and this Aspose.Words for Java 21.8 update.

The issues you have found earlier (filed as WORDSNET-19183,WORDSNET-19181) have been fixed in this Aspose.Words for Java 21.11.0 update.