Word to PDF conversion

Hi Team,

I’m using Aspose.Words for Java 16.7. In some scenarios, I see that PDF generation consumes a lot of memory when compared to word document.

The usual way would be load pdf Document into DocumentBuilder and call doc.Save() API. I don’t think this helps.

The other solution I thought of is to use word macro to convert word to pdf.

I’m looking for a better solution to convert word to PDF with less memory consumption. Is there any API in Aspose that could help us? or any other solution or recommendation is greatly appreciated.

Thanks,
Kumar

Hi Kumar,

Thanks for your inquiry.

Please try latest version of Aspose.Words 16.11.0 and see how it goes on your end. Generally, the processing time and memory usage fully depend on your documents and their complexity. Please note that the process of converting Word document to fixed-page formats such as PDF/XPS or images is not linear; it may take a minute to render one page and may take a few seconds to render 100 pages.

In case the problem still remains, please attach your input Word document you’re getting this problem with here for testing. We will investigate the issue on our end and provide you more information.

Best regards,

Hi Awais,

>>> Please try latest version of Aspose.Words 16.11.0 and see how it goes on your end.
Which solution should I try? load word doc and save as PDF?

-Kumar

Hi Kumar,

The code mentioned here should work:
Convert a Document to PDF

Best regards,