Free Support Forum - aspose.com

Issue on doc to pdf conversion

Hi Team,

Issue in the converted PDF.

Requesting a work around solution to solve the issues in the attached documents.

Test1: Test1.zip (1.2 MB)

Test2: Test2.zip (69.8 KB)

Thanks & regards,
Priyanga G

@priyanga,

Thanks for your inquiry. We have tested the scenario using latest version of Aspose.Words for Java 18.5 and have not found any issue with output PDF. Please use Aspose.Words for Java 18.5. We have attached the output PDF files with this post for your kind reference. Output.zip (97.7 KB)

Hi @tahir.manzoor,

Thanks for your quick reply. It’s working fine for Test2 .

Test1 still have some issue.please kindly help me to get PDF like the source document.

Thanks & regards,
priyanga G

@priyanga,

Thanks for your inquiry. Could you please explain the issue detail along with screenshots of problematic section in output PDF? We will investigate the issue and provide you more information on it.

Hi @tahir.manzoor,

Thanks for your feedback.

please ,kindly provide the solution .

Screenshot:Capture.PNG (11.8 KB)

Thanks & regards,
Priyanga G

@priyanga,

Thanks for sharing the detail. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-16881. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

@priyanga,

Thanks for your patience. We have closed this issue (WORDSNET-16881) as “Not a bug”. Please use the PdfSaveOptions.OptimizeOutput property as shown below to get the desired output.

Document doc = new Document(MyDir + "test1.docx");
PdfSaveOptions options = new PdfSaveOptions();
options.setOptimizeOutput(true);
doc.save(MyDir + "18.5.pdf", options);

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan