ASPOSE FOR JAVA-PDF and WORD from JSON

We have requirement to convert JSON documents into PDF and WORD. Both PDF and WORD will have rich text/images. Currently we are converting JSON JAVA objects to HTML and HTML to WORD/DOC and libraries doesn’t seem to be support required features and require us to make outbound network calls which is not acceptable due to security reasons. Could we talk to technical team help us with information and help us quickly evaluate product . Solution built using library will be deployed onto to AWS so want to make sure it will works in any environment

@wordpdfdocsample

Aspose.Words does call any outbound network calls. Could you please share some more detail about your issue that you are facing while using Aspose.Words? Please also ZIP and attach your input, problematic output and expected output documents. We will then provide you more information about your query.

@wordpdfdocsample,

You can also instruct ‘Aspose.Words for Java’ not to load any external resources (make any outbound network calls etc) by using the following simple code:

LoadOptions opts = new LoadOptions();
opts.setResourceLoadingCallback(new HandleResourceLoadingCallback());
opts.setLoadFormat(LoadFormat.HTML);
Document doc = new Document("E:\\temp\\in.html", opts);
doc.save("E:\\temp\\TestOffUpload\\19.9.pdf");

private static class HandleResourceLoadingCallback implements IResourceLoadingCallback {
    public int resourceLoading(ResourceLoadingArgs args) {
        return (args.getResourceType() != ResourceType.DOCUMENT)
                ? ResourceLoadingAction.SKIP
                : ResourceLoadingAction.DEFAULT;
    }
}