We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Setting BaseUri path


I’m using the BaseUri in LoadOptions to set the resources folder containing my CSS and images files when generating a document from HTML.

It works if I specify a path from the filesystem, but is it possible to make it work with a folder which is contained inside the JAR of the running application ?

E.g : On the server my resources are in /home/user/application.jar/BOOT-INF/classes/generation/



Thanks for your inquiry. The LoadOptions.BaseUri property gets or sets the string that will be used to resolve relative URIs found in the document into absolute URIs when required.

This property does not read the path from the Jar file. Could you please share your input document, Jar file and code example that you are using for this property? We will then provide you more information about your query.