Convert RTF to PDF with Java using Aspose.Words Cloud API

We’re evaluating the java words library for doing conversion from RTF to PDF and then found the cloud based product. We were not confident from the website whether the cloud offering could do this particular conversion. Can you confirm whether it can or not?


Thank you

Hi Greg,

Thanks for your inquiry. Yes, you can convert RTF to PDF by using Aspose.Words for Cloud. Please visit the following
article:

Convert Word to other File Formats without using the Cloud Storage

Moreover, you can either upload documents to Aspose cloud storage (default option) or to any third party storage service of
your choice. In case you upload files to Aspose’s cloud
storage, the files will remain be there as long as you want. Please let
me know if I can be of any further assistance.

Thank you for the quick response. One followup question. Do you have any documentation around security? I’d like to know if the files are encrypted while they’re stored on your system? And generally, if there is anything in the product to help keep private documents private.


Thank you

Hi Greg,

Thanks for your inquiry.The files on Aspose storage are not encrypted. However no one can access files without a valid App SID and signature (App SID and App Key ). Aspose staff also needs permission from document owner to access the document in case you are facing an issue.

Moreover, all requests should be signed before sending to Aspose Cloud. Please check Authenticating API Requests|Documentation to get authentication token for API requests.

Hope this answers your query. Please let us know if you have any more queries.

Hi Greg,


Further to my last post, please check following link about Aspose products for Cloud’s security.
https://purchase.aspose.cloud/policies

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

@greg-paul

You can convert RTF to PDF from your local drive instead of using cloud storage. Please check the sample Java code for reference.

// Get Client ID and Client Secret from https://dashboard.aspose.cloud/
WordsApi wordsApi = new WordsApi("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx","xxxxxxxxxxxxxxxxxxxxxxxxxxxx","https://api.aspose.cloud");


try {
	
	ConvertDocumentRequest request = new ConvertDocumentRequest(
            Files.readAllBytes(Paths.get("C:/Temp/Test.rtf").toAbsolutePath()),
            "pdf",
            null,
            null,
            null,
            null
        );

        File result = wordsApi.convertDocument(request);
        System.out.println("api request completed...");
        File dest = new File("C:/Temp/Test_java.pdf");
		Files.copy(result.toPath(), dest.toPath(),
		java.nio.file.StandardCopyOption.REPLACE_EXISTING);
			
			
		} catch (Exception e) {
			System.out.println(e.getMessage());
		}

	}