Free Support Forum -

Convert documents from Web URL to PDF using Java


We have a requirement where we want to convert documents from Web URL to pdf. Do the groupdocs API support this functionality? If so, help me navigate to the required source code. Also, does groupdocs support aspx to pdf conversion?

This Topic is created by atirtahir3 using Email to Topic tool.

1 Like


Can you please tell, what is your development platform (.NET or Java)? We’ll then guide you accordingly.

Development Platform is Java

1 Like


You can convert a document available at a URL/URI to PDF. Please see this documentation. Let us know if you face any issue.

@atirtahir3 ,

I tried executing the code that you have mentioned. It doesn’t seem to work for me. Firstly, HtmlSaveOptions is striked out saying it is deprecated. Secondly, I am providing SharePoint Online web url and I get a error saying “Web Resource Not found


Can you please share that URL with us?

Yes. I tried other web url as well. Following are the URL’s


This issue is reproduced at our end. Hence, it has been logged in our internal issue tracking system with ID: CONVERSIONJAVA-816. We are now investigating this. As there is any further update, you’ll be notified.


Any clue by when can we hear on this? We want to implement this functionality in a week or so. Was this working before and has issues now or is this newly introduced?


Loading a document from a URL is a supported feature and this issue is raised in version 19.10.
Your issue is in queue. Please note that all issues are served on first come first served basis. We’ll surely let you know as there is any update.


Please use this build/Jar and let us know if issue persists. Given below is the code to convert a URL to PDF:

ConversionConfig conversionConfig = new ConversionConfig();
ConversionHandler conversionHandler = new ConversionHandler(conversionConfig);
String guid = "";
ConvertedDocument convertedDocumentPath = conversionHandler.convert(guid, new PdfSaveOptions());"Safal-Niveshak-Stock-Analysis-Excel-Version-3.0." + convertedDocumentPath.getFileType());

Looking forward to your feedback.