DOCX to PDF Conversion issue using Java

Hi ,

I am trying to convert docx to Pdf but I am facing issue can any one me guide me on right path.Below ismy code

public static void savingToPdf() throws Exception {
Document doc = new Document( “input.docx”);
doc.save(“Result.pdf”, SaveFormat.Pdf);
}

@Sam0527

Could you please share some detail about the issue that you are facing along with input and problematic output PDF? We will investigate the issue and provide you more information on it.

Hi tahir,

I have imported wrong package now conversion working fine.

Regards
Dilip Kumar K

@Sam0527

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.

Sure tahir if any assistance need will let you know