Aspose.Word Java word convert to pdf Chinese language in Cloud


#1

We are using Aspose word to pdf convertion, for languages such as (English, german, Russian, Spanish and Chinese) We ere able to convert all the languages to pdf format successfully, in our local development environment (Windows 10). But when we deploy our code in AWS lambda cloud, we are not able to get the Chinese language fonts in the converted pdf document, Is there a way we can include the chinese font styles from the project folder and refer it from that, which can be used to do a convertion in cloud ?


#2

@somasundaramv,

Yes, you can copy Chinese font from Windows and place it inside a custom folder in production environment and then instruct Aspose.Words for .NET to use that folder containing fonts during rendering documents to PDF etc. Please refer to the following section of documentation:

How to Specify True Type Fonts Location


#3

Hi,

We are using the java API for conversion, and also the conversion logic is in aws lambda cloud, do we any solution for this config set-up ?


#4

@somasundaramv,

Those fonts should be available to Aspose.Words for the correct conversion of document to PDF format. Please check the following article:

How to Specify True Type Fonts Location - Aspose.Words for Java


#5

@awais.hafeez
We are using the serverless aws lambda config, in which we don’t have access to the underlying servers in which lambda project is running, can we place the fonts in s3 bucket or project folder and access it from the location ?


#6

@somasundaramv,

I think, you can place required fonts inside your project’s folder and then instruct Aspose.Words to use that folder during rendering.

Aspose.Words does not differentiate target platforms whether it is a local computer, network server or hosting service like Amazon AWS Lambda. The only thing - Aspose.Words should have access rights for Fonts folder. User need to configure his environment so that Aspose.Words will be able to read Fonts folder. The configuration is fully application and platform specific. Please ask your network administrator or someone else who can configure your environment.